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
/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
getblocktemplate - Returns blocktemplate with an empty “hole” for nonce
submitblock - Submits mined block
getlastblockheader - Returns last block header
getblockheaderbyhash - Returns last block header by given hash.
getblockheaderbyheight - Returns block header by given block height.
getcurrencyId - Returns unique currency identifier
Examples
getblockcount
getblockhash
getblocktemplate
submitblock
getlastblockheader
getblockheaderbyhash
getblockheaderbyheight
getcurrencyId
Last updated
Was this helpful?