@0xwh1sker/mantle-cli
v0.1.6
Published
CLI for Mantle L2 chain reads, DeFi queries, swaps, LP, and Aave operations
Readme
@0xwh1sker/mantle-cli
CLI for Mantle L2 chain reads, DeFi queries, swaps, LP, and Aave operations.
Install
npm install -g @0xwh1sker/mantle-cliOr use directly with npx:
npx @0xwh1sker/mantle-cli chain infoDiscover Commands First
If you're using the CLI for the first time, start with the capability catalog to see what is available before choosing a command:
mantle-cli catalog list --json
mantle-cli catalog search "swap" --json
mantle-cli catalog show mantle_buildSwap --jsonThe catalog exposes each capability's category, wallet requirements, and exact CLI command template.
Usage
mantle-cli chain info
mantle-cli chain status
mantle-cli registry resolve USDC --json
mantle-cli account balance 0x1234... --json
mantle-cli token prices --tokens USDC,WETH --json
mantle-cli diagnostics rpc-health
mantle-cli --helpOptions
--json— output raw JSON--no-color— disable colored output-n, --network <network>— target network: mainnet (default) or sepolia--rpc-url <url>— override RPC endpoint
Related packages
@0xwh1sker/mantle-core— shared Mantle L2 business logic@0xwh1sker/mantle-mcp— MCP server for AI agents
License
MIT
