NULS JS - API Reference
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Block
_header
_transactions
get
Hash
serialize
sign
size
to
Bytes
to
Object
to
Raw
Data
_from
Raw
Data
from
Bytes
from
Raw
Data
Hierarchy
Block
Index
Properties
_header
_transactions
Methods
get
Hash
serialize
sign
size
to
Bytes
to
Object
to
Raw
Data
_from
Raw
Data
from
Bytes
from
Raw
Data
Properties
Protected
_header
_header
:
BlockHeader
Protected
_transactions
_transactions
:
BaseTransaction
[]
Methods
get
Hash
get
Hash
(
)
:
BlockHash
Returns
BlockHash
serialize
serialize
(
)
:
BlockHex
Returns
BlockHex
sign
sign
(
privateKey
:
string
)
:
this
Parameters
privateKey:
string
Returns
this
size
size
(
)
:
number
Returns
number
to
Bytes
to
Bytes
(
)
:
Buffer
Returns
Buffer
to
Object
to
Object
(
)
:
BlockObject
Returns
BlockObject
to
Raw
Data
to
Raw
Data
(
)
:
IBlockData
Returns
IBlockData
Static
Protected
_from
Raw
Data
_from
Raw
Data<B>
(
rawData
:
IBlockData
, block
:
B
)
:
B
Type parameters
B
:
Block
Parameters
rawData:
IBlockData
block:
B
Returns
B
Static
from
Bytes
from
Bytes
(
bytes
:
string
)
:
Block
from
Bytes
(
bytes
:
Buffer
)
:
Block
Parameters
bytes:
string
Returns
Block
Parameters
bytes:
Buffer
Returns
Block
Static
from
Raw
Data
from
Raw
Data
(
rawData
:
IBlockData
)
:
Block
Parameters
rawData:
IBlockData
Returns
Block