View Source Icon.Schema.Types.Block (ICON 2.0 SDK v0.2.3)

This module defines a block.

A block has the following keys:

KeyTypeDescription
block_hashIcon.Schema.Types.Hash.t()Block hash.
confirmed_transaction_listList of Icon.Schema.Types.Transaction.t()List of confirmed transactions.
heightIcon.Schema.Types.Integer.t()Block height.
merkle_tree_root_hashIcon.Schema.Types.Hash.t()Merkle tree root hash.
peer_idIcon.Schema.Types.EOA.t()Unique address of the node.
prev_block_hashIcon.Schema.Types.Hash.t()Previous block hash.
signatureIcon.Schema.Types.Signature.t()Block signature.
time_stampIcon.Schema.Types.Timestamp.t()Block timestamp.
versionIcon.Schema.Types.String.t()Block version.

Link to this section Summary

Link to this section Types

@type t() :: %Icon.Schema.Types.Block{
  block_hash: term(),
  confirmed_transaction_list: term(),
  height: term(),
  merkle_tree_root_hash: term(),
  peer_id: term(),
  prev_block_hash: term(),
  signature: term(),
  time_stamp: term(),
  version: term()
}