Skip to main content
In about five minutes you will receive a blockhash over HTTPS and live slot notifications over WSS from one ThorEdge location.

Before you start

You need:
  • An active pass or rental with a location token (create one)
  • The complete RPC and WS URLs from the SSL column of that location
  • curl, jq, and Node.js 22 or newer
Both URLs carry the location token. Keep them out of source control and logs.

Send a request

Output; the values change every slot:

Open a subscription

Save this as slots.mjs:
Run it:
The first line is the subscription id; each following line is one slot:
Stop with Ctrl+C. You are connected when notifications keep arriving with increasing slots.

Next steps