Skip to content

Get Started with Moonbase Alpha

Connect to Moonbase Alpha

Network Endpoints

Moonbase Alpha has two types of endpoints available for users to connect to: one for HTTPS and one for WSS.

If you're looking for your own endpoints suitable for production use, you can check out the Endpoint Providers section of our documentation. Otherwise, to get started quickly you can use one of the following public HTTPS or WSS endpoints:




To connect to the Moonbase Alpha relay chain, you can use the following WS Endpoint:


Quick Start

For the web3.js library, you can create a local Web3 instance and set the provider to connect to Moonbase Alpha (both HTTP and WS are supported):

const Web3 = require('web3'); //Load Web3 library
//Create local Web3 instance - set Moonbase Alpha as provider
const web3 = new Web3(''); 
For the ethers.js library, define the provider by using ethers.providers.StaticJsonRpcProvider(providerURL, {object}) and setting the provider URL to Moonbase Alpha:

const ethers = require('ethers');

const providerURL = '';
// Define Provider
const provider = new ethers.providers.StaticJsonRpcProvider(providerURL, {
    chainId: 1287,
    name: 'moonbase-alphanet'

Any Ethereum wallet should be able to generate a valid address for Moonbeam (for example, MetaMask).

Chain ID

Moonbase Alpha TestNet chain ID is: 1287, which is 0x507 in hex.

Relay Chain

To connect to the Moonbase Alpha relay chain, you can use the following WS Endpoint:


Block Explorers

For Moonbase Alpha, you can use any of the following block explorers:

For more information on each of the available block explorers, please head to the Block Explorers section of the documentation.

Connect MetaMask

If you already have MetaMask installed, you can easily connect MetaMask to the Moonbase Alpha TestNet:


MetaMask will popup asking for permission to add Moonbase Alpha as a custom network. Once you approve permissions, MetaMask will switch your current network to Moonbase Alpha.

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.

If you want to connect MetaMask by providing the network information, you can use the following data:

  • Network Name: Moonbase Alpha
  • RPC URL:
  • ChainID: 1287 (hex: 0x507)
  • Symbol (Optional): DEV
  • Block Explorer (Optional):

Get Tokens

To start building on Moonbase Alpha, you can get DEV tokens from our faucet, in our Discord Channel. For specific amounts, you can always reach out directly to us via our community channels.

Discord - Mission Control

To request tokens automatically, we've created a Discord bot (named Mission Control 😎) that will automatically send a maximum of 5 DEV tokens every 24 hours (per Discord user) when you enter your address. You can check it out on our Discord channel.

Under the category "Miscellaneous," you will find our #Moonbase-Faucet channel.


To check your balance, enter the following message, replacing <enter-address-here-> with your H160 address:

!balance <enter-address-here->

To get DEV tokens, enter the following message, replacing <enter-address-here-> with your H160 address:

!faucet send <enter-address-here->

Mission Control will send you 5 DEV tokens and display your current account balance. Remember that Mission Control is limited to dispense once every 24 hours per Discord user.



Moonbase Alpha DEV tokens have no value. Please don't spam the faucet with unnecessary requests.