Fortmatic
WebsiteDashboardSupport
v2.x
v2.x
  • 🚀Get Started
  • 📦Install with NPM
  • 🧩Examples
  • 💬FAQ
  • 📈Migrating from v1.x
  • Web3 Integration
    • Web3 Provider
    • Network Configuration
    • Binance Smart Chain
    • Get User Account
    • Send Ether Transaction
    • Smart Contract Functions
    • User Signing
    • SDK Error Handling
    • Batch Request
  • Smart Contract
    • ERC20 Transfer
    • ERC20 Approve
    • ERC20 TransferFrom
    • Generic Contract Call
  • Fortmatic Native
    • Log In
    • Log Out
    • Is User Logged In
    • Compose Transaction
    • Deposit Address
    • Configuration
  • More
    • Fiat On-ramp
    • Domain Verification
Powered by GitBook
On this page
  • Configure Binance Smart Chain
  • Smart Chain
  • Smart Chain - Testnet

Was this helpful?

  1. Web3 Integration

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.

PreviousNetwork ConfigurationNextGet User Account

Last updated 4 years ago

Was this helpful?

Configure Binance Smart Chain

Smart Chain

Mainnet Block Explorer URL:

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:

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());
https://bscscan.com
https://testnet.bscscan.com