Preparing search index...
The search index is not available
bitcoinjs-lib - v6.1.5
bitcoinjs-lib
Block
Class Block
Hierarchy
Block
Index
Constructors
constructor
Properties
bits
merkle
Root?
nonce
prev
Hash?
timestamp
transactions?
version
witness
Commit?
Methods
byte
Length
check
Proof
Of
Work
check
Tx
Roots
get
Hash
get
Id
getUTCDate
get
Witness
Commit
has
Witness
has
Witness
Commit
to
Buffer
to
Hex
weight
calculate
Merkle
Root
calculate
Target
from
Buffer
from
Hex
Constructors
constructor
new
Block
(
)
:
Block
Returns
Block
Properties
bits
bits
:
number
= 0
Optional
merkle
Root
merkle
Root
?:
Buffer
= undefined
nonce
nonce
:
number
= 0
Optional
prev
Hash
prev
Hash
?:
Buffer
= undefined
timestamp
timestamp
:
number
= 0
Optional
transactions
transactions
?:
Transaction
[]
= undefined
version
version
:
number
= 1
Optional
witness
Commit
witness
Commit
?:
Buffer
= undefined
Methods
byte
Length
byte
Length
(
headersOnly
?
,
allowWitness
?
)
:
number
Parameters
Optional
headersOnly
:
boolean
allowWitness
:
boolean
= true
Returns
number
check
Proof
Of
Work
check
Proof
Of
Work
(
)
:
boolean
Returns
boolean
check
Tx
Roots
check
Tx
Roots
(
)
:
boolean
Returns
boolean
get
Hash
get
Hash
(
)
:
Buffer
Returns
Buffer
get
Id
get
Id
(
)
:
string
Returns
string
getUTCDate
getUTCDate
(
)
:
Date
Returns
Date
get
Witness
Commit
get
Witness
Commit
(
)
:
null
|
Buffer
Returns
null
|
Buffer
has
Witness
has
Witness
(
)
:
boolean
Returns
boolean
has
Witness
Commit
has
Witness
Commit
(
)
:
boolean
Returns
boolean
to
Buffer
to
Buffer
(
headersOnly
?
)
:
Buffer
Parameters
Optional
headersOnly
:
boolean
Returns
Buffer
to
Hex
to
Hex
(
headersOnly
?
)
:
string
Parameters
Optional
headersOnly
:
boolean
Returns
string
weight
weight
(
)
:
number
Returns
number
Static
calculate
Merkle
Root
calculate
Merkle
Root
(
transactions
,
forWitness
?
)
:
Buffer
Parameters
transactions
:
Transaction
[]
Optional
forWitness
:
boolean
Returns
Buffer
Static
calculate
Target
calculate
Target
(
bits
)
:
Buffer
Parameters
bits
:
number
Returns
Buffer
Static
from
Buffer
from
Buffer
(
buffer
)
:
Block
Parameters
buffer
:
Buffer
Returns
Block
Static
from
Hex
from
Hex
(
hex
)
:
Block
Parameters
hex
:
string
Returns
Block
Settings
Theme
OS
Light
Dark
On This Page
constructor
bits
merkle
Root
nonce
prev
Hash
timestamp
transactions
version
witness
Commit
byte
Length
check
Proof
Of
Work
check
Tx
Roots
get
Hash
get
Id
getUTCDate
get
Witness
Commit
has
Witness
has
Witness
Commit
to
Buffer
to
Hex
weight
calculate
Merkle
Root
calculate
Target
from
Buffer
from
Hex
bitcoinjs-lib - v6.1.5
address
crypto
networks
payments
script
Block
Psbt
Transaction
HDSigner
HDSignerAsync
PsbtTxInput
PsbtTxOutput
Signer
SignerAsync
TxInput
TxOutput
initEccLib