| title | Check Balances and Status | |||||||
|---|---|---|---|---|---|---|---|---|
| description | Check all asset balances including BTC, STX, sBTC, fungible tokens, and NFTs, plus wallet and network status. | |||||||
| skills |
|
|||||||
| estimated-steps | 7 | |||||||
| order | 5 |
A comprehensive balance check covers all asset types an agent may hold across Bitcoin L1 and Stacks L2. Run this workflow to get a full picture of available funds before executing payments, swaps, or deployments.
All balance queries are read-only and require no wallet unlock. The wallet info command can be run without unlocking.
- At least one wallet configured (
bun run wallet/wallet.ts list) - Network set appropriately (
NETWORK=mainnetfor mainnet, default is testnet)
Confirm which wallet is active and get addresses.
bun run wallet/wallet.ts statusExpected output: wallet.btcAddress (bc1q...) and wallet.address (SP...), plus isUnlocked status.
bun run btc/btc.ts balanceExpected output: balance.satoshis, confirmed.satoshis, unconfirmed.satoshis, utxoCount.
bun run stx/stx.ts get-balanceExpected output: balance.stx, balance.microStx, locked.stx (STX locked in stacking, if any).
bun run sbtc/sbtc.ts get-balanceExpected output: balance.sats, balance.btc (sBTC denominated in satoshis).
List all SIP-010 fungible tokens held by the active address.
bun run tokens/tokens.ts list-user-tokensExpected output: Array of token balances with contractId, symbol, balance, decimals.
List all SIP-009 NFTs held by the active address.
bun run nft/nft.ts get-holdingsExpected output: Array of NFT assets with contractId, assetName, tokenId, plus total count.
Confirm the network is healthy before executing transactions.
bun run query/query.ts get-network-statusExpected output: status: "ready", chainTip.block_height showing current block.
At the end of this workflow, verify:
- BTC balance shows
confirmed.satoshisfor available spending - STX balance shows enough for transaction fees (at least 0.01 STX)
- sBTC balance confirmed if inbox messaging is planned
- Network status is
"ready"
| Skill | Used For |
|---|---|
wallet |
Active wallet address lookup and unlock status |
btc |
Bitcoin L1 balance and UTXO data |
stx |
STX token balance on Stacks L2 |
sbtc |
sBTC (wrapped Bitcoin) balance on Stacks L2 |
tokens |
SIP-010 fungible token balances |
nft |
SIP-009 NFT holdings |
query |
Stacks network health status |