cast_abi_encode
Encode Solidity function or constructor arguments into ABI-encoded hex data using the signature and values.
Instructions
ABI-encode values for a given Solidity function/constructor signature (cast abi-encode)
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>",
"args": "<args>"
},
"name": "cast_abi_encode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signature | Yes | Solidity function or constructor signature, e.g. "constructor(address,uint256)" or "transfer(address,uint256)" | |
| args | Yes | Values to encode, matching the signature types in order, e.g. ["0x1234...", "1000000"] |