Solana NFT API
In this section we'll have a look at some examples using the Solana NFT API.
This Solana API is part of our Early Access Program (EAP), which is intended for evaluation purposes.
This program allows you to test the data and its integration into your applications before full-scale implementation. Read more here
Track Latest NFT Trades​
The subscription query provided below fetches the most recent NFT trades on the Solana blockchain. You can find the query here
subscription {
Solana {
DEXTradeByTokens(where: {Trade: {Currency: {Fungible: false}}}) {
Block {
Time
}
Trade {
Amount
Price
Currency {
Symbol
Name
}
Side {
Amount
Type
}
Dex {
ProtocolName
ProtocolFamily
ProgramAddress
}
}
Transaction {
Index
Result {
Success
ErrorMessage
}
}
}
}
}
Track all NFT balance updates across the Solana Ecosystem​
The subscription query provided below fetches the real time nft balance updates of addressses across Solana Ecosystem. This query also gives us NFT balance of the wallets using PreBalance
and PostBalance
.
You can find the query here
subscription {
Solana {
BalanceUpdates(
where: {BalanceUpdate: {Currency: {Fungible: false}}}
) {
BalanceUpdate {
Currency {
Name
MintAddress
TokenCreator {
Address
Share
}
}
Account {
Address
}
PreBalance
PostBalance
}
}
}
}