get-soon-mainnet-balance
Retrieve the balance of a specific address on the SOON mainnet using the SVM-MCP server. Input the address to check the SOON balance.
Instructions
Get the balance of a address on the Soon mainnet
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | The SOON address to get the balance of |
Implementation Reference
- src/index.ts:140-150 (handler)Handler function that fetches the Soon mainnet balance for the given address using Solana's connectionMainnet.getBalance and returns formatted text content.async ({ address }) => { const balance = await connectionMainnet.getBalance(new PublicKey(address)); return { content: [ { type: "text", text: `Balance: ${balance}`, }, ], }; }
- src/index.ts:137-139 (schema)Input schema using Zod defining the required 'address' parameter as a string.{ address: z.string().describe("The SOON address to get the balance of"), },
- src/index.ts:134-151 (registration)Complete tool registration via server.tool including name, description, input schema, and handler function.server.tool( "get-soon-mainnet-balance", "Get the balance of a address on the Soon mainnet", { address: z.string().describe("The SOON address to get the balance of"), }, async ({ address }) => { const balance = await connectionMainnet.getBalance(new PublicKey(address)); return { content: [ { type: "text", text: `Balance: ${balance}`, }, ], }; } );
- src/index.ts:7-7 (helper)Solana Connection instance for the Soon mainnet RPC endpoint, used in the balance handler.const connectionMainnet = new Connection("https://rpc.mainnet.soo.network/rpc");