Fantom is a decentralized, permissionless, open-source smart contract platform for decentralized applications (dApps) and digital assets — one of many blockchain networks built to provide an alternative to Ethereum. Fantom’s mainnet deployment—Fantom Opera—is built on Fantom’s consensus mechanism, Lachesis . Fantom is a leaderless, asynchronous, and byzantine fault-tolerant Layer 1 blockchain protocol. Fantom’s fast, scalable platform for decentralized applications (dApps) draws its speed from a unique consensus mechanism called Lachesis. The Fantom blockchain mainnet went live in December 2019 and its network architecture intends to provide a viable solution to the Blockchain Trilemma by providing a steady balance of scalability, security, and decentralization. Fantom operates atop a bespoke “leaderless” PoS consensus mechanism dubbed Lachesis that secures the Fantom network and ensures both transactional speed and security. Lachesis also boasts near-instant finality. This means that transactions are confirmed and finalized within only a few seconds, without the need to wait for laborious block confirmation as experienced in Proof-of-Work (PoW) networks. By avoiding the relatively lengthy block confirmation process, this aBFT system is much faster and more scalable than many of its Byzantine Fault Tolerant (BFT) counterparts.
Fantom blocks
The total number of blocks produced on the chain till date is 33458702. The number of blocks produced per month varied from 3114 in February 2019, to 58052 in June 2020 and 3 million in December 2021.To get the latest blocks of Fantom, you can use this query
Fantom Transactions
Fantom claims to provide instant transactions without any processing delays at extremely low costs. Ever since it’s launch in , Fantom has produced approximately 221 million transactions, out of which September 2021 had the highest number of transactions processed with a count more than 34 million.
You can use this query to get the latest Fantom transactions.
Fantom Gas Analytics
For the month March 2022 the gas price is $ 1084.372/txn and the average gas value is 0.151/txn. To check Fantom’s average gas usage, you can use this query.
Fantom transfers
A transfer takes place when any token or a native currency gets transferred. A transaction can consist of 0 or more than 1 transfer.
Fantom has processed over 442 million transfers ever since its launch in December 2019 with over 58 million transfers taking place in February 2022.
Fantom has about 5 million unique senders and 11 million unique receivers.
Tokens on Fantom
FTM is the primary token on the Fantom network. FTM is used for securing the network through staking, governance, payments, and for fees. As of March 2022, there were 56091 tokens on the Fantom network. Using this query, you can get the list of all the latest tokens with data points like total senders, receivers, average transfer volume, etc.
Wrapped Fantom is the highest traded token on the network with a count of over 102 million, followed by the Fantom token
DEXs on Fantom
A total of about 68 million trades were conducted on the Fantom network with the trade amount being over $68 billion. To get the month wise data for the DEX trade count and volume you can use this query.
You can use this query to get the latest trades on Fantom.
DEX Token Trades
You can obtain a list of the latest token trades taking place on the network along with the block, the sell amount, the currency, the protocol followed, the exchange used, etc.
You use this query to get the same.
{
ethereum(network: fantom) {
dexTrades(
options: {desc: ["block.height", "tradeIndex"], limit: 10, offset: 0}
date: {since: "2022-03-15", till: "2022-03-22T23:59:59"}
) {
block {
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
height
}
tradeIndex
protocol
exchange {
fullName
}
smartContract {
address {
address
annotation
}
}
buyAmount
buyCurrency {
address
symbol
}
sellAmount
sellCurrency {
address
symbol
}
transaction {
hash
}
}
}
}
DEX Exchanges on Fantom
Fantom network is supported by a lot of DEX Exchanges like SpookySwap, SpiritSwap, , ProtoFi, DarkKnight, Excalibur and Wigoswap etc. Using BItquery Explorer, you can get a detailed analysis of the number of trades taking place on each of these exchanges and their share in the total trade count and amount in USD.
You can obtain the above data using this query as well.
{
ethereum(network: fantom) {
dexTrades(
options: {desc: ["block.height", "tradeIndex"], limit: 10, offset: 0}
date: {since: "2022-03-15", till: "2022-03-22T23:59:59"}
) {
block {
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
height
}
tradeIndex
protocol
exchange {
fullName
}
smartContract {
address {
address
annotation
}
}
buyAmount
buyCurrency {
address
symbol
}
sellAmount
sellCurrency {
address
symbol
}
transaction {
hash
}
}
}
}
Using Bitquery’s various different APIs, you can even get the pictorial representation of the results in the form of a bar graph or pie chart etc like shown above.
Smart Contracts on Fantom
Fantom executed more than 38216 smart contract calls in the month of February 2022 with over 30k unique callers and 300k unique callers in the end of the year 2021.
Miners on Fantom
Use this query to get the latest miners on Fantom. All the blocks on the network have been mined by a single address till March 2022.
Miner’s block rewards
Fantom has a reward-based mining system, wherein the miners are rewarded based on the blocks mined by them.
As we can see, on the Fantom network, a single miner “0x0000000000000000000000000000000000000000” mines all the blocks hence gets all the reward. You can get this data using our GraphQL IDE as well with this query.
Conclusion
Lachesis enables Fantom to deliver fast transaction speeds, low transaction costs, and deterministic finality. This is achieved while remaining permissionless, decentralized, and open-source. If you are looking for Fantom APIs, please sign up on our Blockchain IDE and get your API keys. If you are building any application related to Fantom, we would be delighted to talk to you; you can mail us at hello@bitquery.io or ping us on our Telegram channel.
Also Read
- Bitquery’s Transfer API
- Avalanche DEXs APIs
- Bitquery’s Balance API
- SushiSwap Tutorial
- Dogecoin APIs – Transactions, wallets and Money Flow
About Bitquery
Bitquery is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. We are crossing the ‘chain-chasm’ by delivering set of products that can work across blockchains. Our products include:
Coinpath APIs provide blockchain money flow analysis for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. You can refer to this article to get started with Coinpath
Digital Assets API provides index information related to all major cryptocurrencies, coins, and tokens.
DEX API provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, SushiSawap, Kyber Network, Airswap, Matching Network, etc.
If you have any questions about our products, ask them on our Telegram channel or email us at hello@bitquery.io . Also, subscribe to our newsletter and stay updated about the latest in the cryptocurrency world.