Skip to main content

fromBuffer

scrypt-ts-opcat v1.0.1


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

Address

A new valid and frozen instance of an Address