Skip to main content
Glama

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

Implementation Reference

  • 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}`,
          },
        ],
      };
  • 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}`,
            },
          ],
        };
      }
    );

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