Skip to content

Connect to Moonbase Alpha


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