Get Started with Bobabase¶
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 Moonbase Alpha. 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 Bobabase. If you're using the Web3.js library, you can create a local Web3 instance and set the provider to connect to Bobabase (both HTTP and WS are supported):
const Web3 = require('web3'); // Load Web3 library
// Create local Web3 instance - set Bobabase as provider
const web3 = new Web3('https://bobabase.boba.network');
For the Ethers.js library, define the provider by using ethers.JsonRpcProvider(providerURL, {object})
and setting the provider URL to Bobabase:
const ethers = require('ethers'); // Load Ethers library
const providerURL = 'https://bobabase.boba.network';
// Define provider
const provider = new ethers.JsonRpcProvider(providerURL, {
chainId: 1297,
name: 'bobabase'
});
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 Bobabase (for example, MetaMask).
Chain ID¶
Bobabase chain ID is: 1297
, which is 0x511
in hex.
Block Explorer¶
The Bobabase block explorer is an instance of Blockscout.
Connect MetaMask¶
If you already have MetaMask installed, you can easily connect MetaMask to Bobabase:
Note
MetaMask will popup asking for permission to add Bobabase as a custom network. Once you approve permissions, MetaMask will switch your current network to Bobabase.
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.
Get Tokens with the Faucet¶
TestNet BOBA is distributed via a tweet-authenticated faucet on Bobabase Gateway, a home for your Boba Layer 2 activities akin to apps.moonbeam.network. Bobabase allows fee payment in either DEV or TestNet BOBA, and you can toggle this setting via a dropdown in the upper right corner.
To get some TestNet BOBA, take the following steps:
- Head to Bobabase Gateway
- Ensure you're on the BobaBase network and click Connect to connect your MetaMask wallet
- Press Tweet Now, and send the public tweet
- Copy the link to the tweet and paste it in the box
- Press Authenticated Faucet and sign the following MetaMask popup
If you don't have a Twitter account, you can contact us on Discord to receive TestNet BOBA.
Bridge from Moonbase Alpha to Bobabase¶
Bobabase Gateway enables you to bridge various assets to and from Bobabase. To bridge assets from Moonbase Alpha to Bobabase, take the following steps:
- Head to Bobabase 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 Bobabase. To confirm arrival, click on Boba Wallet in the upper left corner or look up your account on Bobabase explorer
Bridge from Bobabase to Moonbase Alpha¶
Bobabase Gateway enables you to bridge various assets to and from Bobabase. Note, when bridging back from the Layer 2, there is a 7-day delay before your funds are available on Moonbase Alpha. This delay is an inherent safety feature of the optimistic rollup architecture and applies only when bridging from the Layer 2 back to the Layer 1. To bridge assets from Bobabase to Moonbase Alpha, take the following steps:
- Head to Bobabase 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 Moonbase Alpha 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 DEV or BOBA can be used to pay for gas for transactions on Bobabase. If you want to use DEV as a gas token, you must have at least 0.5 DEV bridged to Bobabase. See Bridge from Moonbase Alpha to Bobabase to learn how to bridge DEV or BOBA to Bobabase. By default, the selected gas fee token is set to BOBA. To change it to DEV, take the following steps:
- Press the Fee dropdown at the top right
- Click on DEV or BOBA to select the new gas fee token
- Confirm the transaction in MetaMask
| Created: August 2, 2022