Fantom Arguments API
Endpoint
Fantom GraphQL queries are served at https://graphql.bitquery.io. Pass network: fantom to the ethereum field.
The arguments field allows us to fetch information about arguments of smart contract calls and events.
Here is an example that demonstrates how to use arguments query:
{
ethereum(network: fantom) {
arguments(
smartContractAddress: {is: "0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83"}
date: {after: "2026-11-20T00:00:00Z"}
options: {limit: 10, desc: "block.timestamp.iso8601"}
) {
block {
timestamp {
iso8601
}
}
argument {
name
type
}
value {
value
}
transaction {
hash
}
}
}
}
Filtering Arguments
any:argument: Filter by specific argument for smart contract method or eventargumentType: Filter by argument type for smart contract method or eventcallDepth: Filter by call depthcaller: Filter by address of the callerdate: Filter by selecting time in range, list or just timeexternal:height: Filter by height of the blockoptions: Filter returned data by ordering, limiting, and constraining it.reference:signatureType:smartContractAddress: Filter by smart contract addresssmartContractEvent: Filter by smart contract eventsmartContractMethod: Filter by smart contract methodtime: Filter by selecting time in range, list or just timetxFrom: Filter by address which created transactiontxHash: Filter by transaction hashvalue: Filter by argument value
The following are available fields for the arguments:
any:argument: returns method or event argumentblock: returns information of blockcallDepth: returns depth of callcaller: returns information about callercount: returns aggregate count of argumentcountBigInt: returns aggregate count of argument inBigIntformatdate: returns date on which smart contract call or event happenedexpression: performs arithmetic operation on fields in the query and returns value of the operationexternal:index:maximum:minimum:number:reference:smartContract: returns information about smart contract being calledsmartContractSignature: returns signature of contract method or eventsuccess:transaction: returns transaction informationvalue: returns value of method or event argument
Related
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.