credmark.cmf.types.address.Address

class Address(addr)[source]

Bases: str

An EVM address which is a lowercase hex string.

It can be created with a lowercase, uppercase, or checksum hex string and will be converted to lowercase.

It can be used as a normal string but it also has a “checksum” property which returns a web3 ChecksumAddress.

It compares with other strings/Addresses in a case-insensitive way.

Methods

is_null

null

to_int

valid

validate

Attributes

checksum

Parameters

addr (Union[str, int, bytes]) –