function getAddressDetails(address): AddressDetails | null

Extracts both zone and UTXO information from a given blockchain address. This function first determines the address’s zone by its byte prefix, then checks the 9th bit of the address to ascertain if it’s a UTXO or non-UTXO address.

Parameters

ParameterTypeDescription
addressstringThe blockchain address to be analyzed, expected to start with “0x” followed by its
hexadecimal representation.

Returns

AddressDetails | null

An object containing the zone and UTXO information, or null if no address is found.

Source

utils/shards.ts:37