Skip to content

Moonbeam

Updated December 13th, 2021

Goal

Moonbeam onboarded as a parachain to Polkadot on December 17th 2021. Moonbeam is the most Ethereum compatible smart-contract parachain in the Polkadot ecosystem. It allows developers to port their projects with minimal to no code changes, enabling them to tap into the Polkadot ecosystem and all its assets.

Initial Configurations

Once fully launched, Moonbeam will have the following configurations:

  • Runs as a parachain connected to the Polkadot relay chain
  • Has an active set of 53 collators
  • It has infrastructure providers that provide API endpoints to connect to the network. Projects can also run their own node to have access to their own private endpoints

Moonbeam Diagram

Some important variables/configurations to note include (still subject to change):

Variable Value
Minimum gas price 100 Gwei*
Target block time 12 seconds (expected to be 6 seconds)
Block gas limit 15M (expected to increase by at least 4x)
Transaction gas limit 12.995M (expected to increase by at least 4x)
Variable Value
Voting Period 100800 blocks (14 days)
Fast-Track Voting Period 7200 blocks (1 days)
Enactment Period 14400 blocks (2 day)
Cool-off Period 50400 blocks (7 days)
Minimum Deposit 400 GLMR
Maximum Votes 100
Maximum Proposals 100
Variable Value
Minimum delegation stake 50 GLMR
Maximum delegators per candidates 300
Maximum delegations per account 100
Round 1800 blocks (6 hours)
Bond duration delegation takes effect in the next round (funds are withdrawn immediately)
Unbond duration 28 rounds

*Read more about token denominations

Connect to Moonbeam

Network Endpoints

Moonbeam 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:

HTTPS

https://moonbeam.api.onfinality.io/public
https://rpc.api.moonbeam.network

WSS

wss://moonbeam.api.onfinality.io/public-ws
wss://wss.api.moonbeam.network

Quick Start

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

const Web3 = require('web3'); //Load Web3 library
.
.
.
//Create local Web3 instance - set Moonbeam as provider
const web3 = new Web3("https://rpc.api.moonbeam.network"); 

For the ethers.js library, define the provider by using ethers.providers.StaticJsonRpcProvider(providerURL, {object}) and setting the provider URL to Moonbeam:

const ethers = require('ethers');

const providerURL = "https://rpc.api.moonbeam.network";
// Define Provider
const provider = new ethers.providers.StaticJsonRpcProvider(providerURL, {
    chainId: 1284,
    name: 'moonbeam'
});

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

Chain ID

Moonbeam chain ID is: 1284, or 0x504 in hex.

Tokens

The tokens on Moonbeam will also be called Glimmer (GLMR). Check out the Moonbeam Foundation site for more information on the Glimmer token.

Token Denominations

The smallest unit of Glimmer (GMLR), similarly to Ethereum, is a Wei. It takes 10^18 Wei to make one Glimmer. The denominations are as follows:

Unit Glimmer (GLMR) Wei
Wei 0.000000000000000001 1
Kilowei 0.000000000000001 1,000
Megawei 0.000000000001 1,000,000
Gigawei 0.000000001 1,000,000,000
Microglmr 0.000001 1,000,000,000,000
Milliglmr 0.001 1,000,000,000,000,000
GLMR 1 1,000,000,000,000,000,000
Kiloglmr 1,000 1,000,000,000,000,000,000,000

Proof of Stake

Over the course of the 3-phase Moonbean launch, the network will progressively be updated to a fully decentralized Proof of Stake network. For a breakdown of what will occur during each phase, check out the Network Launch Status page.

Limitations

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