Skip to main content

BSC Transfers API

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

Subscribe to Recent Whale Transactions of a particular currency

The subscription query below fetches the whale transactions on the BSC network. We have used WBNB address 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c. You can find the query here

subscription{
EVM(network: bsc) {
Transfers(
where: {Transfer: {Currency: {SmartContract: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}}, 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 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c. For this subscription query we use where keyword and in that we specify {Transfer: {Sender: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}}} to get the desired data. You can find the query here

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

Subscribe to the latest NFT token transfers on BSC

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 BSC network. You can run the query here

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