How to Connect to Base

Learn how to connect to the Base infrastructure via RPC with Blockdaemon.

In this guide, you'll learn the following connection methods to the Base infrastructure:

👍

Note:

If you haven't configured any infrastructures, visit the Base marketplace page to learn more about Blockdaemon's Base options.


How to Access Your Blockdaemon Base Credentials

After purchasing your Blockdaemon Base infrastructure, access your credentials:

  1. Log into the Blockdaemon app.
  2. In the Access menu, click Nodes.
  3. Click the Base node.
  4. Click the Connect tab.

In the Connection Information section, you'll find the following:

  • Endpoint URL
  • Auth Token

How to Connect to Base HTTP RPC via cURL

Here's how you add your access credentials to a cURL request:

curl --location --request POST 'YOUR_ENDPOINT_URL' \ --header 'X-Auth-Token: YOUR_AUTH_TOKEN' \ --header 'Content-Type: application/json' \ --data-raw '{ "jsonrpc": "2.0", "method": "YOUR_RPC_METHOD", "params": YOUR_PARAMS }' 
  • 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.
  • Replace YOUR_PARAMS with the necessary params for your RPC.

Base Connection via WebSocket

wscat -H "X-Auth-Token: YOUR_AUTH_TOKEN" -c wss://YOUR_ENDPOINT_URL:8443/websocket
  • Replace YOUR_AUTH_TOKEN with the Auth Token sent by your Blockdaemon TAM.
  • Replace YOUR_ENDPOINT_URL with the Endpoint URL sent by your Blockdaemon TAM.

📘

Info:

wscat is a tool that can connect over WebSocket(s) and may need to be installed. You can use your preferred tool of choice.

👋 Need Help?

Contact us through email or our support page for any issues, bugs, or assistance you may need.