Ankr Json-RPC End-Point

How to obtain the Neo Ankr End-Point and execute 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 will have the following format:

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

Example (as shown in the image above):

app-a5ab4797-8683-40fa-9374-693939bb666c.cls-dec3c32b-4f06-462f-b827-dee931d39a72.ankr.com

Simple Json-RPC Request

// Request
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "getversion","params": []}' http://<your-app-id>.ankr.com
// Result
{
"jsonrpc": "2.0",
"id": "1",
"result": {
"port": 10333,
"nonce": 975780516,
"useragent": "/Neo:2.10.3/"
}
}

In the next sections, we will describe some of the RPC requests. Most of them can be found in the official documentation.