encode_function_data
Encode function call data from an ABI, function name, and optional arguments into a hex string for building transaction calldata.
Instructions
Encode function call data from ABI, function name, and optional args. Uses viem encodeFunctionData. Returns hex data string. Use for building transaction calldata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | Yes | ABI as JSON string or array (must include the function) | |
| args | No | Optional array of arguments (in order) | |
| functionName | Yes | Name of the function |