abi_codec
Encode or decode Ethereum ABI data: convert values to ABI-encoded bytes or parse log, call, and return data back to human-readable values.
Instructions
ABI-encode values or ABI-decode call/return/log data.
types is a list of ABI type strings (e.g. ["uint256", "address",
"(uint8,bytes)[]"]); aliases like uint/int/byte are normalized.
action=encode (needs values) -> {encoded, mode}. mode=packed is
abi.encodePacked (tight, no padding) and is encode-only. action=decode
(needs data, standard only) -> {values}; ints are returned as decimal
strings and addresses EIP-55 checksummed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| types | Yes | ||
| values | No | ||
| data | No | ||
| mode | No | standard |