abi-encode
Encode Ethereum smart contract function parameters using ABI encoding. Input parameter types and values to generate encoded data for blockchain transactions.
Instructions
encode function parameters with abi
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | Yes | parameter types array, e.g. ['uint256', 'address', 'bool'] | |
| values | Yes | parameter values array, corresponding to the types array |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"types": {
"description": "parameter types array, e.g. ['uint256', 'address', 'bool']",
"items": {
"type": "string"
},
"type": "array"
},
"values": {
"description": "parameter values array, corresponding to the types array",
"items": {
"type": [
"string",
"number",
"boolean"
]
},
"type": "array"
}
},
"required": [
"types",
"values"
],
"type": "object"
}