Which matches the unlocked balance and doesn't indicate anything about the 10.2M STX locked.
{
"balance": "10216532085394",
"total_sent": "0",
"total_received": "10216532085394",
"total_fees_sent": "0",
"total_miner_rewards_received": "0",
"lock_tx_id": "0x117c1a1ccb8242cdaf52012623a52fadb0f0e78cb34e0ad4f7046717dc92f8be",
"locked": "10216376241394",
"lock_height": 107391,
"burnchain_lock_height": 791949,
"burnchain_unlock_height": 794150
}
The current endpoint for
get-balance-stxreturns the unlocked balance, e.g.https://protocol.citycoins.co/api/ccd002-treasury/get-balance-stx?contractName=ccd002-treasury-mia-mining-v2
Returns:
Which matches the unlocked balance and doesn't indicate anything about the 10.2M STX locked.
This comes from
stx-get-balancein the treasury contract, so we may need to switch to calling the Hiro API.https://api.mainnet.hiro.so/extended/v1/address/SP8A9HZ3PKST0S42VM9523Z9NV42SZ026V4K39WH.ccd002-treasury-mia-mining-v2/stx
Returns: