Binance Smart Chain

Binance Smart Chain

Binance implementation guide

How to Build a Decentralized App on Binance Smart Chain with Magic

View guide

#Overview

Binance Smart Chain is a Layer 1 blockchain network that's compatible with the Ethereum Virtual Machine (EVM), specifically designed to revolutionize the world of sports. Through the Magic SDK, users can easily create wallets and engage with Binance Smart Chain, enabling teams, fans, and developers to craft Web3 products and experiences that unite fans and brands like never before.

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

#Configure Binance Smart Chain

#Smart Chain

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

Javascript
01const BSCOptions = {
02  rpcUrl: 'https://bsc-dataseed.binance.org/', // Smart Chain RPC URL
03  chainId: 56, // Smart Chain chain id
04};
05
06// Setting network to Smart Chain
07const magic = new Magic('YOUR_PUBLISHABLE_API_KEY', { network: BSCOptions });

#Smart Chain - Testnet

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

Javascript
01const BSCOptions = {
02  rpcUrl: 'https://data-seed-prebsc-1-s1.binance.org:8545/', // Smart Chain - Testnet RPC URL
03  chainId: 97, // Smart Chain - Testnet chain id
04};
05
06// Setting network to Smart Chain - Testnet
07const magic = new Magic('YOUR_PUBLISHABLE_API_KEY', { network: BSCOptions });

#Compatibility

*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