abi_encode
Encode Solidity types and values into standard ABI format for reliable EVM contract interactions.
Instructions
ABI encode parameters (standard Solidity encoding)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"types": "<types>",
"values": "<values>"
},
"name": "abi_encode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | Yes | Array of Solidity types (e.g., ['address', 'uint256']) | |
| values | Yes | Array of values corresponding to the types |