NFT Example 1

Returns 1000 transfers on Ethereum, where tx hash is 0x3e23…052d and height is above 0, sorted by block height: amount, currency name, currency address, currency symbol, decimals, token ID, token type and 14 more fields.

By Bogdan Kiselitsa · saved 23 January 2023 · run 6 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!, $limit: Int!, $offset: Int!, $txHashes: [String!], $from: ISO8601DateTime, $till: ISO8601DateTime, $fromHeight: Int = 0) {
  ethereum(network: $network) {
    transfers(
      options: {limit: $limit, offset: $offset, asc: "block.height"}
      date: {since: $from, till: $till}
      height: {gt: $fromHeight}
      any: [{receiver: {is: $address}}, {sender: {is: $address}}]
      txHash: {in: $txHashes}
    ) {
      amount
      currency {
        name
        address
        symbol
        decimals
        tokenId
        tokenType
      }
      receiver {
        address
        smartContract {
          currency {
            name
            symbol
            tokenType
            decimals
          }
          contractType
          protocolType
        }
        annotation
      }
      transaction {
        hash
        txFrom {
          address
        }
        gas
        gasPrice
        gasValue
      }
      external
      sender {
        address
        annotation
        smartContract {
          contractType
          protocolType
          currency {
            decimals
            name
            symbol
            tokenType
          }
        }
      }
      entityId
      block {
        height
        timestamp {
          iso8601
        }
      }
    }
  }
}

Variables

{
  "address": "0x00bed6Ed4777465383E012626FCB31D41Ff71040",
  "network": "ethereum",
  "offset": 0,
  "limit": 1000,
  "txHashes": ["0x3e2340361ee6b437441bf2aa256845ea01bf3696d7f4e5af401f60ea5898052d"]
}

Similar queries