abi.encode
abi.encodeABI-encode values for EVM calldata or return data. Supports elementary types (address, bool, uint/int, bytesN), dynamic bytes/string, and arrays of static types.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | Yes | Solidity ABI types, for example uint256, address, string. | |
| values | Yes | Values matching types (numbers as strings; addresses and bytes as 0x hex). |