Get NFTs owned by address

Returns 10 balance updates on Ethereum, where balance update address is 0xd8da…6045, sorted by amount, highest first: currency name, currency symbol, smart contract, balance update address, URI, sum of balance update amount, block time and count.

By Omkar Acharekar · saved 31 May 2023 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query($network: evm_network, $limit: Int!,
   $address: String) {
  EVM(dataset: combined network: $network){
    BalanceUpdates(
      orderBy: {descendingByField: "amount"}
      limit: {count: $limit}
      where: {
        BalanceUpdate: {
          Address: {is: $address}
        }
        Currency: {Fungible: false}}
    ){
      	Currency {
          Name
          Symbol
          SmartContract
        }
      	BalanceUpdate {
          Address
          URI
        }
      	amount: sum(of: BalanceUpdate_Amount)
      	Block {
          Time(maximum: Block_Time)
        }
      	count
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045"
}

Similar queries