Fantom Address API
Fantom GraphQL queries are served at https://graphql.bitquery.io. Pass network: fantom to the ethereum field.
The address allows us to retrieve information about a specific address.
On Fantom, an address can be an externally owned account (EOA) or a smart contract. The address API returns the current FTM balance, human-readable annotations where available, and—when the address is a contract—details such as contract type, protocol type, token metadata (decimals, symbol, token standard), and on-chain attributes. Use this for wallet pages, portfolio dashboards, token supply lookups, and quick contract verification before diving into transfer or event history.
Here is an example that demonstrates how to retrieve basic information about the USDT smart contract:
query {
ethereum(network: fantom) {
address(address: {is: "0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83"}) {
smartContract {
attributes {
address {
address
annotation
}
name
value
type
}
contractType
protocolType
currency {
decimals
name
symbol
tokenType
}
}
annotation
address
}
}
}
Filtering Addresses
address: Filter by a specific address or a list of addresses.
The following are available fields for the address:
address: Returns the address.annotation: Returns the annotation of the address if available.balance: Returns the current balance of the address.balances: Returns the balance history of the address.smartContract: Returns details if the address is that of a smart contract.
Related
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.