SmartContract Calls API
Frequently Asked Questions (FAQ)​
What is the Smart Contract Calls API?​
The Smart Contract Calls API helps you retrieve comprehensive information about smart contract transactions on Ethereum, including details about the contract function that was called, input and output parameters, gas usage, and more. This data enables you to build applications that interact with smart contracts, perform analytics on contract activity, and monitor contract interactions in real-time.
What data can I get from the Smart Contract Calls API?​
The API provides data for:
- Function Calls: Details about which contract functions were called and their parameters
- Transaction Information: Gas usage, transaction hash, sender/receiver addresses, and transaction status
- Contract Creation: Track new contract deployments with creation details
- Internal Calls: Monitor internal function calls within smart contracts
How do I use Bitquery's Ethereum APIs?​
Bitquery provides GraphQL APIs for Ethereum data. You can test queries using the IDE at ide.bitquery.io or convert queries to subscriptions for real-time data via WebSocket connections. To access API outside the IDE, you need to use your OAuth token, generate one here. For enterprise users, we also offer Kafka streams for high-throughput data processing.
What Kafka streams are available for Ethereum?​
Bitquery provides managed Kafka topics including ethereum.tokens.proto
, ethereum.transactions.proto
, and ethereum.dextrades.proto
with pre-parsed, enriched Protocol-Buffers events. These streams offer sub-second latency and enterprise-grade reliability for high-volume data processing. Read more here.
Smart Contract Calls API Guide​
This API helps retrieve information about smart contract transactions, including details about the contract function that was called, the input and output parameters, and more. With this data, you can build applications that interact with smart contracts, perform analytics on contract activity, and more.
Recent Smart Contract Calls​
This query retrieves the most recent smart contract calls on the Ethereum network, focusing on contract creation calls. It provides comprehensive information about the call details, transaction data, and block information.
Click to expand GraphQL query
{
EVM(dataset: realtime, network: eth) {
Calls(
limit: {count: 10}
orderBy: {descending: Block_Time}
) {
Call {
LogCount
InternalCalls
Create
EnterIndex
ExitIndex
}
Transaction {
Gas
Hash
From
To
Type
Index
}
Block {
Date
}
}
}
}
Recent Smart Contract Creation Calls​
This GraphQL query fetches data from the "eth" network about the 10 most recent calls made in Ethereum that were contract creation calls.
You can run the query here
query MyQuery {
EVM(dataset: realtime, network: eth) {
Calls(
limit: {count: 10}
orderBy: {descending: Block_Time}
where: {Call: {Create: true}}
) {
Call {
LogCount
InternalCalls
Create
EnterIndex
ExitIndex
}
Transaction {
Gas
Hash
From
To
Type
Index
}
Block {
Date
}
}
}
}