Get NFT Ownership History
Historical data This query uses the realtime dataset (the default), which holds only a recent window - hours to days depending on the cube. For older data add a dataset to the top-level element: EVM(network: eth, dataset: combined) archive full history combined archive + realtime in one result Ar
What it returns
- block time
- block number
- block hash
- currency symbol
- currency name
- smart contract
- has URI
- post balance
- token balance address
- owns
- token ownership ID
- transaction hash
- from
- to
Filters
- currency smart contract is 0xbe93…a826
- token balance post balance is 1
- token ownership ID is 24010
The query
# Historical data
# This query uses the realtime dataset (the default), which holds only a
# recent window - hours to days depending on the cube.
#
# For older data add a dataset to the top-level element:
#
# EVM(network: eth, dataset: combined)
#
# archive full history
# combined archive + realtime in one result
#
# Archive and combined need the historical data add-on:
# https://bitquery.io/pricing
#
# Datasets: https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#
{
EVM(network: eth) {
TransactionBalances(
orderBy: { descending: Block_Time }
where: {
TokenBalance: {
PostBalance: { eq: "1" }
Currency: {
SmartContract: { is: "0xbe9371326F91345777b04394448c23E2BFEaa826" }
Fungible: false
}
TokenOwnership: { Id: { eq: "24010" } }
}
Block: { Time: { since_relative: { hours_ago: 24 } } }
}
) {
Block {
Time
Number
Hash
}
TokenBalance {
Currency {
Symbol
Name
SmartContract
HasURI
}
PostBalance
Address
TokenOwnership {
Owns
Id
}
}
Transaction {
Hash
From
To
}
}
}
}
Similar queries
- latest token supply on USDT and USDC on ethereum chain · Ethereum · TransactionBalances
- Get Token Total Supply and Market Cap · Ethereum · TransactionBalances
- latest token supply of all active tokens on ETH chain · Ethereum · TransactionBalances
- Transaction balances · Ethereum · TransactionBalances
- All MEV Builders Tx Balance Tracker · Ethereum · TransactionBalances