Skip To Content

Blockdaemon Documentation

How to Connect to Ethereum (Geth)

It’s easy to connect to your Ethereum (Geth) infrastructure.

If you haven’t already configured any Ethereum (Geth) infrastructure, visit the Ethereum marketplace page to learn more about Blockdaemon’s Ethereum options.

In this guide, we will cover the following simple methods of connection to your infrastructure:


How to access Your Blockdaemon Ethereum (Geth) Credentials

Once you have purchased your Blockdaemon Ethereum (Geth) infrastructure, you can access your credentials:

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

In the Connection Information area, you’ll find the following:

  • Your Endpoint URL
  • Your Auth Token

How to Connect to Ethereum (Geth) via cURL

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

curl -X POST 'YOUR_ENDPOINT_URL' -H 'Content-Type: application/json' -H 'X-Auth-Token: YOUR_AUTH_TOKEN' -d '{"jsonrpc":"2.0","method":"YOUR_RPC_METHOD","params":YOUR_PARAMS,"id":1}'
  • Replace YOUR_ENDPOINT_URL with the Endpoint URL found in the Blockdaemon app.
  • Replace YOUR_AUTH_TOKEN with the Auth Token found in the Blockdaemon app.
  • Replace YOUR_RPC_METHOD with your chosen RPC method.
  • Replace YOUR_PARAMS with the necessary params for your RPC.

How to Connect to Ethereum (Geth) via GraphQL

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

curl -X POST '{YOUR_ENDPOINT_URL/graphql' -H 'Content-Type: application/json' -H 'X-Auth-Token: YOUR_AUTH_TOKEN' --data-raw '{"query":"YOUR_QUERY"}'
  • Replace YOUR_ENDPOINT_URL with the Endpoint URL found in the Blockdaemon app.
  • Replace YOUR_AUTH_TOKEN with the Auth Token found in the Blockdaemon app.
  • Replace YOUR_QUERY with your chosen query.

How to Connect to Ethereum (Geth) via WebSocket

Here’s how you add your access credentials to a wscat request:

wscat -H "X-Auth-Token: YOUR_AUTH_TOKEN" -c YOUR_ENDPOINT_URL/websocket

We don't support Internet Explorer

Please use Chrome, Safari, Firefox, or Edge to view this site.