cli-blockstack icon indicating copy to clipboard operation
cli-blockstack copied to clipboard

Stacks address with no balance only shows BTC balance

Open larrysalibra opened this issue 7 years ago • 0 comments

Before sending stacks to a new address, checking the balance shows 0 BTC and no entry for stacks.

Vanquish:blockstack.js larry$ blockstack-cli -t balance ST14DD6RT022ZCXE8PFGAJ4T7GMHW85ST3G9VK4T6
{
  "BTC": "0"
}
Vanquish:blockstack.js larry$ 

This is strange since I'm checking a stacks address and expect to see the balance for a stacks address.

When I use the faucet to send stacks to the address, BTC shows up first followed by Stacks a bit later.

This behavior is also unexpected:

Vanquish:blockstack.js larry$ blockstack-cli -t balance ST14DD6RT022ZCXE8PFGAJ4T7GMHW85ST3G9VK4T6
{
  "BTC": "0"
}
Vanquish:blockstack.js larry$ blockstack-cli -t balance ST14DD6RT022ZCXE8PFGAJ4T7GMHW85ST3G9VK4T6
{
  "BTC": "5005500"
}
Vanquish:blockstack.js larry$ blockstack-cli -t balance ST14DD6RT022ZCXE8PFGAJ4T7GMHW85ST3G9VK4T6
{
  "STACKS": "1000000",
  "BTC": "5005500"
}
Vanquish:blockstack.js larry$

I understand that there's a 1-to-1 correspondence between stacks addresses and bitcoin addresses because they're the same private key, but think this behavior is confusing from a user perspective.

If we're going to go forward with this behavior, at the very least, the CLI balance command should always show a STACKS balance even if it is 0.

larrysalibra avatar Oct 19 '18 09:10 larrysalibra