Daemon JSON RPC API
Daemon JSON RPC API
./Qwertycoind --rpc-bind-port=8197./Qwertycoind --rpc-bind-ip=0.0.0.0 --rpc-bind-port=8197 http://126.0.1.100:8197/json_rpc
http://localhost:8197/json_rpcAvailable commands
getblockcount - returns current chain height
getblockcount - returns current chain height /json_rpc {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "QWC JSON RPC API",
"description": "Schema for transfer method in Qwertycoin wallet",
"type": "object",
"properties" : {
"jsonrpc" : {
"type" : "string"
},
"method" : {
"type" : "string"
}
},
"required" : ["jsonrpc", "method"]
}getblockhash - Returns block hash by its height
getblockhash - Returns block hash by its heightgetblocktemplate - Returns blocktemplate with an empty “hole” for nonce
getblocktemplate - Returns blocktemplate with an empty “hole” for noncesubmitblock - Submits mined block
submitblock - Submits mined blockgetlastblockheader - Returns last block header
getlastblockheader - Returns last block headergetblockheaderbyhash - Returns last block header by given hash.
getblockheaderbyhash - Returns last block header by given hash.getblockheaderbyheight - Returns block header by given block height.
getblockheaderbyheight - Returns block header by given block height.getcurrencyId - Returns unique currency identifier
getcurrencyId - Returns unique currency identifierExamples
getblockcount
getblockcountgetblockhash
getblockhashgetblocktemplate
getblocktemplatesubmitblock
submitblockgetlastblockheader
getlastblockheadergetblockheaderbyhash
getblockheaderbyhashgetblockheaderbyheight
getblockheaderbyheightgetcurrencyId
getcurrencyIdLast updated
Was this helpful?