eth_getTransactionByHash

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 14 August 2024 · run 5 times · 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/
#

query getTransactionByHash {
  EVM {
    Transactions(
      where: {Transaction: {Hash: {is: "0xcc9ce436a02e8a4b44546affebe036fdd54b70c27ea3c2df18c0a1ed78ec9fbe"}}}
    ) {
      Block {
        Time
        Number
      }
      ChainId
      Signature {
        R
        S
        V
      }
      Transaction {
        From
        Gas
        GasPrice
        Hash
        Index
        Nonce
        Cost
        Data
        To
        Value
        AccessList {
          Address
          StorageKeys
        }
        GasFeeCap
        Type
      }
      TransactionStatus {
        Success
      }
    }
  }
}

Similar queries