Skip to content

Get Started with Bobabase

Bobabase Banner

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 (not yet live) refers to Boba's MainNet deployment on Moonbeam.

Network Endpoints

Name RPC URL
RPC
https://bobabase.boba.network/
Replica RPC
https://replica.bobabase.boba.network/
Name RPC URL
WSS
wss://wss.bobabase.boba.network/
Replica WSS
wss://replica-wss.bobabase.boba.network/

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.providers.StaticJsonRpcProvider(providerURL, {object}) and setting the provider URL to Bobabase:

const ethers = require('ethers');

const providerURL = 'https://bobabase.boba.network';

// Define Provider
const provider = new ethers.providers.StaticJsonRpcProvider(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:

  1. Head to Bobabase Gateway
  2. Ensure you're on the BobaBase network and click Connect to connect your MetaMask wallet
  3. Press Tweet Now, and send the public tweet
  4. Copy the link to the tweet and paste it in the box
  5. Press Authenticated Faucet and sign the following MetaMask popup

Bobabase Faucet

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:

  1. Head to Bobabase Gateway and press Connect
  2. Click on Moonbase Wallet in the upper left corner
  3. Next to the asset you'd like to bridge, press Bridge to L2
  4. Enter the amount you'd like to bridge and press Bridge
  5. Confirm the transaction in MetaMask
  6. 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 to Bobabase

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:

  1. Head to Bobabase Gateway and press Connect
  2. Click on Boba Wallet in the upper left corner
  3. Next to the asset you'd like to bridge, press Bridge to L1
  4. Enter the amount you'd like to bridge and press Bridge
  5. Confirm the transaction in MetaMask
  6. 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

Bridge to Bobabase