EvmAddress
Represents an Ethereum Virtual Machine (EVM) address with validation and conversion utilities.Constructor
The Fusion SDK Address instance
Static Properties
Zero address constant (0x0000000000000000000000000000000000000000)
Native currency address constant (0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE)
Static Methods
fromBigInt
Create an EvmAddress from a bigint value.BigInt representation of the address
fromString
Create an EvmAddress from a string.Hexadecimal string representation of the address
fromBuffer
Create an EvmAddress from a Buffer.Buffer containing the address bytes
fromUnknown
Create an EvmAddress from an unknown type with automatic type detection.Address in string, bigint, or numeric string format
Instance Methods
nativeAsZero
Convert native address to zero address. Returns the same address if non-native.zeroAsNative
Convert zero address to native address (0xEE…EE). Returns the same address if non-zero.toBuffer
Convert address to Buffer.toHex
Convert address to hex string.equal
Check if this address equals another address.Address to compare with
isNative
Check if this is a native currency address.isZero
Check if this is a zero address.toBigint
Convert address to bigint.toString
Convert address to string.splitToParts
Split the address into complement (zero for EVM) and address parts.SolanaAddress
Represents a Solana address with base58 encoding and conversion utilities.Constructor
Base58-encoded Solana address (must be 32 bytes when decoded)
Static Properties
Associated Token Program address
SPL Token Program address
Token-2022 Program address
System Program address
Sysvar Rent address
Zero address constant
Wrapped SOL address
Native SOL address
Static Methods
fromString
Create a SolanaAddress from a base58 string.Base58-encoded address string
fromParts
Create a SolanaAddress from address complement and EVM address parts.Tuple of high bits (complement) and low bits (EVM address)
fromUnknown
Create a SolanaAddress from an unknown type with automatic type detection.Address in string, bigint, buffer, or PublicKey format
fromPublicKey
Create a SolanaAddress from a Solana PublicKey.Solana web3.js PublicKey instance
fromBuffer
Create a SolanaAddress from a Buffer or Uint8Array.Buffer containing 32 bytes of address data
fromBigInt
Create a SolanaAddress from a bigint value.256-bit bigint representation of the address
Instance Methods
toString
Convert address to base58 string.toBuffer
Convert address to Buffer.toHex
Convert address to hex string.toBigint
Convert address to bigint.equal
Check if this address equals another address.Address to compare with