Last updated
Last updated
To start Daemon JSON RPC API server you should specify a port on which server binds (additionally to standard daemon's arguments). You can choose any free port. To do that execute the following command from the command line:
If you want Daemon to be accessed from other computer not only yours you should also use a --rpc-bind-ip 0.0.0.0
command. To do that execute the following command from the command line:
Having done that you're ready to operate with the daemon through the following API URLs (e.g., your IP address is 126.0.1.100):
getblockcount
- returns current chain heightURL:
Input arguments:
Return value schema:
getblockhash
- Returns block hash by its heightURL:
Input arguments:
Return value schema:
getblocktemplate
- Returns blocktemplate with an empty “hole” for nonceURL:
Input arguments:
Return value schema
submitblock
- Submits mined blockURL:
Input arguments:
Return value schema:
getlastblockheader
- Returns last block headerURL:
Input arguments:
Return value schema:
getblockheaderbyhash
- Returns last block header by given hash.URL:
Input arguments:
Return value schema:
See getlastblockheader above
getblockheaderbyheight
- Returns block header by given block height.URL:
Input arguments:
Return value schema:
See getlastblockheader above
getcurrencyId
- Returns unique currency identifierURL:
Input arguments:
Return value schema:
getblockcount
Input:
Output:
getblockhash
Input:
Output:
getblocktemplate
Input:
Output:
submitblock
Input:
Output:
getlastblockheader
Input:
Output:
getblockheaderbyhash
Input:
Output:
getblockheaderbyheight
Input:
Output:
getcurrencyId
Input:
Output: