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:

http://<your_app_id>.ankr.com

Example (as shown in the image above):

http://app-3ca28d07-1baa-4c3b-bf46-f2ccd91a43af.cls-dec3c32b-4f06-462f-b827-dee931d39a72.ankr.com

JSON-RPC request example

//request
curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1, "method":"getEpochInfo"}' app-beac30e3-a34b-467a-a510-ccde175a3a68.cls-593f3f46-316e-4f00-8ebd-9a45cfde390d.ankr.com
//response
{
"jsonrpc": "2.0",
"result": {
"absoluteSlot": 49880619,
"blockHeight": 47398111,
"epoch": 115,
"slotIndex": 200619,
"slotsInEpoch": 432000
},
"id": 1
}