Ankr Json-RPC End-Point

This is a guide on how to obtain the Sifchain Ankr End-Point and execute a simple request.

Obtain Ankr End-point

After successfully deploying a Sifchain Ankr Full node, the End-point can be found on the application details, on the left side of the screen:

The REST endpoint will have the following format:

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

Example (as shown in the image above):

app-0ddff798-b6cb-487e-bee8-758f5be50ad0.cls-a91a7dbc-1a23-42f6-a66f-876094349f03.ankr.com

Simple HTTP Request

// Request
curl <your-app-id>.ankr.com/node_info
// Result
{
"node_info": {
"protocol_version": {
"p2p": "7",
"block": "10",
"app": "0"
},
"id": "d647909e8c5efa2fdcb9a4ac970417fd638f9e87",
"listen_addr": "tcp://0.0.0.0:26656",
"network": "monkey-bars",
"version": "0.33.8",
"channels": "4020212223303800",
"moniker": "Minu-test",
"other": {
"tx_index": "on",
"rpc_address": "tcp://0.0.0.0:26657"
}
},
"application_version": {
"name": "sifchain",
"server_name": "sifnoded",
"client_name": "sifnodecli",
"version": "0.0.1",
"commit": "8e6bb032114c20966ee11da901f4a31a191492e1",
"build_tags": "",
"go": "go version go1.15.6 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.