Skip to main content
Glama
baskcart

W3 Ledger MCP Server

by baskcart

check_balance

Retrieve token balances for a public key, including per-token amounts, maturity details, merchant breakdowns, and loyalty tier information with cashback rates.

Instructions

Check the token balances (DAH, DAHYM, DAHLOR, W3SH) for a public key. Returns total balance, per-token breakdown, maturity info, merchant breakdown, and W3SH loyalty tier (Seed/Twig/Kindling/Log/Joist) with cashback rate and progress.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
player_publickeyYesThe public key (hex) to check balances for.

Implementation Reference

  • The handler logic for `check_balance` which calls the `/checkbalance` endpoint using the provided `player_publickey`.
    case 'check_balance': {
        const key = args.player_publickey as string;
        const res = await client.get('/checkbalance', {
            player_publickey: key,
        });
        return toResult(res.data, !res.ok);
    }
  • The definition of `check_balance` including its description and input schema.
    {
        name: 'check_balance',
        description:
            'Check the token balances (DAH, DAHYM, DAHLOR, W3SH) for a public key. ' +
            'Returns total balance, per-token breakdown, maturity info, merchant breakdown, ' +
            'and W3SH loyalty tier (Seed/Twig/Kindling/Log/Joist) with cashback rate and progress.',
        inputSchema: {
            type: 'object',
            properties: {
                player_publickey: {
                    type: 'string',
                    description: 'The public key (hex) to check balances for.',
                },
            },
            required: ['player_publickey'],
        },
        access: 'read',
    },

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/baskcart/w3-ledger-mcp-server'

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