Quick Guide
If you’re a developer seeking to build on opBNB, you’ve come to the right place. This document provides all the information you need to develop opBNB applications.
Getting Started¶
The opBNB network is the Layer 2 scaling solution for the BNB Smart Chain(BSC) powered by OP Stack.
If you are brand new to opBNB, you can try start with the guide on creating a fullstack dapp on opBNB. It will familiarize you with the basic steps of deploying a smart contract on opBNB and interacting with it from a dapp.
opBNB is EVM equivalent so you can feel confident that your existing Ethereum smart contract skills will transfer seamlessly to opBNB. There are a few small differences between Ethereum and opBNB, so make sure to be aware of them. You can refer to the optimism documentation for more information.
Connecting¶
Here are some resources to help you get connected to the opBNB network:
Get Tokens¶
opBNB is a Layer 2 on BSC, so tokens can be moved between the two chains using bridges. For the testnet, you can use the faucet to obtain some test tokens on BSC and then bridge them to opBNB using the official bridge. For the mainnet, you can bridge tokens from BSC to opBNB using various bridges, or you can withdraw tokens directly from a centralized exchange (CEX) which supports opBNB network(e.g. Binance).
- opBNB Testnet Faucet
- bridges
- If you need to bridge tokens that are not supported by the bridges and CEXs yet, you can deploy your own L2 mirror token contract on opBNB and bridge them according to this guide.
Cross-Chain Interoperability¶
To build cross-chain applications between BSC and opBNB, you should understand how cross-chain message passing works. You can refer to the sending data between L1 and L2 guide for more information.
Developer Tools¶
- Explorer
- SDK. If you are only using the SDK for Ethereum-compatible functions, then all Ethereum SDKs should work with opBNB. If you want to use opBNB-specific functions, it’s recommended to use op-viem with OP Stack Extensions.
- Tools
- BNB Chain Multi-Sig Wallet
- Wallets
- Oracle
- Account Abstraction
- Storage
- Data Analytics
For more tools and details, you can refer to this doc.