Preparing search index...
The search index is not available
bitcoinjs-lib - v7.0.0-rc.0
bitcoinjs-lib
Block
Class 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
?:
Uint8Array
= undefined
nonce
nonce
:
number
= 0
Optional
prev
Hash
prev
Hash
?:
Uint8Array
= undefined
timestamp
timestamp
:
number
= 0
Optional
transactions
transactions
?:
Transaction
[]
= undefined
version
version
:
number
= 1
Optional
witness
Commit
witness
Commit
?:
Uint8Array
= 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
(
)
:
Uint8Array
Returns
Uint8Array
get
Id
get
Id
(
)
:
string
Returns
string
getUTCDate
getUTCDate
(
)
:
Date
Returns
Date
get
Witness
Commit
get
Witness
Commit
(
)
:
null
|
Uint8Array
Returns
null
|
Uint8Array
has
Witness
has
Witness
(
)
:
boolean
Returns
boolean
has
Witness
Commit
has
Witness
Commit
(
)
:
boolean
Returns
boolean
to
Buffer
to
Buffer
(
headersOnly
?
)
:
Uint8Array
Parameters
Optional
headersOnly
:
boolean
Returns
Uint8Array
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
?
)
:
Uint8Array
Parameters
transactions
:
Transaction
[]
Optional
forWitness
:
boolean
Returns
Uint8Array
Static
calculate
Target
calculate
Target
(
bits
)
:
Uint8Array
Parameters
bits
:
number
Returns
Uint8Array
Static
from
Buffer
from
Buffer
(
buffer
)
:
Block
Parameters
buffer
:
Uint8Array
Returns
Block
Static
from
Hex
from
Hex
(
hex
)
:
Block
Parameters
hex
:
string
Returns
Block
Settings
Theme
OS
Light
Dark
On This Page
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
bitcoinjs-lib - v7.0.0-rc.0
Loading...