abi encode
abi_encodeBuild EVM calldata from a function signature and arguments (e.g. transfer(address,uint256) + [to, amount]): returns the 0x data and selector, ready for a transaction or /v1/tx/simulate. Tuples and arrays supported via JSON args. Costs $0.002 USDC per call (x402).
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": {
"signature": "<signature>"
},
"name": "abi_encode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | JSON array, or | separated | |
| signature | Yes |