eth_getTransactionReceipt

Historical data This query uses the realtime dataset (the default), which holds only a recent window - hours to days depending on the cube. For older data add a dataset to the top-level element: EVM(dataset: combined) archive full history combined archive + realtime in one result Archive and comb

By Kshitij Mahajan · saved 16 August 2024 · Bitquery API v2

What it returns

Filters

The query

# Historical data
#   This query uses the realtime dataset (the default), which holds only a
#   recent window - hours to days depending on the cube.
#
#   For older data add a dataset to the top-level element:
#
#     EVM(dataset: combined)
#
#     archive   full history
#     combined  archive + realtime in one result
#
#   Archive and combined need the historical data add-on:
#   https://bitquery.io/pricing
#
# Datasets:  https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#

{
  EVM {
    Transactions(
      where: {
        Transaction: {
          Hash: {
            is: "0x4fe59dcf4f834f17acdcd0f244538c119523009ce47817ccd56423404ba34ffa"
          }
        }
      }
    ) {
      Block {
        Hash
        Number
      }
      Transaction {
        From
        GasPrice
        Hash
        Index
        To
      }
      Receipt {
        ContractAddress
        CumulativeGasUsed
        GasUsed
        Status
        Type
        Bloom
      }
    }
  }
}

Similar queries