Skip to main content

fromHex

scrypt-ts-opcat v1.0.1


scrypt-ts-opcat / Address / fromHex

Function: fromHex()

fromHex(hex, network, type?): Address

Defined in: node_modules/@opcat-labs/opcat/types/address.d.cts:206

Creates an Address instance from a hex string.

Parameters

hex

string

The hex string representation of the address.

network

Network

The network type (e.g., 'mainnet', 'testnet').

type?

AddressType

Optional address type.

Returns

Address

The Address instance created from the hex string.