transfer to client wallet and gas burned

Returns transfers and transactions on Ethereum and Polygon, where receiver is 0xa9df…3215 and tx hash is 0x8de5…c524: timestamp time, currency address, currency symbol, currency name, amount, receiver address, success and 10 more fields.

By Cassiano · saved 15 February 2022 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $userPublicKey: String!, $txHash: String!) {
  ethereum(network: $network) {
    transfers(receiver: {is: $userPublicKey}, txHash: {is: $txHash}) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      currency {
        address
        symbol
        name
      }
      amount
      receiver {
        address
      }
      success
    }
    transactions(txHash: {is: $txHash}) {
      success
      hash
      currency {
        address
        symbol
        name
      }
      amount
      gas
      gasValue
      gasPrice
      gasCurrency {
        symbol
        decimals
        address
        name
        tokenId
        tokenType
      }
    }
  }
}

Variables

{
  "network": "matic",
  "userPublicKey": "0xa9dfa2460bb876f2e00d60f109d7e41ef5963215",
  "txHash": "0x8de5c32dd62a0ab64e739b1cbb8fc57e94c781b7cdd6017587ea7fb5b784c524"
}

Similar queries