getTransaction by hash

sdsdsdfsdf

Returns transactions and transfers on Ethereum, where tx hash is 0x86e8…1d2f: nonce, gas, gas price, sender address, annotation, contract type, protocol type and 10 more fields.

By Vivek · saved 6 April 2022 · run 8 times · Bitquery API v1

What it returns

Filters

The query

query ($txhash: String!) {
  ethereum(network: ethereum) {
    transactions(success: true, txHash: {is: $txhash}) {
      nonce
      gas(calculate: maximum)
      gasPrice(calculate: maximum)
      sender {
        address
        annotation
        smartContract {
          contractType
          protocolType
          currency {
            name
            symbol
            decimals
          }
        }
      }
      to {
        address
        smartContract {
          contractType
          currency {
            decimals
            name
            symbol
          }
          protocolType
        }
        annotation
      }
    }
    transfers(success: true, external: true, txHash: {is: $txhash}) {
      success(success: true)
      receiver {
        address
        annotation
        smartContract {
          contractType
          currency {
            name
            symbol
          }
          protocolType
        }
      }
      sender {
        address
        annotation
        smartContract {
          contractType
          protocolType
          currency {
            symbol
            name
          }
        }
      }
      transaction {
        gas
        gasPrice
      }
      currency {
        symbol
        tokenId
        tokenType
        decimals
      }
      amount(in: ETH, calculate: any)
      countBigInt
    }
  }
}

Variables

{
  "txhash": "0x86e8c53d4d9ed8edbe8e2dc27b37dfceede1e45943aa4de93cbeba420a901d2f"
}

Similar queries