Skip to content

Connect to Moonriver


Moonriver has two endpoints available for users to connect to: one for HTTPS and one for WSS.

The Moonriver RPC and WSS endpoints hosted by PureStake are for development purposes only and are not meant to be used in production applications. The following are alternative endpoint providers:


To connect to Moonriver via HTTPS, simply point your provider to one of the following RPC DNS:

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(""); 
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 = "";
// 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).


For WebSocket connections, you can use the following DNS:


Chain ID

The Moonriver chain ID is: 1285

Connect MetaMask

If you already have MetaMask installed, you can easily connect MetaMask to Moonriver:


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, please check out the Interacting with Moonbeam using MetaMask guide.