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 Ankr 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-6edd407c-2f76-44d9-bb46-7fb29bf6a3e6.cls-a91a7dbc-1a23-42f6-a66f-876094349f03.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":"celo/v1.0.0-stable/linux-amd64/go1.13.10"
}