Skip to main content

Optimism NFT API

In this section we'll have a look at some examples using the Optimism NFT data API.

Optimism APIs is part of our Early Access Program (EAP), which is intended for evaluation purposes.

EAP allows you to test the data and its integration into your applications before full-scale implementation. Read more here

Track transfers of an NFT in Realtime on Optimism

This query subscribes you to the real time transfers of a specific non-fungible token (NFT) on the Optimism blockchain.

You can find the query here

subscription {
EVM(network: optimism) {
Transfers(
where: {
Transfer: {
Currency: {
Fungible: false
SmartContract: { is: "0x57aDd45EA2818fb327C740d123B366955E27d321" }
}
}
}
) {
Block {
Hash
Number
}
Transfer {
Amount
Currency {
Name
Symbol
Native
}
Sender
Receiver
}
}
}
}