Blockflow Docs
AppBlog
CLI
CLI
  • Getting Started
    • Installation
    • Quickstart Guide
    • Project Structure
  • Building Blocks
    • Configuring YAML
    • Setting up Database Schema
    • Setting up Handlers
  • Writing handlers
    • Database Operations
      • Instance
      • API
      • Native
    • Indexing Factory Contracts
  • Production
    • Testing
    • Deployment
    • Query The Database
    • Building REST API
    • Building GraphQL APIs
  • Advanced
    • Migrate Subgraph
    • CLI Cheatsheet
    • Console Account
    • Logging
  • Hands-on Project
    • CCTP Protocol
    • ERC-4626
    • Credit-Debit
    • Avocado
    • ENS
    • SolverScan
    • xERC20
    • Snapshot
  • Glossary
    • IEventContext
    • IFunctionContext
    • ILog
    • ITransaction
    • IBlock
Powered by GitBook
On this page
  1. Glossary

IBlock

It is predefined interface containing block data.

Field
Description

chain_id

chainId of the network

block_timestamp

Unix timestamp when the block was added to the blockchain.

block_number

Number of the block.

block_hash

Hash of the block.

parent_hash

Hash of the parent block.

nonce

8-byte integer in hexadecimal format. Used together with the mix hash to show the proof of work.

sha3_uncles

SHA3 of the uncles data in the block.

logs_bloom

Bloom filter for the logs of the block.

transactions_root

Root of the transaction trie of the block.

state_root

Root of the final state trie of the block.

receipts_root

Root of the receipts trie of the block.

miner

Address of the beneficiary to whom the mining rewards were given.

difficulty

Difficulty for this block.

total_difficulty

Accumulated difficulty of the chain until this block.

size

Size of this block in bytes.

extra_data

Extra data of this block.

gas_limit

Maximum gas allowed in this block.

gas_used

Total gas used by all transactions in this block.

transaction_count

Number of transactions in the block.

export interface IBlock {
  chain_id: string;
  block_timestamp: string;
  block_number: number;
  block_hash: string;
  parent_hash: string;
  nonce: string;
  sha3_uncles: string;
  logs_bloom: string;
  transactions_root: string;
  state_root: string;
  receipts_root: string;
  miner: string;
  difficulty: string;
  total_difficulty: string;
  size: string;
  extra_data: string;
  gas_limit: string;
  gas_used: string;
  transaction_count: number;
}
PreviousITransaction