eth_address_case
Apply an EIP-55 mixed-case checksum to an Ethereum address or verify that an address's casing matches the checksum.
Instructions
Apply or verify an EIP-55 mixed-case address checksum.
action=encode -> {action, address} with the checksummed (mixed-case) address.
action=verify -> {action, address (checksummed), valid}, plus a reason when
the supplied casing does not match the EIP-55 checksum.
Example: eth_address_case("encode", "0x52908400098527886e0f7030069857d2e4169ee7") -> address="0x52908400098527886E0F7030069857D2E4169EE7".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 'encode' applies the EIP-55 checksum casing; 'verify' checks whether the input's casing already matches it. | |
| address | Yes | A 20-byte hex address, 40 hex chars with or without a 0x prefix; any casing is accepted (verify compares the given casing against the EIP-55 checksum). |