Skip to main content
Glama

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
NameRequiredDescriptionDefault
addressYesThe SOON address to get the balance of

Implementation Reference

  • 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}`, }, ], }; }
  • 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}`, }, ], }; } );
  • Solana Connection instance for the Soon mainnet RPC endpoint, used in the balance handler.
    const connectionMainnet = new Connection("https://rpc.mainnet.soo.network/rpc");

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rkmonarch/svm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server