balance
Check Balance
Fetch wallet holdings on Starknet: STRK, ETH, and all ERC-20 tokens with non-zero balances.
Prerequisites
- Active session required. If not authenticated, run
authenticate-walletskill first.
Rules
- If the user asks to check a specific token, use
--token <symbol>. - If no token is specified, run
balancewithout flags to show all balances. - Use
--jsonwhen the output will be consumed by another skill or pipeline. - Run this BEFORE
send,trade,multi-swap, or any transactional skill to verify sufficient funds.
Commands
# All token balances
npx starkfi@latest balance [--json]
# Specific token balance
npx starkfi@latest balance --token <symbol> [--json]
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
--token |
string | Token symbol (e.g. STRK, ETH, USDC) |
No |
--json |
flag | Output as JSON | No |
Examples
User: "Check my balance"
npx starkfi@latest balance
User: "How much STRK do I have?"
npx starkfi@latest balance --token STRK
User: "Get my balances as JSON"
npx starkfi@latest balance --json
Error Handling
| Error | Action |
|---|---|
Not authenticated |
Run authenticate-wallet skill first. |
Network error |
Retry once. If persistent, use config skill to set custom RPC. |
Related Skills
- Run this BEFORE
sendortradeto verify sufficient funds. - Run this BEFORE
stakingto confirm available STRK/BTC tokens. - Run this BEFORE
lendingsupply operations to confirm available assets. - Run this BEFORE
dcato verify sufficient sell token balance for the total DCA amount. - Run this BEFORE
confidentialconf-fundto verify sufficient tokens for funding the confidential account. - Run this BEFORE
trovesdeposits to verify sufficient tokens for the vault strategy. - Run this BEFORE
lstliquid staking to confirm available STRK. - Use
portfoliofor a complete view including staking, lending, vault, and LST positions with USD values.
More from ahmetenesdur/starkfi
send
Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say "pay 10 STRK to 0x...".
10lending
Manage Vesu V2 lending positions on Starknet — supply assets, borrow against collateral, repay debt, withdraw, close positions, monitor health factors, and auto-rebalance risky positions. Use this skill when the user mentions lending, borrowing, supplying collateral, Vesu, earn interest, health factor, liquidation risk, monitoring positions, auto-rebalancing, protecting against liquidation, "my position is risky", "health factor low", or DeFi yield from lending protocols — even if they don't say "lending" explicitly.
7troves
Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say "Troves" explicitly.
1