fetch all txns for nft smart contracts

Returns the latest 10000 transfers on Ethereum and Polygon, where currency is 0x1D03…2a11 or 0x8693…F95d, date since 2023-01-03 and date till 2023-01-04: timestamp time, block height, sender address, receiver address, transaction hash, amount, currency symbol and 5 more fields.

By Arun · saved 4 January 2023 · run 11 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $addresses: [String!], $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transfers(
      options: {desc: "block.timestamp.time", limit: 10000, offset: 0}
      date: {since: $from, till: $till}
      amount: {gt: 0}
      currency: {in: $addresses}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      sender {
        address
      }
      receiver {
        address
      }
      transaction {
        hash
      }
      amount
      currency {
        symbol
        tokenId
        name
        tokenType
        address
      }
      external
    }
  }
}

Variables

{
  "network": "matic",
  "addresses": [
    "0x1D0360BaC7299C86Ec8E99d0c1C9A95FEfaF2a11",
    "0x86935F11C86623deC8a25696E1C19a8659CbF95d"
  ],
  "from": "2023-01-03T00:00:00",
  "till": "2023-01-04T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries