Skip to content

Moonbase Alpha, The Moonbeam TestNet

Updated February 18, 2020

Goal

The first Moonbeam TestNet, named Moonbase Alpha, aims to provide developers with a place to start experimenting and building on Moonbeam in a shared environment. Since Moonbeam will be deployed as a parachain on Kusama and Polkadot, we want our TestNet to reflect our production configuration. For this reason, we decided that it needed to be a parachain-based configuration rather than a Substrate standalone setup.

In order to collect as much feedback as possible and provide fast issue resolution, we have set up a Discord with a dedicated Moonbase AlphaNet channel.

Initial Configuration

Moonbase Alpha has the following configuration:

  • Moonbeam runs as a parachain connected to a relay chain
  • The parachain has two collators (hosted by PureStake) that are collating blocks
  • The relay chain hosts three validators (hosted by PureStake) to finalize relay chain blocks. One of them is selected to finalize each block collated by Moonbeam's collators. This setup provides room to expand to a two-parachain configuration in the future
  • There are two RPC endpoints (hosted by PureStake). People can run full nodes to access their own private RPC endpoints

TestNet Diagram

Features

The following features are available:

September 2020
  • Fully-emulated Ethereum block production in Substrate (Ethereum pallet)
  • Dispatchable functions to interact with the Rust EVM implementation (EVM pallet)
  • Native Ethereum RPC support (Web3) in Substrate (Frontier). This provides compatibility with Ethereum developer tools such as MetaMask, Remix, and Truffle
October 2020
  • Event subscription support (pub/sub), which is a missing component on the Web3 RPC side and commonly used by DApp developers. You can find a tutorial on how to subscribe to events here
  • Support for the following precompile contracts: ecrecover, sha256, ripemd160 and the identity function (or datacopy)
November 2020
  • Unification of Substrate and Ethereum accounts under the H160 format, an effort we are calling Unified Accounts. Consequently, there will be only one kind of account in the system represented by a single address
  • Upgrades to the event subscription support, adding the possibility of using wildcards and conditional formatting for topics. You can find more information here
  • Polkadot JS Apps now natively supports H160 addresses and ECDSA keys. You can use your Ethereum-style address for Substrate functions (when available) like staking, balances, and governance. You can find more information here
December 2020
  • Updated to the newest version of the Polkadot parachain protocol (Parachains V1), which fixed several issues with node syncing, paving the way to have multiple collators to sync in the same parachain
  • Multiple improvements to our Etheruem Compatibility features:
    • Event subscription ID now returns an Ethereum-styled subscription ID
    • Fixed gas estimation issues for specific usecases
    • Added support for revert reason message
    • Event subscription ID now returns an Ethereum-styled subscription ID
    • Support for Ethereum transactions without ChainId
January 2021
  • Added a custom version of the Staking pallet (for testing and development purposes only)
  • Added support for querying pending transactions while they are in the pool
  • Fixed some issues when retrieving past events and other minor fixes related to smart contract events
  • Multiple under-the-hood improvements that include an optimization of the EVM execution time, making it 15-50 times faster
  • Support for the modexp precompile contracts
February 2021
  • Public release of the custom Staking pallet. Now token holders can nominate collators and earn rewards
  • Added the Democracy pallet. Token holders can now submit proposals and vote on them
  • Updated to the latest version of Frontier RPC, which increases EVM execution efficiency by a factor of 5
  • The gas limit has been bump to 15M per block, with a 13M per transaction limit

Release Notes

For more details regarding the updates of Moonbase Alpha, please refer to the following release notes:

Future Releases

Features that may be implemented in the future:

Get Started

HTTPS DNS

To connect to Moonbase Alpha via HTTPS, simply point your provider to the following RPC DNS:

https://rpc.testnet.moonbeam.network

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('https://rpc.testnet.moonbeam.network'); 
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 = 'https://rpc.testnet.moonbeam.network';
// 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).

WSS DNS

For WebSocket connections, you can use the following DNS:

wss://wss.testnet.moonbeam.network

Chain ID

For the Moonbase Alpha TestNet the chain ID is: 1287.

Telemetry

You can see current Moonbase Alpha telemetry information visiting this link.

Tokens

Tokens on Moonbase Alpha, named DEV, will be issued on demand. Currently, there are two ways you can get access to this token: through a Discord bot, or manually.

Discord - Mission Control

To request tokens automatically, we've created a Discord bot (named Mission Control 😎) that will automatically send a maximum of 10 DEV tokens per hour (per Discord user) when you enter your address. You can check it out on our Discord channel. For more information, please visit this site.

Under the category "Miscellaneous", you will find our AlphaNet bot channel. Enter the following message, replacing <enter-address-here-> with your H160 address:

!faucet send <enter-address-here->

Manual Procedure

For token requests of more than the limited account allowed by our Discord bot, contact a moderator directly via our Discord channel. We are happy to provide the tokens needed to test your applications.

Early Stage Proof of Stake

With the release of Moonbase Alpha v6, the TestNet is now running with an early stage Proof of Stake system. This means that, for testing purposes, Moonbeam partners will be encouraged to be the first collators in the network.

As Moonbase Alpha progresses, we expect to evolve into a fully decentralized Proof of Stake network.

Limitations

This is the first TestNet for Moonbeam, so there are some limitations.

Some precompiles are yet to be included in this release. You can check a list of supported precompiles here. However, all built-in functions are available.

Since the release of Moonbase Alpha v6, the maximum gas limit per block has been set to 15M, with a maximum gas limit per transaction of 13M.

Users only have access to the Moonbeam parachain. In future networks, we will add access to the relay chain so users can test transferring tokens.

Chain Purge

This network is under active development. Occasionally, chain purges may be needed in order to reset the blockchain to its initial state. This is necessary when doing major TestNet upgrades or maintenance. We will announce when a chain purge will take place via our Discord channel at least 24 hours in advance.

Please take note that PureStake will not be migrating the chain state. Thus, all data stored in the blockchain will be lost when a chain purge is carried out. However, as there is no gas limit, users can easily recreate their pre-purge state.

We Want to Hear From You

If you have any feedback regarding Moonbase Alpha or any other Moonbeam-related topic, feel free to reach out through our official development Discord channel.