@tevm/voltaire / primitives/Address
primitives/Address
Classes
InvalidAddressError
Defined in: src/primitives/Address/errors.js:159 Error thrown when address is invalidThrows
Extends
Constructors
Constructor
new InvalidAddressError(Defined in: src/primitives/Address/errors.js:170message?,options?):InvalidAddressError
Parameters
message?
string
Error message
options?
Error optionscause?
Error
Root cause error
code?
string
Error code
context?
Record<string, unknown>
Additional context
docsPath?
string
Documentation path
expected?
string
Expected format
value?
unknown
Invalid value
Returns
InvalidAddressError
Overrides
ValidationError.constructor
Properties
cause?
Defined in: src/primitives/errors/AbstractError.ts:56 Root cause of this error (for error chaining)optionalcause:Error
Inherited from
ValidationError.cause
code
code: string
Defined in: src/primitives/errors/AbstractError.ts:39
Machine-readable error code for programmatic handling
Example
Inherited from
ValidationError.code
context?
Defined in: src/primitives/errors/AbstractError.ts:45 Additional context metadata for debuggingoptionalcontext:Record<string,unknown>
Example
Inherited from
ValidationError.context
docsPath?
Defined in: src/primitives/errors/AbstractError.ts:51 Path to documentation for this erroroptionaldocsPath:string
Example
Inherited from
ValidationError.docsPath
expected
expected: string
Defined in: src/primitives/errors/ValidationError.ts:19
Inherited from
ValidationError.expected
name
name: string
Defined in: src/primitives/Address/errors.js:180
Inherited from
ValidationError.name
value
value: unknown
Defined in: src/primitives/errors/ValidationError.ts:18
Inherited from
ValidationError.value
Methods
getErrorChain()
getErrorChain(): string
Defined in: src/primitives/errors/AbstractError.ts:94
Get full error chain as string for logging
Returns
string
Inherited from
ValidationError.getErrorChain
toJSON()
toJSON():Defined in: src/primitives/errors/AbstractError.ts:110 Serialize error to JSON for logging/telemetryRecord<string,unknown>
Returns
Record<string, unknown>
Inherited from
ValidationError.toJSON
InvalidAddressLengthError
Defined in: src/primitives/Address/errors.js:74 Error thrown when address has invalid lengthThrows
Extends
Constructors
Constructor
new InvalidAddressLengthError(Defined in: src/primitives/Address/errors.js:85message?,options?):InvalidAddressLengthError
Parameters
message?
string
Error message
options?
Error optionscause?
Error
Root cause error
code?
string
Error code
context?
Record<string, unknown>
Additional context
docsPath?
string
Documentation path
expected?
string
Expected length
value?
unknown
Invalid value
Returns
InvalidAddressLengthError
Overrides
InvalidLengthError.constructor
Properties
cause?
Defined in: src/primitives/errors/AbstractError.ts:56 Root cause of this error (for error chaining)optionalcause:Error
Inherited from
InvalidLengthError.cause
code
code: string
Defined in: src/primitives/errors/AbstractError.ts:39
Machine-readable error code for programmatic handling
Example
Inherited from
InvalidLengthError.code
context?
Defined in: src/primitives/errors/AbstractError.ts:45 Additional context metadata for debuggingoptionalcontext:Record<string,unknown>
Example
Inherited from
InvalidLengthError.context
docsPath?
Defined in: src/primitives/errors/AbstractError.ts:51 Path to documentation for this erroroptionaldocsPath:string
Example
Inherited from
InvalidLengthError.docsPath
expected
expected: string
Defined in: src/primitives/errors/ValidationError.ts:19
Inherited from
InvalidLengthError.expected
name
name: string
Defined in: src/primitives/Address/errors.js:95
Inherited from
InvalidLengthError.name
value
value: unknown
Defined in: src/primitives/errors/ValidationError.ts:18
Inherited from
InvalidLengthError.value
Methods
getErrorChain()
getErrorChain(): string
Defined in: src/primitives/errors/AbstractError.ts:94
Get full error chain as string for logging
Returns
string
Inherited from
InvalidLengthError.getErrorChain
toJSON()
toJSON():Defined in: src/primitives/errors/AbstractError.ts:110 Serialize error to JSON for logging/telemetryRecord<string,unknown>
Returns
Record<string, unknown>
Inherited from
InvalidLengthError.toJSON
InvalidChecksumError
Defined in: src/primitives/Address/errors.js:189 Error thrown when address checksum is invalidThrows
Extends
Constructors
Constructor
new InvalidChecksumError(Defined in: src/primitives/Address/errors.js:200message?,options?):InvalidChecksumError
Parameters
message?
string
Error message
options?
Error optionscause?
Error
Root cause error
code?
string
Error code
context?
Record<string, unknown>
Additional context
docsPath?
string
Documentation path
expected?
string
Expected checksum
value?
unknown
Invalid value
Returns
InvalidChecksumError
Overrides
ValidationError.constructor
Properties
cause?
Defined in: src/primitives/errors/AbstractError.ts:56 Root cause of this error (for error chaining)optionalcause:Error
Inherited from
ValidationError.cause
code
code: string
Defined in: src/primitives/errors/AbstractError.ts:39
Machine-readable error code for programmatic handling
Example
Inherited from
ValidationError.code
context?
Defined in: src/primitives/errors/AbstractError.ts:45 Additional context metadata for debuggingoptionalcontext:Record<string,unknown>
Example
Inherited from
ValidationError.context
docsPath?
Defined in: src/primitives/errors/AbstractError.ts:51 Path to documentation for this erroroptionaldocsPath:string
Example
Inherited from
ValidationError.docsPath
expected
expected: string
Defined in: src/primitives/errors/ValidationError.ts:19
Inherited from
ValidationError.expected
name
name: string
Defined in: src/primitives/Address/errors.js:210
Inherited from
ValidationError.name
value
value: unknown
Defined in: src/primitives/errors/ValidationError.ts:18
Inherited from
ValidationError.value
Methods
getErrorChain()
getErrorChain(): string
Defined in: src/primitives/errors/AbstractError.ts:94
Get full error chain as string for logging
Returns
string
Inherited from
ValidationError.getErrorChain
toJSON()
toJSON():Defined in: src/primitives/errors/AbstractError.ts:110 Serialize error to JSON for logging/telemetryRecord<string,unknown>
Returns
Record<string, unknown>
Inherited from
ValidationError.toJSON
InvalidHexFormatError
Defined in: src/primitives/Address/errors.js:13 Error thrown when address hex format is invalidThrows
Extends
Constructors
Constructor
new InvalidHexFormatError(Defined in: src/primitives/Address/errors.js:24message?,options?):InvalidHexFormatError
Parameters
message?
string
Error message
options?
Error optionscause?
Error
Root cause error
code?
string
Error code
context?
Record<string, unknown>
Additional context
docsPath?
string
Documentation path
expected?
string
Expected format
value?
unknown
Invalid value
Returns
InvalidHexFormatError
Overrides
InvalidFormatError.constructor
Properties
cause?
Defined in: src/primitives/errors/AbstractError.ts:56 Root cause of this error (for error chaining)optionalcause:Error
Inherited from
InvalidFormatError.cause
code
code: string
Defined in: src/primitives/errors/AbstractError.ts:39
Machine-readable error code for programmatic handling
Example
Inherited from
InvalidFormatError.code
context?
Defined in: src/primitives/errors/AbstractError.ts:45 Additional context metadata for debuggingoptionalcontext:Record<string,unknown>
Example
Inherited from
InvalidFormatError.context
docsPath?
Defined in: src/primitives/errors/AbstractError.ts:51 Path to documentation for this erroroptionaldocsPath:string
Example
Inherited from
InvalidFormatError.docsPath
expected
expected: string
Defined in: src/primitives/errors/ValidationError.ts:19
Inherited from
InvalidFormatError.expected
name
name: string
Defined in: src/primitives/Address/errors.js:34
Inherited from
InvalidFormatError.name
value
value: unknown
Defined in: src/primitives/errors/ValidationError.ts:18
Inherited from
InvalidFormatError.value
Methods
getErrorChain()
getErrorChain(): string
Defined in: src/primitives/errors/AbstractError.ts:94
Get full error chain as string for logging
Returns
string
Inherited from
InvalidFormatError.getErrorChain
toJSON()
toJSON():Defined in: src/primitives/errors/AbstractError.ts:110 Serialize error to JSON for logging/telemetryRecord<string,unknown>
Returns
Record<string, unknown>
Inherited from
InvalidFormatError.toJSON
InvalidHexStringError
Defined in: src/primitives/Address/errors.js:43 Error thrown when hex string contains invalid charactersThrows
Extends
Constructors
Constructor
new InvalidHexStringError(Defined in: src/primitives/Address/errors.js:54message?,options?):InvalidHexStringError
Parameters
message?
string
Error message
options?
Error optionscause?
Error
Root cause error
code?
string
Error code
context?
Record<string, unknown>
Additional context
docsPath?
string
Documentation path
expected?
string
Expected format
value?
unknown
Invalid value
Returns
InvalidHexStringError
Overrides
InvalidFormatError.constructor
Properties
cause?
Defined in: src/primitives/errors/AbstractError.ts:56 Root cause of this error (for error chaining)optionalcause:Error
Inherited from
InvalidFormatError.cause
code
code: string
Defined in: src/primitives/errors/AbstractError.ts:39
Machine-readable error code for programmatic handling
Example
Inherited from
InvalidFormatError.code
context?
Defined in: src/primitives/errors/AbstractError.ts:45 Additional context metadata for debuggingoptionalcontext:Record<string,unknown>
Example
Inherited from
InvalidFormatError.context
docsPath?
Defined in: src/primitives/errors/AbstractError.ts:51 Path to documentation for this erroroptionaldocsPath:string
Example
Inherited from
InvalidFormatError.docsPath
expected
expected: string
Defined in: src/primitives/errors/ValidationError.ts:19
Inherited from
InvalidFormatError.expected
name
name: string
Defined in: src/primitives/Address/errors.js:65
Inherited from
InvalidFormatError.name
value
value: unknown
Defined in: src/primitives/errors/ValidationError.ts:18
Inherited from
InvalidFormatError.value
Methods
getErrorChain()
getErrorChain(): string
Defined in: src/primitives/errors/AbstractError.ts:94
Get full error chain as string for logging
Returns
string
Inherited from
InvalidFormatError.getErrorChain
toJSON()
toJSON():Defined in: src/primitives/errors/AbstractError.ts:110 Serialize error to JSON for logging/telemetryRecord<string,unknown>
Returns
Record<string, unknown>
Inherited from
InvalidFormatError.toJSON
InvalidValueError
Defined in: src/primitives/Address/errors.js:104 Error thrown when value is invalidThrows
Extends
Constructors
Constructor
new InvalidValueError(Defined in: src/primitives/Address/errors.js:115message,options?):InvalidValueError
Parameters
message
string
Error message
options?
Error optionscause?
Error
Root cause error
code?
string
Error code
context?
Record<string, unknown>
Additional context
docsPath?
string
Documentation path
expected?
string
Expected value
value?
unknown
Invalid value
Returns
InvalidValueError
Overrides
ValidationError.constructor
Properties
cause?
Defined in: src/primitives/errors/AbstractError.ts:56 Root cause of this error (for error chaining)optionalcause:Error
Inherited from
ValidationError.cause
code
code: string
Defined in: src/primitives/errors/AbstractError.ts:39
Machine-readable error code for programmatic handling
Example
Inherited from
ValidationError.code
context?
Defined in: src/primitives/errors/AbstractError.ts:45 Additional context metadata for debuggingoptionalcontext:Record<string,unknown>
Example
Inherited from
ValidationError.context
docsPath?
Defined in: src/primitives/errors/AbstractError.ts:51 Path to documentation for this erroroptionaldocsPath:string
Example
Inherited from
ValidationError.docsPath
expected
expected: string
Defined in: src/primitives/errors/ValidationError.ts:19
Inherited from
ValidationError.expected
name
name: string
Defined in: src/primitives/Address/errors.js:125
Inherited from
ValidationError.name
value
value: unknown
Defined in: src/primitives/errors/ValidationError.ts:18
Inherited from
ValidationError.value
Methods
getErrorChain()
getErrorChain(): string
Defined in: src/primitives/errors/AbstractError.ts:94
Get full error chain as string for logging
Returns
string
Inherited from
ValidationError.getErrorChain
toJSON()
toJSON():Defined in: src/primitives/errors/AbstractError.ts:110 Serialize error to JSON for logging/telemetryRecord<string,unknown>
Returns
Record<string, unknown>
Inherited from
ValidationError.toJSON
NotImplementedError
Defined in: src/primitives/Address/errors.js:134 Error thrown when feature is not implementedThrows
Extends
Constructors
Constructor
new NotImplementedError(Defined in: src/primitives/Address/errors.js:143message?,options?):NotImplementedError
Parameters
message?
string
Error message
options?
Error optionscause?
Error
Root cause error
code?
string
Error code
context?
Record<string, unknown>
Additional context
docsPath?
string
Documentation path
Returns
NotImplementedError
Overrides
PrimitiveError.constructor
Properties
cause?
Defined in: src/primitives/errors/AbstractError.ts:56 Root cause of this error (for error chaining)optionalcause:Error
Inherited from
PrimitiveError.cause
code
code: string
Defined in: src/primitives/errors/AbstractError.ts:39
Machine-readable error code for programmatic handling
Example
Inherited from
PrimitiveError.code
context?
Defined in: src/primitives/errors/AbstractError.ts:45 Additional context metadata for debuggingoptionalcontext:Record<string,unknown>
Example
Inherited from
PrimitiveError.context
docsPath?
Defined in: src/primitives/errors/AbstractError.ts:51 Path to documentation for this erroroptionaldocsPath:string
Example
Inherited from
PrimitiveError.docsPath
name
name: string
Defined in: src/primitives/Address/errors.js:150
Inherited from
PrimitiveError.name
Methods
getErrorChain()
getErrorChain(): string
Defined in: src/primitives/errors/AbstractError.ts:94
Get full error chain as string for logging
Returns
string
Inherited from
PrimitiveError.getErrorChain
toJSON()
toJSON():Defined in: src/primitives/errors/AbstractError.ts:110 Serialize error to JSON for logging/telemetryRecord<string,unknown>
Returns
Record<string, unknown>
Inherited from
PrimitiveError.toJSON
Interfaces
AddressCrypto
Defined in: src/primitives/Address/index.ts:23 Crypto dependencies for Address operationsProperties
keccak256()?
Defined in: src/primitives/Address/index.ts:24optionalkeccak256: (data) =>Uint8Array
Parameters
data
Uint8Array
Returns
Uint8Array
rlpEncode()?
Defined in: src/primitives/Address/index.ts:25optionalrlpEncode: (items) =>Uint8Array
Parameters
items
unknown[]
Returns
Uint8Array
AddressWithFullCrypto
Defined in: src/primitives/Address/index.ts:61 Address with full crypto support (enables all contract address methods)Extends
Indexable
[index: number]: number
Properties
[brand]
Defined in: src/primitives/Address/AddressType.ts:4readonly[brand]:"Address"
Inherited from
AddressWithKeccak.[brand]
Methods
calculateCreate2Address()
calculateCreate2Address(Defined in: src/primitives/Address/index.ts:52salt,initCode):AddressType
Parameters
salt
HashType
initCode
BrandedBytecode
Returns
AddressType
Inherited from
AddressWithKeccak.calculateCreate2Address
calculateCreateAddress()
calculateCreateAddress(Defined in: src/primitives/Address/index.ts:62nonce):AddressType
Parameters
nonce
bigint
Returns
AddressType
clone()
clone(): AddressType
Defined in: src/primitives/Address/index.ts:41
Returns
AddressType
Inherited from
AddressWithKeccak.clone
compare()
compare(Defined in: src/primitives/Address/index.ts:42other):number
Parameters
other
AddressType
Returns
number
Inherited from
AddressWithKeccak.compare
equals()
equals(Defined in: src/primitives/Address/index.ts:39other):boolean
Parameters
other
AddressType
Returns
boolean
Inherited from
AddressWithKeccak.equals
greaterThan()
greaterThan(Defined in: src/primitives/Address/index.ts:44other):boolean
Parameters
other
AddressType
Returns
boolean
Inherited from
AddressWithKeccak.greaterThan
isZero()
isZero(): boolean
Defined in: src/primitives/Address/index.ts:38
Returns
boolean
Inherited from
AddressWithKeccak.isZero
lessThan()
lessThan(Defined in: src/primitives/Address/index.ts:43other):boolean
Parameters
other
AddressType
Returns
boolean
Inherited from
AddressWithKeccak.lessThan
toAbiEncoded()
toAbiEncoded(): Uint8Array
Defined in: src/primitives/Address/index.ts:36
Returns
Uint8Array
Inherited from
AddressWithKeccak.toAbiEncoded
toBytes()
toBytes(): Uint8Array
Defined in: src/primitives/Address/index.ts:40
Returns
Uint8Array
Inherited from
AddressWithKeccak.toBytes
toChecksummed()
toChecksummed(): string
Defined in: src/primitives/Address/index.ts:51
Returns
string
Inherited from
AddressWithKeccak.toChecksummed
toHex()
toHex(): string
Defined in: src/primitives/Address/index.ts:32
Convert the Uint8Array to a hex encoded string
Returns
string
The hex encoded string representation of the Uint8Array
Inherited from
AddressWithKeccak.toHex
toLowercase()
toLowercase(): string
Defined in: src/primitives/Address/index.ts:33
Returns
string
Inherited from
AddressWithKeccak.toLowercase
toShortHex()
toShortHex(Defined in: src/primitives/Address/index.ts:37startLength?,endLength?):string
Parameters
startLength?
number
endLength?
number
Returns
string
Inherited from
AddressWithKeccak.toShortHex
toU256()
toU256(): bigint
Defined in: src/primitives/Address/index.ts:35
Returns
bigint
Inherited from
AddressWithKeccak.toU256
toUppercase()
toUppercase(): string
Defined in: src/primitives/Address/index.ts:34
Returns
string
Inherited from
AddressWithKeccak.toUppercase
AddressWithKeccak
Defined in: src/primitives/Address/index.ts:50 Address with keccak256 support (enables checksum methods)Extends
Extended by
Indexable
[index: number]: number
Properties
[brand]
Defined in: src/primitives/Address/AddressType.ts:4readonly[brand]:"Address"
Inherited from
BaseAddress.[brand]
Methods
calculateCreate2Address()
calculateCreate2Address(Defined in: src/primitives/Address/index.ts:52salt,initCode):AddressType
Parameters
salt
HashType
initCode
BrandedBytecode
Returns
AddressType
clone()
clone(): AddressType
Defined in: src/primitives/Address/index.ts:41
Returns
AddressType
Inherited from
BaseAddress.clone
compare()
compare(Defined in: src/primitives/Address/index.ts:42other):number
Parameters
other
AddressType
Returns
number
Inherited from
BaseAddress.compare
equals()
equals(Defined in: src/primitives/Address/index.ts:39other):boolean
Parameters
other
AddressType
Returns
boolean
Inherited from
BaseAddress.equals
greaterThan()
greaterThan(Defined in: src/primitives/Address/index.ts:44other):boolean
Parameters
other
AddressType
Returns
boolean
Inherited from
BaseAddress.greaterThan
isZero()
isZero(): boolean
Defined in: src/primitives/Address/index.ts:38
Returns
boolean
Inherited from
BaseAddress.isZero
lessThan()
lessThan(Defined in: src/primitives/Address/index.ts:43other):boolean
Parameters
other
AddressType
Returns
boolean
Inherited from
BaseAddress.lessThan
toAbiEncoded()
toAbiEncoded(): Uint8Array
Defined in: src/primitives/Address/index.ts:36
Returns
Uint8Array
Inherited from
BaseAddress.toAbiEncoded
toBytes()
toBytes(): Uint8Array
Defined in: src/primitives/Address/index.ts:40
Returns
Uint8Array
Inherited from
BaseAddress.toBytes
toChecksummed()
toChecksummed(): string
Defined in: src/primitives/Address/index.ts:51
Returns
string
toHex()
toHex(): string
Defined in: src/primitives/Address/index.ts:32
Convert the Uint8Array to a hex encoded string
Returns
string
The hex encoded string representation of the Uint8Array
Inherited from
BaseAddress.toHex
toLowercase()
toLowercase(): string
Defined in: src/primitives/Address/index.ts:33
Returns
string
Inherited from
BaseAddress.toLowercase
toShortHex()
toShortHex(Defined in: src/primitives/Address/index.ts:37startLength?,endLength?):string
Parameters
startLength?
number
endLength?
number
Returns
string
Inherited from
BaseAddress.toShortHex
toU256()
toU256(): bigint
Defined in: src/primitives/Address/index.ts:35
Returns
bigint
Inherited from
BaseAddress.toU256
toUppercase()
toUppercase(): string
Defined in: src/primitives/Address/index.ts:34
Returns
string
Inherited from
BaseAddress.toUppercase
BaseAddress
Defined in: src/primitives/Address/index.ts:31 Base Address type without crypto-dependent methodsExtends
Extended by
Indexable
[index: number]: number
Properties
[brand]
Defined in: src/primitives/Address/AddressType.ts:4readonly[brand]:"Address"
Inherited from
AddressType.[brand]
Methods
clone()
clone(): AddressType
Defined in: src/primitives/Address/index.ts:41
Returns
AddressType
compare()
compare(Defined in: src/primitives/Address/index.ts:42other):number
Parameters
other
AddressType
Returns
number
equals()
equals(Defined in: src/primitives/Address/index.ts:39other):boolean
Parameters
other
AddressType
Returns
boolean
greaterThan()
greaterThan(Defined in: src/primitives/Address/index.ts:44other):boolean
Parameters
other
AddressType
Returns
boolean
isZero()
isZero(): boolean
Defined in: src/primitives/Address/index.ts:38
Returns
boolean
lessThan()
lessThan(Defined in: src/primitives/Address/index.ts:43other):boolean
Parameters
other
AddressType
Returns
boolean
toAbiEncoded()
toAbiEncoded(): Uint8Array
Defined in: src/primitives/Address/index.ts:36
Returns
Uint8Array
toBytes()
toBytes(): Uint8Array
Defined in: src/primitives/Address/index.ts:40
Returns
Uint8Array
toHex()
toHex(): string
Defined in: src/primitives/Address/index.ts:32
Convert the Uint8Array to a hex encoded string
Returns
string
The hex encoded string representation of the Uint8Array
Overrides
AddressType.toHex
toLowercase()
toLowercase(): string
Defined in: src/primitives/Address/index.ts:33
Returns
string
toShortHex()
toShortHex(Defined in: src/primitives/Address/index.ts:37startLength?,endLength?):string
Parameters
startLength?
number
endLength?
number
Returns
string
toU256()
toU256(): bigint
Defined in: src/primitives/Address/index.ts:35
Returns
bigint
toUppercase()
toUppercase(): string
Defined in: src/primitives/Address/index.ts:34
Returns
string
Type Aliases
AddressType
AddressType =Defined in: src/primitives/Address/AddressType.ts:3Uint8Array&object
Type Declaration
[brand]
readonly[brand]:"Address"
Variables
equals()
Defined in: src/primitives/Address/index.ts:262 Check if two addresses are equalconstequals: (address,other) =>boolean=Address.equals
Parameters
address
AddressType
First address
other
AddressType
Address to compare with
Returns
boolean
True if addresses are identical
Example
fromHex()
Defined in: src/primitives/Address/index.ts:261constfromHex: (value,crypto?) =>AddressType=Address.fromHex
Parameters
value
string
crypto?
AddressCrypto
Returns
AddressType
fromPublicKey()
Defined in: src/primitives/Address/index.ts:186constfromPublicKey: {(x,y):AddressType; (publicKey):AddressType; } =Address.fromPublicKey
Call Signature
(x,y):AddressType
Parameters
x
bigint
y
bigint
Returns
AddressType
Call Signature
(publicKey):AddressType
Parameters
publicKey
Uint8Array
Returns
AddressType
HEX_SIZE
Defined in: src/primitives/Address/constants.js:11 Address hex string size (including 0x prefix)constHEX_SIZE:42=42
NATIVE_ASSET_ADDRESS
Defined in: src/primitives/Address/constants.js:19 Native ETH address constant as defined in ERC-7528 Used to represent native ETH in token-related operationsconstNATIVE_ASSET_ADDRESS:string="0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"
See
https://eips.ethereum.org/EIPS/eip-7528SIZE
Defined in: src/primitives/Address/constants.js:5 Address size in bytesconstSIZE:20=20
toHex()
Defined in: src/primitives/Address/index.ts:260 Convert Address to hex stringconsttoHex: (address) =>HexType=BrandedAddress.toHex
Parameters
address
AddressType
Address to convert
Returns
HexType
Lowercase hex string with 0x prefix
Example
Functions
Address()
Call Signature
Address(Defined in: src/primitives/Address/index.ts:80 Creates Address instances with prototype chainvalue):BaseAddress
Parameters
value
Value to convert (hex string, bytes, or number)string | number | bigint | Uint8Array<ArrayBufferLike>
Returns
BaseAddress
Address instance with prototype methods
See
https://voltaire.tevm.sh/primitives/address for Address documentationSince
0.0.0Throws
If value format is invalidExample
Call Signature
Address(Defined in: src/primitives/Address/index.ts:91 Creates Address with keccak256 supportvalue,crypto):AddressWithKeccak
Parameters
value
Value to convertstring | number | bigint | Uint8Array<ArrayBufferLike>
crypto
Crypto dependencies with keccak256keccak256
(data) => Uint8Array
Returns
AddressWithKeccak
Address with checksum methods
Call Signature
Address(Defined in: src/primitives/Address/index.ts:103 Creates Address with full crypto supportvalue,crypto):AddressWithFullCrypto
Parameters
value
Value to convertstring | number | bigint | Uint8Array<ArrayBufferLike>
crypto
Crypto dependencies with keccak256 and rlpEncodekeccak256
(data) => Uint8Array
rlpEncode
(items) => Uint8Array
Returns
AddressWithFullCrypto
Address with all contract address methods
deduplicateAddresses()
deduplicateAddresses(Defined in: src/primitives/Address/index.ts:251addresses):AddressType[]
Parameters
addresses
AddressType[]
Returns
AddressType[]
sortAddresses()
sortAddresses(Defined in: src/primitives/Address/index.ts:244addresses):AddressType[]
Parameters
addresses
AddressType[]
Returns
AddressType[]

