NFT Token Information By ID

with owner info

Returns one balance update on Arbitrum, where currency smart contract is 0xa864…372e, balance update ID is 33 and balance update amount is above 0: chain ID, block number, block time, transaction hash, currency symbol, currency name, smart contract and 3 more fields.

By Nadia · saved 19 January 2024 · run 17 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $token: String, $id: String) {
  EVM(dataset: combined, network: $network) {
    BalanceUpdates(
      orderBy: [{descending: Block_Number}, {descending: Transaction_Index}]
      limit: {count: 1}
      where: {BalanceUpdate: {Id: {eq: $id}, Amount: {gt: "0"}}, Currency: {SmartContract: {is: $token}}}
    ) {
      ChainId
      Block {
        Number
        Time
      }
      Transaction {
        Hash
      }
      Currency {
        Symbol
        Name
        SmartContract
      }
      BalanceUpdate {
        Address
        Id
        URI
      }
    }
    Transfers(
      where: {Transfer: {Currency: {SmartContract: {is: $token}}}}
      limit: {count: 1}
    ) {
      Transfer {
        Currency {
          Name
          SmartContract
          Symbol
        }
      }
    }
  }
}

Variables

{
  "network": "arbitrum",
  "token": "0xa864956ff961ce62c266a8563b46577d3573372e",
  "id": "33"
}

Similar queries