BSC Smart Contract Calls API
In this section we will see how to get BSC Smart contract calls information using our API.
Track Latest Calls on BNB
The below query retrieves the latest successful smart contract calls on the BNB Smart Chain (BSC). It fetches details about contract interactions, transaction metadata, and associated block information.
You can run it here
{
EVM(network: bsc) {
Calls(
where: {Arguments: {length: {ne: 0}}, TransactionStatus: {Success: true}}
limit: {count: 10}
orderBy: {descending: Block_Time}
) {
Arguments {
Name
Value {
... on EVM_ABI_Boolean_Value_Arg {
bool
}
... on EVM_ABI_Bytes_Value_Arg {
hex
}
... on EVM_ABI_BigInt_Value_Arg {
bigInteger
}
... on EVM_ABI_Integer_Value_Arg {
integer
}
... on EVM_ABI_String_Value_Arg {
string
}
... on EVM_ABI_Address_Value_Arg {
address
}
}
}
Transaction {
Hash
To
Type
From
}
Receipt {
ContractAddress
}
Block {
Time
}
}
}
}
Track Latest Created Tokens on BSC
This subscription websocket lets you track the newly created tokens on BSC network. You will find the newly created token contract address in the response under Receipt: ContractAddress field.
You can find the query here
subscription {
EVM(network: bsc) {
Calls(
where: {Call: {Create: true}, Arguments: {length: {ne: 0}}, Receipt: {ContractAddress: {not: "0x0000000000000000000000000000000000000000"}}, TransactionStatus: {Success: true}}
) {
Arguments {
Name
Value {
... on EVM_ABI_Boolean_Value_Arg {
bool
}
... on EVM_ABI_Bytes_Value_Arg {
hex
}
... on EVM_ABI_BigInt_Value_Arg {
bigInteger
}
... on EVM_ABI_Integer_Value_Arg {
integer
}
... on EVM_ABI_String_Value_Arg {
string
}
... on EVM_ABI_Address_Value_Arg {
address
}
}
}
Transaction {
Hash
}
Receipt {
ContractAddress
}
Block {
Time
}
}
}
}
Video Tutorial on BSC API | How to Track Newly Created Tokens & Pools in Realtime on BSC
Build with Bitquery
Ready to run this in production?
Get an API key and run these queries in minutes, or talk to us about plans and enterprise delivery.