Mainnet Block Explorer URL: https://bscscan.com
import Fortmatic from 'fortmatic';import Web3 from 'web3';const BSCOptions = {/* Smart Chain mainnet RPC URL */rpcUrl: 'https://bsc-dataseed.binance.org/',chainId: 56 // Smart Chain mainnet chain id}// Setting network to Smart Chainconst fm = new Fortmatic('YOUR_LIVE_API_KEY', BSCOptions);window.web3 = new Web3(fm.getProvider());
Testnet Block Explorer URL: https://testnet.bscscan.com
import Fortmatic from 'fortmatic';import Web3 from 'web3';const BSCOptions = {/* Smart Chain - Testnet RPC URL */rpcUrl: 'https://data-seed-prebsc-1-s1.binance.org:8545/',chainId: 97 // Smart Chain - Testnet chain id}// Setting network to Smart Chain - Testnetconst fm = new Fortmatic('YOUR_TEST_API_KEY', BSCOptions);window.web3 = new Web3(fm.getProvider());