Install
openclaw skills install abi-to-mcp-generatorInteract with Erc20 smart contract via read/write functions
openclaw skills install abi-to-mcp-generatorRPC_URL, PRIVATE_KEY, CONTRACT_ADDRESS| 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 |
name()
Returns: string
Example:
const result = await name({ });
symbol()
Returns: string
Example:
const result = await symbol({ });
decimals()
Returns: uint8
Example:
const result = await decimals({ });
totalSupply()
Returns: uint256
Example:
const result = await totalSupply({ });
balanceOf(address account)
Returns: uint256
Parameters:
| account | address |
Example:
const result = await balanceOf({ account: "0x... });
allowance(address owner, address spender)
Returns: uint256
Parameters:
| owner | address |
| spender | address |
Example:
const result = await allowance({ owner: "0x..., spender: "0x... });
transfer(address to, uint256 amount)
Mutability: nonpayable
Parameters:
| to | address |
| amount | uint256 |
Example:
const tx = await transfer({ to: value, amount: value });
approve(address spender, uint256 amount)
Mutability: nonpayable
Parameters:
| spender | address |
| amount | uint256 |
Example:
const tx = await approve({ spender: value, amount: value });
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(address to, uint256 amount)
Mutability: nonpayable
Parameters:
| to | address |
| amount | uint256 |
Example:
const tx = await mint({ to: value, amount: value });
burn(uint256 amount)
Mutability: nonpayable
Parameters:
| amount | uint256 |
Example:
const tx = await burn({ amount: value });
Signature: Transfer([indexed] address from, [indexed] address to, uint256 value)
Signature: Approval([indexed] address owner, [indexed] address spender, uint256 value)