Binance Smart Chain

Via Fortmatic SDK, you can interact with Binance Smart Chain. Binance Smart Chain is EVM compatible so you can directly follow the configuration guide to starting.

Configure Binance Smart Chain

Smart Chain

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 Chain
const fm = new Fortmatic('YOUR_LIVE_API_KEY', BSCOptions);
window.web3 = new Web3(fm.getProvider());

Smart Chain - Testnet

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 - Testnet
const fm = new Fortmatic('YOUR_TEST_API_KEY', BSCOptions);
window.web3 = new Web3(fm.getProvider());