not optimised query

Returns the latest 200 transfers and transactions on Ethereum and BNB Chain: amount, transaction hash, gas, gas price, currency symbol, currency address, decimals and 11 more fields.

By gaurav · saved 8 November 2022 · run 1 time · Bitquery API v1

What it returns

The query

{
  ethereum(network: bsc) {
    transfers(
      options: {desc: "block.timestamp.unixtime", limit: 200, offset: 0}
      any: [{receiver: {is: "0x0A232204C9959F11bA4DE78e571705492835F861"}}, {sender: {is: "0x0A232204C9959F11bA4DE78e571705492835F861"}}]
    ) {
      amount
      transaction {
        hash
        gas
        gasPrice
      }
      currency {
        symbol
        address
        decimals
        name
      }
      block {
        timestamp {
          unixtime
        }
      }
      sender {
        address
      }
      receiver {
        address
      }
    }
    transactions(
      options: {desc: "block.timestamp.unixtime", limit: 200, offset: 0}
      any: [{txTo: {is: "0x0A232204C9959F11bA4DE78e571705492835F861"}}, {txSender: {is: "0x0A232204C9959F11bA4DE78e571705492835F861"}}]
    ) {
      index
      hash
      success
      block {
        timestamp {
          unixtime
        }
        height
      }
      gasPrice
      gas
      amount
      to {
        address
        smartContract {
          currency {
            decimals
            name
            symbol
            tokenType
          }
          contractType
        }
      }
      sender {
        address
      }
    }
  }
}

Similar queries