Skip to content

NormalBlockV1⚓︎

Extends⚓︎

Constructors⚓︎

new NormalBlockV1()⚓︎

new NormalBlockV1(): NormalBlockV1

Returns⚓︎

NormalBlockV1

Inherited from⚓︎

Block.constructor

Properties⚓︎

Property Modifier Type Overrides Inherited from
_beneficiaryAddress public Address - Block._beneficiaryAddress
_blockHeaderReserved_1 public number - -
_difficulty public Difficulty - Block._difficulty
_entityBodyReserved_1 public number - Block._entityBodyReserved_1
_feeMultiplier public BlockFeeMultiplier - Block._feeMultiplier
_generationHashProof public VrfProof - Block._generationHashProof
_height public Height - Block._height
_network public NetworkType - Block._network
_previousBlockHash public Hash256 - Block._previousBlockHash
_receiptsHash public Hash256 - Block._receiptsHash
_signature public Signature - Block._signature
_signerPublicKey public PublicKey - Block._signerPublicKey
_stateHash public Hash256 - Block._stateHash
_timestamp public Timestamp - Block._timestamp
_transactions public any[] - -
_transactionsHash public Hash256 - Block._transactionsHash
_type public BlockType - Block._type
_verifiableEntityHeaderReserved_1 public number - Block._verifiableEntityHeaderReserved_1
_version public number - Block._version
BLOCK_TYPE static BlockType - -
BLOCK_VERSION static number - -
TYPE_HINTS static object Block.TYPE_HINTS -
TYPE_HINTS.beneficiaryAddress public string - -
TYPE_HINTS.difficulty public string - -
TYPE_HINTS.feeMultiplier public string - -
TYPE_HINTS.generationHashProof public string - -
TYPE_HINTS.height public string - -
TYPE_HINTS.network public string - -
TYPE_HINTS.previousBlockHash public string - -
TYPE_HINTS.receiptsHash public string - -
TYPE_HINTS.signature public string - -
TYPE_HINTS.signerPublicKey public string - -
TYPE_HINTS.stateHash public string - -
TYPE_HINTS.timestamp public string - -
TYPE_HINTS.transactions public string - -
TYPE_HINTS.transactionsHash public string - -
TYPE_HINTS.type public string - -

Accessors⚓︎

beneficiaryAddress⚓︎

Get Signature⚓︎

get beneficiaryAddress(): Address
Returns⚓︎

Address

Set Signature⚓︎

set beneficiaryAddress(value): void
Parameters⚓︎
Parameter Type
value Address
Returns⚓︎

void

Inherited from⚓︎

Block.beneficiaryAddress


difficulty⚓︎

Get Signature⚓︎

get difficulty(): Difficulty
Returns⚓︎

Difficulty

Set Signature⚓︎

set difficulty(value): void
Parameters⚓︎
Parameter Type
value Difficulty
Returns⚓︎

void

Inherited from⚓︎

Block.difficulty


feeMultiplier⚓︎

Get Signature⚓︎

get feeMultiplier(): BlockFeeMultiplier
Returns⚓︎

BlockFeeMultiplier

Set Signature⚓︎

set feeMultiplier(value): void
Parameters⚓︎
Parameter Type
value BlockFeeMultiplier
Returns⚓︎

void

Inherited from⚓︎

Block.feeMultiplier


generationHashProof⚓︎

Get Signature⚓︎

get generationHashProof(): VrfProof
Returns⚓︎

VrfProof

Set Signature⚓︎

set generationHashProof(value): void
Parameters⚓︎
Parameter Type
value VrfProof
Returns⚓︎

void

Inherited from⚓︎

Block.generationHashProof


height⚓︎

Get Signature⚓︎

get height(): Height
Returns⚓︎

Height

Set Signature⚓︎

set height(value): void
Parameters⚓︎
Parameter Type
value Height
Returns⚓︎

void

Inherited from⚓︎

Block.height


network⚓︎

Get Signature⚓︎

get network(): NetworkType
Returns⚓︎

NetworkType

Set Signature⚓︎

set network(value): void
Parameters⚓︎
Parameter Type
value NetworkType
Returns⚓︎

void

Inherited from⚓︎

Block.network


previousBlockHash⚓︎

