{"id":4871,"date":"2025-08-04T06:19:45","date_gmt":"2025-08-04T06:19:45","guid":{"rendered":"https:\/\/blog.mathwallet.org\/?p=4871"},"modified":"2026-04-23T07:40:59","modified_gmt":"2026-04-23T07:40:59","slug":"math-ai-agent-guide","status":"publish","type":"post","link":"https:\/\/blog.mathwallet.org\/?p=4871","title":{"rendered":"MathWallet Agent CLI"},"content":{"rendered":"\n<p><a href=\"https:\/\/github.com\/mathwallet\/mathwallet-agent-skill\/\">https:\/\/github.com\/mathwallet\/mathwallet-agent-skill\/<\/a><\/p>\n\n\n\n<p>A multi-chain Web3 wallet CLI designed for AI agent automation. One BIP39 mnemonic derives addresses across <strong>EVM chains<\/strong> (Ethereum, BSC, Polygon, Arbitrum, Optimism, Base, Avalanche, and more), <strong>Solana<\/strong>, <strong>Bitcoin<\/strong>, <strong>TRON<\/strong>, <strong>SUI<\/strong>, and <strong>TON<\/strong>.<\/p>\n\n\n\n<h2>Features<a href=\"https:\/\/github.com\/mathwallet\/mathwallet-agent-skill\/tree\/main#features\"><\/a><\/h2>\n\n\n\n<ul><li><strong>Multi-chain wallet<\/strong> \u2014 EVM, Solana, Bitcoin, TRON, SUI, TON from a single mnemonic<\/li><li><strong>Balance &amp; transfers<\/strong> \u2014 Real-time balances with USD values; send native coins, ERC-20 tokens, or arbitrary contract calls<\/li><li><strong>Token swap<\/strong> \u2014 Integrated MathSwap aggregator with ERC-20 auto-approval and slippage control<\/li><li><strong>Offline signing<\/strong> \u2014 EIP-712 typed data, personal_sign, and raw transaction signing without broadcasting<\/li><li><strong>A2A server<\/strong> \u2014 JSON-RPC 2.0 server exposing 16 wallet skills via the <a href=\"https:\/\/a2a-protocol.org\">Agent-to-Agent protocol<\/a>; compatible with Claude, Gemini, and any A2A-compliant agent<\/li><li><strong>x402 payments<\/strong> \u2014 Native HTTP 402 handling via EIP-3009 off-chain authorization<\/li><li><strong>CAIP-2 identifiers<\/strong> \u2014 Unambiguous chain references across all commands (<code>eip155:1<\/code>, <code>solana:\u2026<\/code>, etc.)<\/li><li><strong>Machine-bound encryption<\/strong> \u2014 AES-256-GCM wallet storage; private keys never touch disk<\/li><\/ul>\n\n\n\n<h2>Requirements<a href=\"https:\/\/github.com\/mathwallet\/mathwallet-agent-skill\/tree\/main#requirements\"><\/a><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Dependency<\/th><th>Version<\/th><\/tr><\/thead><tbody><tr><td>Node.js<\/td><td>\u2265 20.0.0<\/td><\/tr><tr><td>pnpm<\/td><td>8+ recommended<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2>Quick Start<a href=\"https:\/\/github.com\/mathwallet\/mathwallet-agent-skill\/tree\/main#quick-start\"><\/a><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\"># Install from npm\nnpm install -g @mathwallet\/agent-cli\n\n# One-time setup\nmathwallet init\n\n# Check balances across 10 common chains\nmathwallet balance\n\n# Start A2A server for agent integration\nmathwallet serve --auth<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/github.com\/mathwallet\/mathwallet-agent-skill\/ A multi-chain Web3 wallet CLI designed for AI agent automation. One BIP39 mnemonic derives addresses across EVM chains (Ethereum, BSC, Polygon, Arbitrum, Optimism, Base, Avalanche, and more), Solana, Bitcoin, TRON, SUI, and TON. Features Multi-chain wallet \u2014 EVM, Solana, Bitcoin, TRON, SUI, TON from a single mnemonic Balance &amp; transfers \u2014 Real-time balances with [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"unlock_protocol_post_locks":""},"categories":[1],"tags":[160,9],"_links":{"self":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts\/4871"}],"collection":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4871"}],"version-history":[{"count":3,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts\/4871\/revisions"}],"predecessor-version":[{"id":4970,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts\/4871\/revisions\/4970"}],"wp:attachment":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}