Comment on page
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.
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());
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());