{"name":"balance","oldName":"get_solana_balance","title":"SOL balance","category":"wallets","useWhen":"Run before sending SOL or paying fees, to confirm the wallet really has enough. Never trust a balance remembered from earlier in a chat.","benefit":{"kind":"accuracy","text":"Reads the live balance, not one remembered from earlier in a chat, so the agent never builds a transfer the wallet can't cover."},"description":"Reads a wallet's SOL balance straight from the chain.","price":"$0.01","priceText":"25 free calls a day, then $0.01 USDC per call (x402)","http":{"method":"POST","path":"/api/tools/balance","body":"JSON object with the inputs below"},"mcp":{"method":"tools/call","name":"balance"},"inputs":[{"name":"wallet","type":"string (base58 address)","required":true,"lookingFor":"The wallet address to read the SOL balance of.","whereToGet":"The user's wallet address (from their wallet app, or your agent's own public key). Not a .sol name or a ticker."},{"name":"network","type":"\"mainnet-beta\" | \"devnet\"","required":false,"lookingFor":"Which Solana network to read. Default \"mainnet-beta\" (real money).","whereToGet":"Leave it out for mainnet. Use \"devnet\" only for test wallets."}],"outputs":[{"field":"wallet","type":"string","is":"The wallet that was read.","howWorkedOut":"Your input, cleaned up."},{"field":"network","type":"string","is":"The network that was read.","howWorkedOut":"Your input. Default mainnet-beta."},{"field":"lamports","type":"string (integer)","is":"The balance in lamports, SOL's smallest unit (1 SOL = 1,000,000,000 lamports).","howWorkedOut":"getBalance. A string so big numbers stay exact."},{"field":"sol","type":"string (decimal)","is":"The same balance in SOL.","howWorkedOut":"lamports / 10^9 with exact integer math."},{"field":"slot","type":"number","is":"The chain slot it was read at. Higher is newer.","howWorkedOut":"Returned with getBalance."}],"notes":[],"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"wallet":{"type":"string"},"network":{"default":"mainnet-beta","type":"string","enum":["mainnet-beta","devnet"]}},"required":["wallet"]}}