Header

Interface
All of the properties of a Block except the Transactions themselves.
export interface Header { 
  readonly version: number; 
  readonly previousBlockHash: Hash256String; 
  readonly merkleRoot: Hash256String; 
  readonly time: BigNumber; 
  readonly timeSeconds: number; 
  readonly nonce: BigNumber; 
  readonly index: number; 
  readonly primaryIndex: number; 
  readonly nextConsensus: AddressString; 
  readonly witnesses: readonly Witness[]; 
  readonly hash: Hash256String; 
  readonly witness: Witness; 
  readonly size: number; 
} 

Properties

version
number
NEO blockchain version.
previousBlockHash
Previous Block hash.
merkleRoot
Merkle Root of the Transactions of this Block.
time
BigNumber
Block time persisted in milliseconds.
timeSeconds
number
Block time persisted in seconds.
nonce
BigNumber
Block nonce.
index
number
Block index.
primaryIndex
number
The primary index of the consensus node that generated this Block.
nextConsensus
Next consensus address.
witnesses
readonly Witness[]
Witnesses to the Block's validity.
witness
'Witness' to the Block's validity.
size
number
Size in bytes of the Block.
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE