Get NFT owner by token ID

Returns the latest balance update on Ethereum, where currency smart contract is 0xd4e4…7782, balance update amount is above 0 and balance update ID is 329: balance update address, balance update amount, balance update ID and block number.

By Omkar Acharekar · saved 30 May 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: archive, network: eth) {
    BalanceUpdates(
      where: {Currency: {SmartContract: {is: "0xd4e4078ca3495de5b1d4db434bebc5a986197782"}}, BalanceUpdate: {Amount: {gt: "0"}, Id: {eq: "329"}}}
      orderBy: {descending: Block_Number}
      limit: {count: 1}
    ) {
      BalanceUpdate {
        Address
        Amount
        Id
      }
      Block {
        Number
      }
    }
  }
}

Variables

{
  "network": "eth",
  "token": "0x0fcbd68251819928c8f6d182fc04be733fa94170",
  "id": "6857"
}

Similar queries