How to Connect to Moonriver and Moonbeam

Learn how easy it is to connect to the Moonbeam/Moonriver nodes with Blockdaemon.

It's easy to connect to your Moonbeam/Moonriver nodes.

If you haven't already configured any Moonbeam/Moonriver infrastructure, visit the Moonbeam marketplace page or Moonriver marketplace page to learn more about Blockdaemon's Moonbeam/Moonriver options.

Once you have purchased your Blockdaemon Moonbeam/Moonriver infrastructure, Your Blockdaemon Technical Account Manager (TAM) will send you the necessary access credentials.

There are multiple ways to use these to connect to your node/cluster. In this guide, we will cover the following simple methods of connection to your infrastructure:


Moonbeam/Moonriver RPC Connection via cURL

Step 1 - Your RM will send you the following access credentials:

  • Your Unique Endpoint URL
  • Your Unique Auth Token
  • Please Note: These are one-time view, so make sure to copy them.

Step 2 - Add your access credentials to a cURL request.

curl -H "Content-Type: application/json" \
-H "X-Auth-Token: YOUR_AUTH_TOKEN" -d \
'{"id":1, "jsonrpc":"2.0", "method": "YOUR_RPC_METHOD"}' \
YOUR_ENDPOINT_URL 
  • Replace YOUR_ENDPOINT_URL with the Endpoint URL sent by your Blockdaemon TAM
  • Replace YOUR_AUTH_TOKEN with the Auth Token sent by your Blockdaemon TAM
  • Replace YOUR_RPC_METHOD with your chosen RPC method

Step 3

  • Execute your request to connect to your Blockdaemon Moonbeam/Moonriver Infrastructure

Moonbeam/Moonriver Connection via WebSocket

Step 1 - Your TAM will send you the following access credentials:

  • Your Unique Endpoint URL
  • Your Unique Auth Token
  • Please Note: These are one-time view, so make sure to copy them. Step 2 - Add your access credentials to a websockets connection request:
wscat -H "X-Auth-Token: YOUR_AUTH_TOKEN" -c YOUR_ENDPOINT_URL/websocket 
  • Replace YOUR_ENDPOINT_URL with the Endpoint URL sent by your Blockdaemon TAM
  • Replace YOUR_AUTH_TOKEN with the Auth Token sent by your Blockdaemon TAM