addr
addr(
value):AddrValue
Defined in: src/attr/values.ts:319
A 20-byte Ethereum address, indexed for equality.
All-lowercase and all-uppercase input carries no checksum and is accepted as-is; mixed-case input is checked against its EIP-55 checksum, so a mistyped address is caught here rather than being written to a wrong account. The stored value is always EIP-55 checksummed.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Throws
Section titled “Throws”If the value is not 20 hex bytes, or fails its EIP-55 checksum.
Example
Section titled “Example”addr("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045")