Skip to content

Get Started with Moonriver

Connect to Moonriver

Network Endpoints

Moonriver 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://moonriver.api.onfinality.io/public
https://rpc.moonriver.moonbeam.network

WSS

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

Quick Start

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

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

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

const ethers = require('ethers');

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

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

Chain ID

Moonriver chain ID is: 1285, or 0x505 in hex.

Block Explorers

For Moonriver, 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 Moonriver:

Note

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

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: Moonriver
  • RPC URL: https://rpc.moonriver.moonbeam.network
  • ChainID: 1285 (hex: 0x505)
  • Symbol (Optional): MOVR
  • Block Explorer (Optional): https://moonriver.moonscan.io/