SpartanCoin Simple API Request - SpartanCoin Xjail

SpartanCoin Blockchain Simple API Request - SpartanCoin Xjail

Why is it a simple API request but not a full API request?

This API request is only for you to fetch SpartanCoin basic information online. If it is a full API request, it will be a block explorer.

 

The command should exactly match without extra str, otherwise the API will refuse and return nothing.

Such as circulating_supply, the exactly match request URL should be:

https://www.spartancoin.tiv.cc/api/?circulating_supply

 

API Command

circulating_supply - return a text/plain number indicating the SpartanCoin Current Circulating Supply (How Much Mined SPN).

https://www.spartancoin.tiv.cc/api/?circulating_supply

getblockcount - return a text/plain integer number indicating the block count (last block index).

https://www.spartancoin.tiv.cc/api/?getblockcount

getdifficulty - return a text/plain float number indicating the current difficulty.

https://www.spartancoin.tiv.cc/api/?getdifficulty

getinfo - return an application/json value showing the information, which contains the version info. This is the lite version of getinfo, as other information would not be shown to leak the server status.

https://www.spartancoin.tiv.cc/api/?getinfo

 


SpartanCoin Xjail