fromHex
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
The Address instance created from the hex string.