get tx value and fee

Returns one transaction on Ethereum, where tx hash is 0xb6d0…9bb7: amount and gas value.

By Stanislas · saved 21 October 2021 · Bitquery API v1

What it returns

Filters

The query

query ($hash: String!) {
  ethereum(network: ethereum) {
    transactions(txHash: {is: $hash}, options: {limit: 1}) {
      value: amount
      usd_value: amount(in: USD)
      fee: gasValue
      usd_fee: gasValue(in: USD)
    }
  }
}

Variables

{"hash": "0xb6d03e6bd09c8037a7613a35dfc4d1d847b78725f1e24dcee2adafbf8c019bb7"}

Similar queries