Constructors
constructor
- new Block(header: BlockHeader, transactions: Transaction[], assets: BlockAssets): Block
-
Properties
Readonly
assets
assets: BlockAssets
Readonly
header
Readonly
transactions
Methods
getBytes
- getBytes(): Buffer
-
Returns Buffer
toJSON
- toJSON(): BlockJSON
-
validate
- validate(): void
-
Returns void
validateGenesis
- validateGenesis(): void
-
Returns void
Static
fromBytes
- fromBytes(value: Buffer): Block
-
Static
fromJSON
- fromJSON(value: BlockJSON): Block
-