Fantom API
Fantom GraphQL queries are served at https://graphql.bitquery.io. Pass network: fantom to the ethereum field.
Bitquery API offers access to indexed data from the Fantom blockchain through the ethereum schema. This schema is specifically designed to enable blockchain data retrieval via GraphQL API for developers.
The ethereum schema contains various types of queries, including block, transaction, event, transactions, transfers, and more. These queries can be used to retrieve blockchain data, such as block information, transaction details, events, token transfers, and other relevant information.
To retrieve data from the Fantom blockchain, you need to provide the network argument with the value fantom as shown below:
query {
ethereum(network: fantom) {
__typename
}
}
Sign up on our GraphQL IDE and get your Access Token, read our guide on getting started.
Let's dive in and explore the Fantom data available through Bitquery API.
Fantom (Fantom Opera) is an EVM-compatible smart contract chain: FTM pays for gas, and its tokens and NFTs follow the ERC-20 and ERC-721 standards. Fantom data is served by the V1 API only.
What You Can Query
- Blocks — number, timestamp, gas used and limits, and transaction counts
- Transactions — hashes, from and to, nonces, gas price or effective gas price, and success or revert status
- Transfers — FTM, ERC-20, and major NFT transfers with amounts, contract addresses, and USD pricing where available
- Smart contracts — creations, method calls, and internal transactions as indexed from execution traces
- DEX trades — swaps, pools, and volume from integrated decentralized exchanges
- Coinpath — graph-style tracing of assets across many hops and intermediate contracts
- Active addresses — engagement metrics derived from indexed sends, receives, and contract interactions
Common Use Cases
- DeFi and market data — rank tokens, pools, and DEX volume for research terminals or trading products
- Institutional reporting — tie transfers, balances, and active addresses to treasury or compliance views
- Investigations — use coinpath to map how FTM or tokens moved through mixers, bridges, or nested contracts
- Enterprise compliance and AML — regulated entities can automate transaction monitoring, sanctions screening, and audit trails by combining coinpath with address and contract metadata across ERC-20 flows
- Real-world asset (RWA) tokenization — track issuance, transfers, and holder distribution of tokenized securities, bonds, or real-estate assets deployed as smart contracts on Fantom
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.