Skip to main content

EVM Smart Contract Calls API

Calls API provides details about smart contract calls, arguments, callers, etc.

This api gives detailed information about the smart contract calls, including raw data, and supports Opcodes.

The API allows different filters to query the Smart contract calls details from different dimensions. You can find more examples here

Here's a sample query to get started.

{
EVM(dataset: combined, network: eth) {
Calls(
limit: { count: 1 }
where: {
Call: {
Signature: { Name: { is: "swap" } }
From: { is: "0x000000000000084e91743124a982076c59f10084" }
}
}
) {
Call {
From
To
CallPath
CallerIndex
Create
Delegated
Depth
EnterIndex
Error
ExitIndex
Gas
GasUsed
Index
Input
InternalCalls
LogCount
Opcode {
Code
Name
}
Output
Reverted
SelfDestruct
Signature {
Abi
Name
Parsed
Signature
SignatureHash
SignatureType
}
Success
}
Arguments {
Type {
Name
Type
}
Value {
String
}
}
}
}
}

Calls contain the arguments and return values as arrays, refer to arguments for data structure.

New tokens created on EVM chain

To get new token created on EVM chains such as Etheruem or BSC, please use this query. Change the network according to your requirements.

{
EVM(network: bsc) {
Calls(
orderBy: {descending: Block_Time}
limit: {count: 10}
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
}
}
}
}