/install abi-to-mcp-generator
Workflow
- Setup: Configure environment variables
RPC_URL,PRIVATE_KEY,CONTRACT_ADDRESS - Read: Use read functions (view/pure) to query contract state
- Write: Use write functions to modify contract state (requires gas)
Constraints
| Constraint | Requirement |
|---|---|
| RPC Provider | Any Ethereum JSON-RPC endpoint |
| Private Key | Must have contract permissions |
| Gas Limit | Adjust based on function complexity |
| Network | Must match contract deployment |
Read Functions
name
name()
Returns: string
Example:
const result = await name({ });
symbol
symbol()
Returns: string
Example:
const result = await symbol({ });
decimals
decimals()
Returns: uint8
Example:
const result = await decimals({ });
totalSupply
totalSupply()
Returns: uint256
Example:
const result = await totalSupply({ });
balanceOf
balanceOf(address account)
Returns: uint256
Parameters:
| account | address |
Example:
const result = await balanceOf({ account: "0x... });
allowance
allowance(address owner, address spender)
Returns: uint256
Parameters:
| owner | address |
| spender | address |
Example:
const result = await allowance({ owner: "0x..., spender: "0x... });
Write Functions
transfer
transfer(address to, uint256 amount)
Mutability: nonpayable
Parameters:
| to | address |
| amount | uint256 |
Example:
const tx = await transfer({ to: value, amount: value });
approve
approve(address spender, uint256 amount)
Mutability: nonpayable
Parameters:
| spender | address |
| amount | uint256 |
Example:
const tx = await approve({ spender: value, amount: value });
transferFrom
transferFrom(address from, address to, uint256 amount)
Mutability: nonpayable
Parameters:
| from | address |
| to | address |
| amount | uint256 |
Example:
const tx = await transferFrom({ from: value, to: value, amount: value });
mint
mint(address to, uint256 amount)
Mutability: nonpayable
Parameters:
| to | address |
| amount | uint256 |
Example:
const tx = await mint({ to: value, amount: value });
burn
burn(uint256 amount)
Mutability: nonpayable
Parameters:
| amount | uint256 |
Example:
const tx = await burn({ amount: value });
Events
Transfer
Signature: Transfer([indexed] address from, [indexed] address to, uint256 value)
Approval
Signature: Approval([indexed] address owner, [indexed] address spender, uint256 value)
Built with ❤️ by JustinXai ABI-to-MCP. Get the generator: https://github.com/JustinXai/abi-to-mcp
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install abi-to-mcp-generator - 安装完成后,直接呼叫该 Skill 的名称或使用
/abi-to-mcp-generator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
ABI-to-MCP: The Web3 Skill Architect 是什么?
Interact with Erc20 smart contract via read/write functions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 67 次。
如何安装 ABI-to-MCP: The Web3 Skill Architect?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install abi-to-mcp-generator」即可一键安装,无需额外配置。
ABI-to-MCP: The Web3 Skill Architect 是免费的吗?
是的,ABI-to-MCP: The Web3 Skill Architect 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
ABI-to-MCP: The Web3 Skill Architect 支持哪些平台?
ABI-to-MCP: The Web3 Skill Architect 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 ABI-to-MCP: The Web3 Skill Architect?
由 JustinX(@justinxai)开发并维护,当前版本 v1.0.0。