Fantom

Fantom

#Overview

Fantom is a smart-contract platform that aims to solve the scalability challenges of other blockchains with its Lachesis consensus mechanism. Fantom’s unique architecture allows developers to create highly scalable, fast, and inexpensive Web3 applications.

As Fantom is EVM compatible, you can follow the Ethereum documentation to send your first transaction and utilize all other wallet features.

#Configure Fantom

#Mainnet

Mainnet Block Explorer URL: https://ftmscan.com/

Javascript
01const customNodeOptions = {
02  rpcUrl: 'https://rpc.ftm.tools/',
03  chainId: 250,
04}
05
06// Setting network to Fantom
07const magic = new Magic('YOUR_PUBLISHABLE_API_KEY', { network: customNodeOptions });

#Testnet

Testnet Block Explorer URL: https://testnet.ftmscan.com/

Javascript
01const customNodeOptions = {
02  rpcUrl: 'https://rpc.testnet.fantom.network',
03  chainId: 4002,
04}
05
06// Setting network to Fantom - Testnet
07const magic = new Magic('YOUR_PUBLISHABLE_API_KEY', { network: customNodeOptions });

#Compatibility

  • All Auth, User and most Wallet module methods* for Dedicated Wallets
  • All EVM Provider functionality to respond to supported RPC methods
  • Widget UI for token balances and token transfers*

*Some features are not yet compatible such as NFT Viewer and Fiat On-ramps.

Need a feature or see a problem? File an issue on our github repo.

#Resources & Tools