fromBuffer
scrypt-ts-opcat / Address / fromBuffer
Function: fromBuffer()
fromBuffer(
buffer
,network
?,type
?):Address
Defined in: node_modules/@opcat-labs/opcat/types/address.d.cts:198
Instantiate an address from a bitcoin address buffer
Parameters
buffer
Buffer
An instance of buffer of the address
network?
any
either a Network instance, 'livenet', or 'testnet'
type?
string
The type of address: 'pubkey'
Returns
A new valid and frozen instance of an Address