Transaction Attributes

Returns transactions and transfers on Ethereum, where transaction hash is 0xfea2…ae97: chain ID, block number, block time, gas used, gas limit, parent hash, sum of fee sender fee and 16 more fields.

By Nadia · saved 17 February 2025 · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $hash: String) {
  EVM(dataset: combined, network: $network) {
    Transactions(where: {Transaction: {Hash: {is: $hash}}}) {
      ChainId
      Block {
        Number
        Time
        GasUsed
        GasLimit
        ParentHash
      }
      sum(of: Fee_SenderFee)
      Transaction {
        Hash
        From
        To
        Value
        ValueInUSD
        Gas
        GasPrice
        GasPriceInUSD
        Protected
        CallCount
        Cost
        CostInUSD
      }
    }
    Transfers(where: {Transaction: {Hash: {is: $hash}}}) {
      t_count: count
      t_sum: sum(of: Transfer_Amount)
      t_sum_usd: sum(of: Transfer_AmountInUSD)
      Transfer {
        Success
      }
    }
  }
}

Variables

{
  "network": "eth",
  "hash": "0xfea220e89c6bc2b1c02bd1a0ebf9b8f93c980833a57b7c14fcb16764674bae97"
}

Similar queries