Ankr JSON-RPC Enpoint

How to obtain the Elastos Ankr Endpoint and execute a simple request.

Get the Endpoint URL

After successfully deploying an endpoint for Ankr you can get the endpoint from the Application details section as seen below:

The Endpoint URL will have the following format:


Example (as shown in the image above):

JSON-RPC request example

curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "getbestblockhash","params": []}'

In the next section, you will find a detailed description of the provided Near API endpoints which can also be consulted in the Elastos Official Documentation