blkApi - Block Api

This page provides high level apis to get block details.

1. Get Last 3 blocks

Query

{
  blockApi {
    blocks(first: 3) {
      number
      hash
      parentHash
      nrgConsumed
      nrgLimit
      difficulty
      totalDifficulty
      bloom
      minerAddress
      extraData
      txTrieRoot
      txDetails {
        to
        from
        value
        timestamp
      }
      
    }
  }
}

Result:

2. Find a block by block number

Query

Result

Last updated