BNB Smart Contract Calls API
smartContractCalls
type allows you to retrieve smart contract calls made to any smart contract on Ethereum Blockchain.
Here's an example query that retrieves 10 latest smart contract calls amde to USDT smart contract on Ethereum blockchain.
{
ethereum (network: bsc){
smartContractCalls(
smartContractAddress: {is: "0x55d398326f99059ff775485246999027b3197955"}
options: {limit: 10, desc: "block.timestamp.iso8601"}
date: {after: "2023-07-17T00:00:00Z"}
) {
block {
timestamp {
iso8601
}
}
amount
arguments {
argument
argumentType
index
value
}
callDepth
gasValue
smartContract {
address {
address
annotation
}
}
smartContractMethod {
name
signature
signatureHash
}
}
}
}
Filtering Smart Contract Calls
amount
: returns amount transferred in the smart contract callany
:arguments
: returns details of the arguments passed while executing smart contract callblock
: returns details of block in which smart contract call was executedcallDepth
: returns details internal calls that were made in that particular transactioncaller
: returns details of address that executed smart contractcount
: returns aggregate count of smart contract callscountBigInt
: returns aggregate count of smart contract calls inBigInt
formatdate
: returns date on smart contract call was executedexpression
: performs arithematic operation and returns value of the operationgasValue
: returns gas consumed by a particular smart contract callmaximum
: returns maximum of selected measurable fields) ofsmartContractCalls
minimum
: returns minimum of selected measurable fields) ofsmartContractCalls
smartContract
: returns details of smart contractsmartContractMethod
: returns details of method to which the call was madesuccess
: returns if calls is successful or nottransaction
: returns details of the transaction in which smart contract call was executed