Fantom API
Introduction
Fantom is a highly scalable and decentralized Layer 1 blockchain platform designed for dApps and digital assets. Fantom is known for its high speed and low transaction fees, making it ideal for DeFi applications. It provides a highly customizable and EVM-compatible environment for developers.
Supported Networks
The Web3 Data API is available for the following Fantom networks:
- Fantom Mainnet
- Fantom Testnet
Network Details
Network | Chain ID | EVM Chain |
---|---|---|
Fantom Mainnet | 0xfa (250) | EvmChain.FANTOM |
Fantom Testnet | 0xfa2 (4002) | EvmChain.FANTOM_TESTNET |
Supported APIs
The following APIs are supported for Fantom:
Wallet API
The Wallet API enables you to interact with wallet data on the Fantom blockchain.
- Get Wallet History on Fantom
- Get Wallet Token Balances on Fantom
- Get Wallet Token Approvals on Fantom
- Get Wallet NFT Balances on Fantom
- Get Wallet DeFi Positions on Fantom
- Get Wallet Net-worth on Fantom
- Get Wallet PnL on Fantom
- Get Wallet Details on Fantom
- Get Wallet Domains on Fantom
NFT API
The NFT API allows you to interact with NFT-related data on Fantom. You can:
- Get NFTs on Fantom
- Get NFT Metadata on Fantom
- Get NFT Transfers on Fantom
- Get NFT Collections on Fantom
- Get NFT Owners on Fantom
- Get NFT Prices on Fantom
- Get NFT Trades on Fantom
- Get NFT Stats on Fantom
- Get NFT Traits and Rarity on Fantom
Token API
The Token API provides methods for interacting with ERC-20 tokens on Fantom. Choose from the following actions:
- Get Token Metadata on Fantom
- Get Token Price on Fantom
- Get Token Balances on Fantom
- Get Token Approvals on Fantom
- Get Token Transfers on Fantom
- Get Token Top Traders on Fantom
- Get Token Pairs & Liquidity on Fantom
- Get Token Stats on Fantom
- Get Token Owners on Fantom
DeFi API
The DeFi API enables interaction with decentralized finance positions and data on Fantom:
Entity API
The Entity API allows you to interact with various entities on Fantom, such as exchanges or other organizations:
Price API
Retrieve price data for tokens and NFTs on Fantom using the Price API:
Blockchain API
The Blockchain API gives access to blockchain-level data such as blocks, transactions, and logs:
- Get Blocks on Fantom
- Get Transactions on Fantom
- Get Logs on Fantom
- Get Stats on Fantom
- Get Latest Block Number on Fantom
Unlock the Power of Fantom with Moralis
Curious about how you can leverage the full potential of Fantom? Check out our Fantom page to see how Moralis can help you build faster and smarter. With features like easy access to on-chain data, token balances, and DeFi management, Moralis simplifies Fantom development for all kinds of dApps.