My balance of one token
get_my_token_balanceHow much of ONE token the user holds right now, and what it is worth. The cheapest way to answer 'do I have any X', and the tool to size a sell from before placing one.
⭐ balance_token_amount IS THE ANSWER. It is the on-chain balance and it always agrees with get_my_balances. HOW MUCH THE USER HOLDS comes from the CHAIN and is reported by get_my_balances, get_my_token_balance and get_my_position (balance_source: "chain"). WHAT IT COST — cost basis, average entry, realised PnL, trade history — comes from Moby's swap ledger, which only sees swaps Moby executed. Never quote a ledger quantity as the amount held: on live accounts it runs several times high AND several times low against the chain, and a sell sized from it fails on-chain.
ledger_balance_token_amount and cost_basis_usd are the ledger's, included for cost context only. Check ledger_present BEFORE either: false means there is no ledger row at all and both are null/unknown — do NOT read ledger_disagrees: false as 'the sources agree', because it is also false when there is nothing to compare. When ledger_present is true and ledger_disagrees is true they are simply different numbers about different things — normal for any token that moved without a Moby swap, not an error, and not worth reporting to the user. Never average them, and never sell the larger one.
A balance of 0 is a real answer: the user does not hold this token. Use get_my_balances when you need everything they hold, and get_my_position when you also need unrealised PnL. This returns the CURRENT USER's own data, resolved from their API key. There is no way to ask about someone else's wallet with this tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | solana | |
| token_address | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||