@mantleio/mantle-core
v0.1.19
Published
Core business logic for Mantle L2 — chain reads, DeFi queries, and unsigned transaction building
Keywords
Readme
@mantleio/mantle-core
Shared business logic for Mantle L2 tooling — chain reads, DeFi queries, and unsigned transaction building.
Install
npm install @mantleio/mantle-coreWhat's included
- tools/ — callable handlers for chain, registry, account, token, DeFi, indexer, and diagnostics operations
- lib/ — shared helpers: viem clients, network normalization, token registry, endpoint policy, contract ABIs
- config/ — chain configs, token lists, protocol metadata, DEX pairs, Aave reserves
- errors.ts —
MantleMcpErrorerror class - types.ts —
Tool,Resource,Networktype definitions - capability-catalog.ts — structured tool metadata for LLM discovery
Usage
import { allTools } from "@mantleio/mantle-core/tools/index.js";
const result = await allTools["mantle_getChainInfo"].handler({ network: "mainnet" });
console.log(result);Related packages
@mantleio/mantle-cli— CLI interface built on mantle-core@mantleio/mantle-mcp— MCP server for AI agents
License
MIT
