account_info
Retrieve your platform wallet address, tool pricing in HBAR/USD, and account balance to begin using Hedera blockchain services. No API key required for initial access.
Instructions
Get platform wallet address, pricing for all 20 tools in HBAR and USD, and your current balance. FREE to call — no API key required. Use this tool first to discover how to fund an account and start using the platform. To create an account automatically, simply send HBAR to the platform wallet — your Hedera account ID becomes your API key automatically. 20 tools across 6 modules.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Optional. Your Hedera account ID (e.g. 0.0.456789) or API key. If provided, your current balance is returned. |
Implementation Reference
- src/modules/account/tools.js:40-115 (handler)The `getAccountInfo` function is the actual handler for the 'account_info' tool, fetching price information, platform details, and account balance if an API key is provided.
async function getAccountInfo(args) { const { api_key } = args || {}; // Fetch live HBAR/USD price (cached, 5 min TTL) const hbarPriceUsd = await getHbarPriceUsd(); // Build pricing table with live USD equivalents const pricing = Object.entries(COSTS).map(([tool, cost]) => { const hbarAmount = parseFloat(cost.hbar); const entry = { tool, cost_hbar: cost.hbar, cost_usd: formatUsdCost(hbarAmount, hbarPriceUsd), }; return entry; }); // Check balance if an api_key was provided let balanceInfo = null; if (api_key) { const account = getAccount(api_key); if (account) { const balanceHbar = (account.balance_tinybars / 100_000_000); balanceInfo = { api_key, balance_hbar: balanceHbar.toFixed(4), balance_usd: hbarPriceUsd ? `~$${(balanceHbar * hbarPriceUsd).toFixed(2)}` : null, hedera_account_id: account.hedera_account_id, created_at: account.created_at, last_used: account.last_used, }; } else { balanceInfo = { api_key, balance_hbar: "0.0000", message: "Account not found. Send HBAR to the platform wallet to create your account automatically.", }; } } return { service: "HederaToolbox — Hedera MCP Platform", description: "20 tools across 6 modules. Pay per call in HBAR. No registration required.", hbar_price_usd: hbarPriceUsd ? `$${hbarPriceUsd.toFixed(4)}` : "unavailable", hbar_price_source: "SaucerSwap DEX (live, 5-min cache)", how_to_fund: { step_1: "Send any amount of HBAR to the platform wallet below.", step_2: "Your Hedera account ID becomes your API key automatically.", step_3: "Pass your Hedera account ID as the api_key parameter in any tool call.", step_4: "Call account_info with your api_key at any time to check your balance.", minimum_deposit: "Minimum deposit: 0.1 HBAR. Deposits below 0.1 HBAR are silently ignored — no account is created and no balance is credited. Recommended starting deposit: 5–10 HBAR for comfortable exploration of all tools.", note: "Balances are persistent. Unused credit carries over indefinitely. You can top up at any time by sending more HBAR to the platform wallet.", }, platform_wallet: { account_id: process.env.HEDERA_ACCOUNT_ID, network: process.env.HEDERA_NETWORK || "mainnet", memo: "HederaToolbox deposit — your sending account ID becomes your API key", }, pricing, ...(balanceInfo && { your_account: balanceInfo }), links: { website: "https://hederatoolbox.com", mcp_endpoint: "https://hedera-mcp-platform-production.up.railway.app/mcp", npm: "https://www.npmjs.com/package/@hederatoolbox/platform", llms_txt: "https://hederatoolbox.com/llms.txt", }, }; } - src/modules/account/tools.js:10-30 (schema)The definition and schema for the 'account_info' tool.
export const ACCOUNT_TOOL_DEFINITIONS = [ { name: "account_info", description: "Get platform wallet address, pricing for all 20 tools in HBAR and USD, and your current balance. " + "FREE to call — no API key required. " + "Use this tool first to discover how to fund an account and start using the platform. " + "To create an account automatically, simply send HBAR to the platform wallet — " + "your Hedera account ID becomes your API key automatically. " + "20 tools across 6 modules.", inputSchema: { type: "object", properties: { api_key: { type: "string", description: "Optional. Your Hedera account ID (e.g. 0.0.456789) or API key. If provided, your current balance is returned.", }, }, required: [], }, }, - src/modules/account/tools.js:33-38 (registration)The registration/dispatcher function that routes 'account_info' calls to `getAccountInfo`.
export async function executeAccountTool(name, args) { if (name === "account_info") { return getAccountInfo(args); } throw new Error(`Unknown account tool: ${name}`); }