get-soon-testnet-balance
Check the SOON testnet balance for any address to monitor account funds and verify transactions on the SVM blockchain.
Instructions
Get the balance of a address on the Soon testnet
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | The SOON address to get the balance of |
Implementation Reference
- src/index.ts:28-37 (handler)Handler function that retrieves the SOON testnet balance for the given address using Solana's connectionTestnet.getBalance.async ({ address }) => { const balance = await connectionTestnet.getBalance(new PublicKey(address)); return { content: [ { type: "text", text: `Balance: ${balance}`, }, ], };
- src/index.ts:25-27 (schema)Input schema defining the 'address' parameter as a string.{ address: z.string().describe("The SOON address to get the balance of"), },
- src/index.ts:22-39 (registration)Registers the 'get-soon-testnet-balance' tool with McpServer, including schema and inline handler.server.tool( "get-soon-testnet-balance", "Get the balance of a address on the Soon testnet", { address: z.string().describe("The SOON address to get the balance of"), }, async ({ address }) => { const balance = await connectionTestnet.getBalance(new PublicKey(address)); return { content: [ { type: "text", text: `Balance: ${balance}`, }, ], }; } );