Ankr JSON-RPC Endpoint

Obtaining the Ankr endpoint for Herdera and making a simple request

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 Endpoint URL will have the following format:

http://<your_app_id>.ankr.com

Example (as shown in the image above):

http://app-7bd3f17d-3e47-47ab-8e00-d1ffb55e7a42.cls-a91a7dbc-1a23-42f6-a66f-876094349f03.ankr.com

JSON-RPC request example

//request
curl -H "Content-Type: application/json" http://app-7bd3f17d-3e47-47ab-8e00-d1ffb55e7a42.cls-a91a7dbc-1a23-42f6-a66f-876094349f03.ankr.com/api/v1/accounts?account.id=0.0.1001
//response
{
"accounts":[
{
"balance":{
"timestamp":"1604296800.106706008",
"balance":696858661816
},
"account":"0.0.1001",
"expiry_timestamp":null,
"auto_renew_period":null,
"key":null,
"deleted":false
}
],
"links":{
"next":null
}
}

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