Ankr Json-RPC End-Point

How to obtain the Ankr End-Point and make a simple request

Obtain Ankr End-point

After successfully deploying an Ethereum Full node, the End-point can be found on the application details, on the left-side of the screen:

The RPC Endpoint has the following format:

http://<your-app-id>.ankr.com

Example (as shown in the image above):

http://app-82026c54-a336-4ce4-bcae-352824351322.cls-593f3f46-316e-4f00-8ebd-9a45cfde390d.ankr.com

Simple Json-RPC Request

// Request
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "web3_clientVersion","params": []}' http://<your-app-id>.ankr.com
// Result
{
"jsonrpc":"2.0",
"id":1,
"result":"Geth/v1.9.15-stable-0f77f34b/linux-amd64/go1.14.4"
}

In the next sections we will describe a couple of RPC requests, most of them can be found in the Official Documentation.