optimized query

Returns the latest 200 transfers and transactions on Ethereum and BNB Chain, where sender is 0x0A23…F861, receiver is 0x0A23…F861 and tx sender is 0x0A23…F861: amount, transaction hash, gas, gas price, currency symbol, currency address, decimals and 11 more fields.

By gaurav · saved 8 November 2022 · run 3 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    input_transfers: transfers(
      options: {desc: "block.timestamp.unixtime", limit: 200, offset: 0}
      sender: {is: "0x0A232204C9959F11bA4DE78e571705492835F861"}
    ) {
      amount
      transaction {
        hash
        gas
        gasPrice
      }
      currency {
        symbol
        address
        decimals
        name
      }
      block {
        timestamp {
          unixtime
        }
      }
      sender {
        address
      }
      receiver {
        address
      }
    }
    output_transfers: transfers(
      options: {desc: "block.timestamp.unixtime", limit: 200, offset: 0}
      receiver: {is: "0x0A232204C9959F11bA4DE78e571705492835F861"}
    ) {
      amount
      transaction {
        hash
        gas
        gasPrice
      }
      currency {
        symbol
        address
        decimals
        name
      }
      block {
        timestamp {
          unixtime
        }
      }
      sender {
        address
      }
      receiver {
        address
      }
    }
    input_txs: transactions(
      options: {desc: "block.timestamp.unixtime", limit: 200, offset: 0}
      txSender: {is: "0x0A232204C9959F11bA4DE78e571705492835F861"}
    ) {
      index
      hash
      success
      block {
        timestamp {
          unixtime
        }
        height
      }
      gasPrice
      gas
      amount
      to {
        address
        smartContract {
          currency {
            decimals
            name
            symbol
            tokenType
          }
          contractType
        }
      }
      sender {
        address
      }
    }
    output_txs: transactions(
      options: {desc: "block.timestamp.unixtime", limit: 200, offset: 0}
      txTo: {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