Get Started with Bobabeam¶
Introduction¶
Boba is a compute-focused Layer 2 (L2) built on the Optimistic Rollup developed by Optimism. Boba augments the compute capabilities of EVM-compatible blockchains with a variety of features including Turing hybrid compute. After launching on Ethereum, Boba has brought its Layer 2 scaling solution to Moonbeam. Bobabase is the name of Boba's TestNet deployment on Moonbeam, while Bobabeam refers to Boba's MainNet deployment on Moonbeam.
The information presented herein is for informational purposes only and has been provided by third parties. Moonbeam does not endorse any project listed and described on the Moonbeam docs website (https://docs.moonbeam.network/).
Network Endpoints¶
Name | RPC URL |
---|---|
RPC |
|
Replica RPC |
|
Name | RPC URL |
---|---|
WSS |
|
Replica WSS |
|
Quick Start¶
It's easy to get started building on Bobabeam. If you're using the Web3.js library, you can create a local Web3 instance and set the provider to connect to Bobabeam (both HTTP and WS are supported):
const Web3 = require('web3'); // Load Web3 library
// Create local Web3 instance - set Bobabeam as provider
const web3 = new Web3('https://bobabeam.boba.network');
For the Ethers.js library, define the provider by using ethers.providers.StaticJsonRpcProvider(providerURL, {object})
and setting the provider URL to Bobabeam:
const ethers = require('ethers'); // Load Ethers library
const providerURL = 'https://bobabeam.boba.network';
// Define provider
const provider = new ethers.providers.StaticJsonRpcProvider(providerURL, {
chainId: 1294,
name: 'bobabeam'
});
For more detailed tutorials on working with Ethers.js and Web3.js, head to Ethereum API Libraries. Any Ethereum wallet should be able to generate a valid address for Bobabeam (for example, MetaMask).
Chain ID¶
Bobabeam chain ID is: 1294
, which is 0x50E
in hex.
Block Explorer¶
The Bobabeam block explorer is an instance of Blockscout.
Connect MetaMask¶
If you already have MetaMask installed, you can easily connect MetaMask to Bobabeam:
Note
MetaMask will popup asking for permission to add Bobabeam as a custom network. Once you approve permissions, MetaMask will switch your current network to Bobabeam.
If you do not have MetaMask installed, or would like to follow a tutorial to get started, please check out the Interacting with Moonbeam using MetaMask guide.
Bridge from Moonbeam to Bobabeam¶
Bobabeam Gateway enables you to bridge various assets to and from Bobabeam. To bridge assets from Moonbeam to Bobabeam, take the following steps:
- Head to Bobabeam Gateway and press Connect
- Click on Moonbase Wallet in the upper left corner
- Next to the asset you'd like to bridge, press Bridge to L2
- Enter the amount you'd like to bridge and press Bridge
- Confirm the transaction in MetaMask
- Your funds will be available shortly on Bobabeam. To confirm arrival, click on Boba Wallet in the upper left corner or look up your account on Bobabeam explorer
Before you can make a transaction on Bobabeam, you'll need to have at least 1 BOBA. You can perform a gasless swap to exchange GLMR for BOBA by pressing Emergency Swap and signing the resulting signature request in MetaMask. To learn more about paying for gas on Bobabeam, see Changing your Gas Fee Token.
Bridge from Bobabeam to Moonbeam¶
Bobabeam Gateway enables you to bridge various assets to and from Bobabeam. Note, when bridging from Bobabeam to Moonbeam, there is a 7-day delay before your funds are available. This delay is an inherent safety feature of the optimistic rollup architecture and applies only when bridging from Bobabeam back to Moonbeam. There is a bridge fee of 10 BOBA when bridging from Bobabeam to Moonbeam, so ensure you have a sufficient balance of BOBA before initiating a bridge transfer. To bridge assets from Bobabeam to Moonbeam, take the following steps:
- Head to Bobabeam Gateway and press Connect
- Click on Boba Wallet in the upper left corner
- Next to the asset you'd like to bridge, press Bridge to L1
- Enter the amount you'd like to bridge and press Bridge
- Confirm the transaction in MetaMask
- Your funds will be available on Moonbeam in 7 days. Note, there is no follow up claim transaction necessary, Boba automatically handles this step on your behalf
Changing your Gas Fee Token¶
Either GLMR or BOBA can be used to pay for gas for transactions on Bobabeam. Note that in either case, the token you use for gas must be located on the Bobabeam network. See Bridge from Moonbeam to Bobabeam to learn how to bridge GLMR or BOBA to Bobabeam. By default, the selected gas fee token is set to BOBA. To change it to GLMR, take the following steps:
- Press the Fee dropdown at the top right
- Click on GLMR or BOBA to select the new gas fee token
- Confirm the transaction in MetaMask