Simulating Pending Transactions

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(mempool: true, dataset: combined) archive full history combined archive + realtime in one result A

By Kshitij Mahajan · saved 6 June 2024 · run 154 times · Bitquery API v2

What it returns

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(mempool: true, 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(mempool: true) {
    Transfers {
      Log {
        Index
      }
      Transaction {
        Time
        Type
        To
        Gas
        From
        Cost
        Hash
      }
      Transfer {
        Amount
        Currency {
          Name
        }
        Type
      }
      TransactionStatus {
        Success
        FaultError
        EndError
      }
      Block {
        Time
      }
    }
  }
}

Similar queries