Ankr Json-RPC End-Point

How to obtain the Decred 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:


Example (as shown in the image above):

Simple Json-RPC Request

Decred RPC API requires basic authentication. Secure the RPC API by specifying the username and password. You must specify both or the RPC server will be disabled.

// Request
curl -u user:password -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "getblockchaininfo","params": []}' http://<your-app-id>
// Result
"jsonrpc": "2.0",
"result": {
"chain": "mainnet",
"blocks": 449448,
"headers": 449448,
"syncheight": 468648,
"bestblockhash": "00000000000000000a4ea2bf354ff23595832860af07194244d6a2241d873d35",
"difficulty": 405014717,
"difficultyratio": 30512592678.69649,
"verificationprogress": 0.9590310851641317,
"chainwork": "000000000000000000000000000000000000000000100414a690fa4024683c74",
"initialblockdownload": true,
"maxblocksize": 393216,
"deployments": {
"fixlnseqlocks": {
"status": "active",
"since": 342784,
"starttime": 1548633600,
"expiretime": 1580169600
"headercommitments": {
"status": "active",
"since": 431488,
"starttime": 1567641600,
"expiretime": 1599264000
"lnfeatures": {
"status": "active",
"since": 189568,
"starttime": 1505260800,
"expiretime": 1536796800
"lnsupport": {
"status": "active",
"since": 149248,
"starttime": 1493164800,
"expiretime": 1508976000
"sdiffalgorithm": {
"status": "active",
"since": 149248,
"starttime": 1493164800,
"expiretime": 1524700800
"error": null,
"id": 1

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