transfers given a transaction hash

Returns transfers and transactions on Ethereum and Polygon, where tx hash is 0x1135…643e: iso8601, amount, sender address, receiver address, currency symbol, gas value, currency address and 9 more fields.

By Jose · saved 15 February 2023 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $txHash: String!) {
  ethereum(network: $network) {
    transfers(
      txHash: {is: $txHash}
    ) {
      block {
        timestamp {
          time: iso8601
        }
      }
      amount
      amount_in_USD: amount(in: USD)
      sender {
        address
      }
      receiver {
        address
        smartContract {
            currency {
              symbol
            }
        }
      }
      gasValue
      gasValueInUSD: gasValue(in: USD)
      currency {
        address
        symbol
      }
      success
    }
    transactions(
      txHash: {is: $txHash}
    ) {
      gasValue
      gasValueInUSD: gasValue(in: USD)
      amount
      amountInUSD: amount(in: USD)
      block {
        height
        timestamp {
          unixtime
        }
      }
      gasCurrency {
        symbol
      }
      gasPrice
      hash
      gas
      nonce
      sender {
        address
      }
      to {
        address
      }
    }
  }
}

Variables

{
  "network":"matic",
  "txHash":"0x1135e100624c12e53c8bacb97437ed84545501c06a5c3d50353c6d5b880b643e"
}

Similar queries