Ankr JSON-RPC Endpoint

How to obtain the JSON-RPC Endpoint URL from your Ankr Node

Deploy a node and setup credentials

When deploying a Solana Full Node on Ankr you will be asked to choose the network on which the Node.

Get the Endpoint URL

After successfully deploying a node on Ankr you can get the endpoint from the Application details section as seen below:

The RPC Endpoint has the following format:


Example (as shown in the image above):

JSON-RPC request example

curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1, "method":"getEpochInfo"}'
"jsonrpc": "2.0",
"result": {
"absoluteSlot": 49880619,
"blockHeight": 47398111,
"epoch": 115,
"slotIndex": 200619,
"slotsInEpoch": 432000
"id": 1