PHPH1 elephant logo

Description

  • Gets block information on a series of blocks between two block numbers.

    There may be more information in the PHPH1 Class Documentation.

Parameters

  • Number:
    Starting Block Number
  • Number:
    Ending Block Number
    • Object:
    • withSigners - Bool:
      Include signers
    • fullTx - Bool:
      Include full transaction data
    • inclStaking - Bool:
      Include staking transactions

Returns

  • Array:
    List of blocks
  • number - Number:
    Block number
  • viewID - Number:
    View ID
  • Epoch - Number:
    Epoch number of block
  • hash - String:
    Block hash
  • parentHash - String:
    Hash of parent block
  • nonce - Number:
    Unused, legacy from Eth
  • mixHash - String:
    Unused, legacy from Eth
  • logsBloom - String:
    Bloom logs
  • stateRoot - String:
    Hash of state root
  • miner - String:
    Wallet address of the leader that proposed this block
  • Difficulty - Number:
    Unused, legacy from Eth
  • extraData - String:
    Hex representation of extra data in the block
  • size - Number:
    Block size in bytes
  • gasLimit - Number:
    Maximum gas that can be used for transactions in the block
  • gasUsed - Number:
    Amount of gas used for transactions in the block
  • vrf - String:
  • vrfProof - String:
  • timestamp - Number:
    Unix timestamp of the block
  • transactionsRoot - String:
    Hash of transactions root
  • receiptsRoot - String:
    Hash of transaction receipt root
  • uncles - JSON Array:
    Unused, legacy from Eth
  • transactions - JSON Array:
    List of transactions finalized in this block
    • blockHash - String:
      Transaction block hash
    • blockNumber - Number:
      Transaction block number
    • from - String:
      From address
    • timestamp - Number:
      Timestamp
    • gas - Number:
      Gas
    • gasPrice - Number:
      Gas price for the transaction
    • hash - String:
      Transaction hash
    • ethHash - String:
      Transaction ETH hash
    • input - String:
      FIXME
    • nonce - Number:
      Wallet nonce of transaction
    • to - String:
      Transaction to address
    • transactionIndex - Number:
      Transaction index
    • value - Number:
      Transaction amount
    • shardID - Number:
      Shard ID of the sender
    • toShardID - Number:
      Shard ID of the receiver
    • v - String:
      Final 1 byte of ECDSA signature
    • r - String:
      First 32 bytes of ECDSA signature
    • s - String:
      Second 32 bytes of ECDSA signature
  • stakingTransactions - JSON Array:
    List of staking transactions finalized in this block
    • blockHash - String:
      Transaction block hash
    • blockNumber - Number:
      Transaction block number
    • from - String:
      From address
    • timestamp - Number:
      Timestamp
    • gas - Number:
      Gas
    • gasPrice - Number:
      Gas price for the transaction
    • hash - String:
      Transaction hash
    • nonce - Number:
      Wallet nonce of transaction
    • transactionIndex - Number:
      Transaction index
    • v - String:
      Final 1 byte of ECDSA signature
    • r - String:
      First 32 bytes of ECDSA signature
    • s - String:
      Second 32 bytes of ECDSA signature
    • type - String:
      The type of staking transaction
    • msg - Array:
    • shardID - Number:
      Shard ID of the sender
    • toShardID - Number:
      Shard ID of the receiver
      • delegatorAddress - String:
        The delegator walletaddress
      • validatorAddress - String:
        The validator wallet address
      • amount - Number:
        The amount staked in atto
  • signers - JSON Array:
    List of block signer addresses for this block