Skip to main content

OpBNB Transfers API

In this section we'll have a look at some examples using the OpBNB Transfers API.

This OpBNB 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

Subscribe to Recent Whale Transactions of a particular currency

The subscription query below fetches the whale transactions on the OpBNB network. We have used USDT address 0x9e5AAC1Ba1a2e6aEd6b32689DFcF62A509Ca96f3. You can find the query here

subscription{
EVM(network: opbnb) {
Transfers(
where: {Transfer: {Currency: {SmartContract: {is: "0x9e5AAC1Ba1a2e6aEd6b32689DFcF62A509Ca96f3"}}, Amount: {ge: "10000"}}}
) {
Transaction {
From
Hash
}
Transfer {
Amount
Sender
Receiver
Currency {
SmartContract
Symbol
Name
Fungible
Native
}
Id
}
}
}
}

Sender is a particular address

This websocket retrieves transfers where the sender is a particular address 0xc4f981189558682F15F60513158B699354B30204. For this subscription query we use where keyword and in that we specify {Transfer: {Sender: {is: "0xc4f981189558682F15F60513158B699354B30204"}}} to get the desired data. You can find the query here

subscription {
EVM(network: opbnb) {
Transfers(
where: {Transfer: {Sender: {is: "0xc4f981189558682F15F60513158B699354B30204"}}}
) {
Transfer {
Amount
AmountInUSD
Currency {
Name
SmartContract
Native
Symbol
Fungible
}
Receiver
Sender
}
Transaction {
Hash
}
}
}
}



Subscribe to the latest NFT token transfers on OpBNB

Let's see an example of NFT token transfers using GraphQL Subscription (Webhook). In the following NFT Token Transfers API, we will be subscribing to all NFT token transfers on OpBNB network. You can run the query here

subscription {
EVM(network: opbnb) {
Transfers(where: {Transfer: {Currency: {Fungible: false}}}) {
Transfer {
Amount
AmountInUSD
Currency {
Name
SmartContract
Symbol
Fungible
HasURI
Decimals
}
URI
Sender
Receiver
}
Transaction {
Hash
}
}
}
}