Skip to content

Stacks address with no balance only shows BTC balance #23

@larrysalibra

Description

@larrysalibra

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions