Skip to main content
Glama

iota_coins

Retrieve coin objects for an address to estimate gas costs and query token balances on the IOTA blockchain.

Instructions

Get coin objects for an address (useful for gas estimation and token queries)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesOwner address (0x...)
coin_typeNoCoin type (default: 0x2::iota::IOTA)

Implementation Reference

  • The `iota_coins` tool is registered using `server.tool`. The handler directly executes an RPC call `iota_getCoins` to retrieve coin objects for a given address.
    server.tool(
      "iota_coins",
      "Get coin objects for an address (useful for gas estimation and token queries)",
      {
        address: z.string().describe("Owner address (0x...)"),
        coin_type: z.string().optional().describe("Coin type (default: 0x2::iota::IOTA)"),
      },
      async ({ address, coin_type }) =>
        text(await rpc("iota_getCoins", [address, coin_type || null, null, 10]))
    );

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/Scottcjn/iota-agent-mcp'

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