Block

Interface
Attributes of a Block persisted to the blockchain.
export interface Block extends Header { 
  readonly transactions: Transaction[]; 
} 

Properties

transactions
Transactions contained in the Block.

Static Methods

for

Accepts either the Hash256 or the index of the Block.
(hashOrIndex: Hash256 | Integer) => Block 

Example

const genesisBlock = Block.for(0); 
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE