[**tevm**](../../README.md) *** [tevm](../../modules.md) / [address](../README.md) / Address # Class: Address A specialized Ethereum address class that extends EthjsAddress with TEVM-specific functionality. This class provides EIP-55 compliant checksummed address formatting and consistent behavior across the TEVM ecosystem. The Address class is the core representation of Ethereum addresses in TEVM's low-level APIs. It handles the complexities of Ethereum addresses including: - Proper hex encoding/decoding - EIP-55 checksumming for error detection - Consistent 20-byte binary representation This class should typically be created using the `createAddress` factory function rather than being instantiated directly. ## Example ```javascript import { createAddress } from '@tevm/address'; // From checksummed hex string let address = createAddress('0x8ba1f109551bD432803012645Ac136ddd64DBA72'); // From lowercase hex string address = createAddress('0x8ba1f109551bd432803012645ac136ddd64dba72'); // From zero address address = createAddress(`0x${'00'.repeat(20)}`); // From number or bigint address = createAddress(0); address = createAddress(123456789n); // From Uint8Array address = createAddress(new Uint8Array(20)); // From unprefixed hex string address = createAddress('8ba1f109551bd432803012645ac136ddd64dba72'); ``` ## See [Mixed-case checksum address encoding](https://eips.ethereum.org/EIPS/eip-55|EIP-55:) ## Extends - [`EthjsAddress`](../../utils/classes/EthjsAddress.md) ## Constructors ### Constructor > **new Address**(`bytes`): `Address` #### Parameters | Parameter | Type | | ------ | ------ | | `bytes` | `Uint8Array` | #### Returns `Address` #### Inherited from [`EthjsAddress`](../../utils/classes/EthjsAddress.md).[`constructor`](../../utils/classes/EthjsAddress.md#constructor) ## Properties | Property | Type | Inherited from | | ------ | ------ | ------ | | `bytes` | `Uint8Array` | [`EthjsAddress`](../../utils/classes/EthjsAddress.md).[`bytes`](../../utils/classes/EthjsAddress.md#bytes) | ## Methods ### equals() > **equals**(`address`): `boolean` #### Parameters | Parameter | Type | | ------ | ------ | | `address` | [`EthjsAddress`](../../utils/classes/EthjsAddress.md) | #### Returns `boolean` #### Inherited from [`EthjsAddress`](../../utils/classes/EthjsAddress.md).[`equals`](../../utils/classes/EthjsAddress.md#equals) *** ### isPrecompileOrSystemAddress() > **isPrecompileOrSystemAddress**(): `boolean` #### Returns `boolean` #### Inherited from [`EthjsAddress`](../../utils/classes/EthjsAddress.md).[`isPrecompileOrSystemAddress`](../../utils/classes/EthjsAddress.md#isprecompileorsystemaddress) *** ### isZero() > **isZero**(): `boolean` #### Returns `boolean` #### Inherited from [`EthjsAddress`](../../utils/classes/EthjsAddress.md).[`isZero`](../../utils/classes/EthjsAddress.md#iszero) *** ### toBytes() > **toBytes**(): `Uint8Array` #### Returns `Uint8Array` #### Inherited from [`EthjsAddress`](../../utils/classes/EthjsAddress.md).[`toBytes`](../../utils/classes/EthjsAddress.md#tobytes) *** ### toString() > **toString**(): `` `0x${string}` `` #### Returns `` `0x${string}` `` #### Inherited from [`EthjsAddress`](../../utils/classes/EthjsAddress.md).[`toString`](../../utils/classes/EthjsAddress.md#tostring) *** ### fromString() > `static` **fromString**(`str`): [`EthjsAddress`](../../utils/classes/EthjsAddress.md) #### Parameters | Parameter | Type | | ------ | ------ | | `str` | `string` | #### Returns [`EthjsAddress`](../../utils/classes/EthjsAddress.md) #### Inherited from [`EthjsAddress`](../../utils/classes/EthjsAddress.md).[`fromString`](../../utils/classes/EthjsAddress.md#fromstring) *** ### zero() > `static` **zero**(): [`EthjsAddress`](../../utils/classes/EthjsAddress.md) #### Returns [`EthjsAddress`](../../utils/classes/EthjsAddress.md) #### Inherited from [`EthjsAddress`](../../utils/classes/EthjsAddress.md).[`zero`](../../utils/classes/EthjsAddress.md#zero)