Get Signature⚓︎

get previousBlockHash(): Hash256
Returns⚓︎

Hash256

Set Signature⚓︎

set previousBlockHash(value): void
Parameters⚓︎
Parameter Type
value Hash256
Returns⚓︎

void

Inherited from⚓︎

Block.previousBlockHash


receiptsHash⚓︎

Get Signature⚓︎

get receiptsHash(): Hash256
Returns⚓︎

Hash256

Set Signature⚓︎

set receiptsHash(value): void
Parameters⚓︎
Parameter Type
value Hash256
Returns⚓︎

void

Inherited from⚓︎

Block.receiptsHash


signature⚓︎

Get Signature⚓︎

get signature(): Signature
Returns⚓︎

Signature

Set Signature⚓︎

set signature(value): void
Parameters⚓︎
Parameter Type
value Signature
Returns⚓︎

void

Inherited from⚓︎

Block.signature


signerPublicKey⚓︎

Get Signature⚓︎

get signerPublicKey(): PublicKey
Returns⚓︎

PublicKey

Set Signature⚓︎

set signerPublicKey(value): void
Parameters⚓︎
Parameter Type
value PublicKey
Returns⚓︎

void

Inherited from⚓︎

Block.signerPublicKey


size⚓︎

Get Signature⚓︎

get size(): number
Returns⚓︎

number

Inherited from⚓︎

Block.size


stateHash⚓︎

Get Signature⚓︎

get stateHash(): Hash256
Returns⚓︎

Hash256

Set Signature⚓︎

set stateHash(value): void
Parameters⚓︎
Parameter Type
value Hash256
Returns⚓︎

void

Inherited from⚓︎

Block.stateHash


timestamp⚓︎

Get Signature⚓︎

get timestamp(): Timestamp
Returns⚓︎

Timestamp

Set Signature⚓︎

set timestamp(value): void
Parameters⚓︎
Parameter Type
value Timestamp
Returns⚓︎

void

Inherited from⚓︎

Block.timestamp


transactions⚓︎

Get Signature⚓︎

get transactions(): any[]
Returns⚓︎

any[]

Set Signature⚓︎

set transactions(value): void
Parameters⚓︎
Parameter Type
value any[]
Returns⚓︎

void


transactionsHash⚓︎

Get Signature⚓︎

get transactionsHash(): Hash256
Returns⚓︎

Hash256

Set Signature⚓︎

set transactionsHash(value): void
Parameters⚓︎
Parameter Type
value Hash256
Returns⚓︎

void

Inherited from⚓︎

Block.transactionsHash


type⚓︎

Get Signature⚓︎

get type(): BlockType
Returns⚓︎

BlockType

Set Signature⚓︎

set type(value): void
Parameters⚓︎
Parameter Type
value BlockType
Returns⚓︎

void

Inherited from⚓︎

Block.type


version⚓︎

Get Signature⚓︎

get version(): number
Returns⚓︎

number

Set Signature⚓︎

set version(value): void
Parameters⚓︎
Parameter Type
value number
Returns⚓︎

void

Inherited from⚓︎

Block.version

Methods⚓︎

_serialize()⚓︎

_serialize(buffer): void

Parameters⚓︎

Parameter Type
buffer any

Returns⚓︎

void

Inherited from⚓︎

Block._serialize


serialize()⚓︎

serialize(): Uint8Array<ArrayBufferLike>

Returns⚓︎

Uint8Array<ArrayBufferLike>

Inherited from⚓︎

Block.serialize


sort()⚓︎

sort(): void

Returns⚓︎

void

Inherited from⚓︎

Block.sort


toJson()⚓︎

toJson(): object

Returns⚓︎

object

JSON-safe representation of this object.

Inherited from⚓︎

Block.toJson


toString()⚓︎

toString(): string

Returns⚓︎

string

Inherited from⚓︎

Block.toString


_deserialize()⚓︎

static _deserialize(view, instance): void

Parameters⚓︎

Parameter Type
view any
instance any

Returns⚓︎

void

Inherited from⚓︎

Block._deserialize


deserialize()⚓︎

static deserialize(payload): NormalBlockV1

Parameters⚓︎

Parameter Type
payload any

Returns⚓︎

NormalBlockV1