Ankr Json-RPC End-Point

This is a guide on how to obtain the Terra 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-63fa9ca0-bba6-43ff-90f0-d5167602aa12.cls-dec3c32b-4f06-462f-b827-dee931d39a72.ankr.com

Simple JSON-RPC Request

// Request
curl <your-app-id>.ankr.com/node_info
// Result
{
"node_info":{
"protocol_version":{
"p2p":"7",
"block":"10",
"app":"0"
},
"id":"1d5d40a24013802f55043cab491ab0f0ea861d1f",
"listen_addr":"tcp://0.0.0.0:26656",
"network":"columbus-3",
"version":"0.32.12",
"channels":"4020212223303800",
"moniker":"Ankr-EngineeringUse-5",
"other":{
"tx_index":"on",
"rpc_address":"tcp://0.0.0.0:26657"
}
},
"application_version":{
"name":"terra",
"server_name":"terrad",
"client_name":"terracli",
"version":"0.3.6",
"commit":"99581baf89a838cf09a25d47adc2fd2cc97ab4a2",
"build_tags":"netgo ledger,",
"go":"go version go1.13.15 linux/amd64"
}
}

In the next sections, we will describe some of the RPC and REST HTTP requests, most of them can be found in the Official Documentation.