Skip to main content

How to use a Solana RPC Node

Authentication

We use Token Authentication at Syndica. All endpoints are protected by an Access Token which needs to be supplied in either the body of the RPC call or as part of the calling URL endpoint.

See the Access Tokens documentation for the steps to create an Access Token within your Syndica Account. Once created, the token can be utilized in the two methods outlined below to make calls to Solana.

To start using our Solana RPC Node service, use one of the two methods below:

API Token URL Embedded
curl https://solana-mainnet.api.syndica.io/api-token/<YOUR_API_TOKEN> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":"1", "method":"getHealth"}'
API Token Header Embedded
curl https://solana-mainnet.api.syndica.io/ \
-X POST \
-H "Content-Type: application/json" \
-H "X-Syndica-Api-Token: <YOUR_API_TOKEN>" \
-d '{"jsonrpc":"2.0","id":"1", "method":"getHealth"}'
Valid RPC Server Response, which will be returned from the request above.
{ "jsonrpc": "2.0", "result": "ok", "id": 1 }
We also support WebSocket connections through our ChainStreamAPI:
wss://solana-mainnet.api.syndica.io/api-token/<YOUR_API_TOKEN>/
note

This is the body you pass to the RPC node itself (it is a proxy)

RPC Node Response:

{ "jsonrpc": "2.0", "result": 102611793, "id": "1" }