example2

Returns the latest 100 transfers on Ethereum, where sender is 0x5e03…ab89, date since 2018-01-01 and date till 2022-09-01: timestamp time, block height, currency address, currency symbol, token type, token ID, currency name and 10 more fields.

By Hakan · saved 1 September 2022 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transfers(
      options: {desc: "block.timestamp.time", asc: "currency.symbol", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      amount: {gt: 0}
      sender: {is: $address}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      currency {
        address
        symbol
        tokenType
        tokenId
        name
      }
      amount(receiver: {})
      amount_usd: amount(in: USD)
      transaction {
        hash
        gasValue
        gas
        gasPrice
        txFrom
      }
      external
      gasValue(receiver: {})
      sender {
        address
      }
      address: receiver(receiver: {}) {
        address
        annotation
      }
    }
  }
}

Variables

{
  "limit": 100,
  "offset": 0,
  "network": "ethereum",
  "address": "0x5e032243d507c743b061ef021e2ec7fcc6d3ab89",
  "currency": "",
  "from": "2018-01-01",
  "till": "2022-09-01T23:59:59",
  "dateFormat": "%Y-%m"
}

Similar queries