Native Api
Blockchain API
73 min
abci info get application description information parameter no return value return a json object, the structure is as follows: jsonrpc jsonrpc version, fixed as "2 0" id id number of api request result result object response response result data application information last block height highest block ast block app hash last block application hash sample code request: curl x get 'https //rpc block caduceus global/abci info' response: { "jsonrpc" "2 0", "id" 1, "result" { "response" { "data" "hashrs", "last block height" "66330", "last block app hash" "junh9eanklhkgw/vomia47xmrhbmnns3k0rkoogvy1i=" } } } block get the data of the specified block parameter height the height of the block to be queried, int64, optional, default value 0, which means the latest block return value return a json object, the structure is as follows: block hash block hash block block information header block header version block version block the version number of the block app app version number chain id id number of the chain height block height round received receive round last block id previous block hash block hash timestamp time validators hash validator hash next validators hash next validator hash consensus hash consensus hash last results hash the result of the previous hash frame hash hash in consensus state txs hash txs hash app hash app hash receipts hash receiver's hash txs transaction set receipts\ recipient validator verifier event cnt number of events tx cnt tx number signatures signature information validator verifier sig signature information sample code request: curl x get 'https //rpc block caduceus global/block?height=10' response: { "jsonrpc" "2 0", "id" 1, "result" { "block hash" "0ae7265f03261de0954319ce26ebee26861e4c77b822d4decd41f8072316764c", "block" { "header" { "version" { "block" "0", "app" "0" }, "chain id" "8888", "height" "10", "round received" "10", "last block id" { "hash" "bb88de30a748ab3078a991ec77b8e3a35375dd953c9c908e4438d98ecdad02d4" }, "timestamp" "2020 12 08t03 32 49 099663z", "validators hash" "ca2a8986346fe3916c7990aef0d5ef17d71b05cb6eacd99ca04d181e27b53b34", "next validators hash" "8b3f76a7073de568b8a29d5be6651e0bdfc353dbfe45d6004221e4678ca23842", "consensus hash" "fe28d47cacd2c1933202e7921aa39830fe1ff73553af679104fa60d921d5abc1", "last results hash" "", "frame hash" "b0f72fc119eb9ef7e7bd6a0b82af5fe27b24bea27ffd9d172e6f6dbc20fc84f6", "txs hash" "", "app hash" "5c2c3c2680a11fe0da551e0d64fd0d9ff3578d244e228452f2eacecfb1ff2021", "receipts hash" "ad59a91dc7a762d4d7567afc504ff69842ab4cf33abab4157aced758a43a2a7c" }, "txs" null, "receipts" \[ { "validator" "d8a61174203a4f0e8c7261d5cb0f2419cc95897ebe75022682d518a7e6666d51996adffa96", "event cnt" "1", "tx cnt" "0" } ], "signatures" \[ { "validator" "d8a61174203a4f0e8c7261d5cb0f2419cc95897ebe75022682d518a7e6666d51996adffa96", "sig" "4ac43bfc63b7fb740c414bf40a20abf48584a959fcf7196d189d030cd6e5503de6d4c80a95117faa8b971be675eaccec5aedea7cb0daecf89cc05ea55f77390e" } ] } } } block results get the abci result of the specified block parameter height the height of the block to be queried, int64, optional, default value 0, which means the latest block return value return a json object, the structure is as follows: jsonrpc:jsonrpc version, fixed as "2 0" id:id number of api request error:error description information result:application information results sample code request: curl x get 'https //rpc block caduceus global/block results?height=10' response: { "jsonrpc" "2 0", "id" 1, "result" { "height" "10", "txs results" null, "begin block events" \[ { "type" "transfer", "attributes" \[ { "key" "cmvjaxbpzw50", "value" "agfzahjzmtd4cgz2ywttmmftzzk2mnlsczzmodr6m2tlbgw4yzvsyti0chhl" }, { "key" "yw1vdw50", "value" "ndixodcwmdazmjixote4nzcwagnvaw4=" } ] }, { "type" "message", "attributes" \[ { "key" "c2vuzgvy", "value" "agfzahjzmw0zadmwd2x2c2y4bgxydxh0chvrzhzzetbrbtjrdw04oxozztj5" } ] }, { "type" "mint", "attributes" \[ { "key" "ym9uzgvkx3jhdglv", "value" "mc4wmdawmdawmdawmdawmdawmda=" }, { "key" "aw5mbgf0aw9u", "value" "mc4xmzawmdaymdu5nzi1nza3ota=" }, { "key" "yw5udwfsx3byb3zpc2lvbnm=", "value" "mtmwmdawmjezmda1mjuwnzqymze2ntewntaundewndg5otyynjg5ntkyodew" }, { "key" "yw1vdw50", "value" "ndixodcwmdazmjixote4nzcw" } ] }, { "type" "transfer", "attributes" \[ { "key" "cmvjaxbpzw50", "value" "agfzahjzmwp2njvzm2dycwy2djzqbdnkcdr0nmm5ddlyazk5y2q4mnzqyxlt" }, { "key" "yw1vdw50", "value" "ndixodcwmdazmjixote4nzcwagnvaw4=" } ] }, { "type" "message", "attributes" \[ { "key" "c2vuzgvy", "value" "agfzahjzmtd4cgz2ywttmmftzzk2mnlsczzmodr6m2tlbgw4yzvsyti0chhl" } ] }, { "type" "commission", "attributes" \[ { "key" "yw1vdw50", "value" "ndixodcwmdazmjixote4nzcumdawmdawmdawmdawmdawmdawagnvaw4=" }, { "key" "dmfsawrhdg9y", "value" "agfzahjzdmfsb3blcje3yzl5dzlozdqwd3bnn3dma2z0em56zgzlz2d4cwm3nnhmmnvrda==" } ] }, { "type" "rewards", "attributes" \[ { "key" "yw1vdw50", "value" "ndixodcwmdazmjixote4nzcwljawmdawmdawmdawmdawmdawmghjb2lu" }, { "key" "dmfsawrhdg9y", "value" "agfzahjzdmfsb3blcje3yzl5dzlozdqwd3bnn3dma2z0em56zgzlz2d4cwm3nnhmmnvrda==" } ] } ], "end block events" null, "validator updates" null, "consensus param updates" null } } blockchain query blockchain information parameter minheight starting block height maxheight cutoff block height return value return a json object, the structure is as follows: jsonrpc:jsonrpc version, fixed as "2 0" id:id number of api request error:error description information result:application information results sample code request: curl x get 'https //rpc block caduceus global/blockchain?minheight=10\&maxheight=10' response: { "jsonrpc" "2 0", "id" 1, "result" { "last height" "67420", "block metas" \[ { "block id" { "hash" "0ae7265f03261de0954319ce26ebee26861e4c77b822d4decd41f8072316764c" }, "block size" "309", "header" { "version" { "block" "0", "app" "0" }, "chain id" "8888", "height" "10", "round received" "10", "last block id" { "hash" "bb88de30a748ab3078a991ec77b8e3a35375dd953c9c908e4438d98ecdad02d4" }, "timestamp" "2020 12 08t03 32 49 099663z", "validators hash" "ca2a8986346fe3916c7990aef0d5ef17d71b05cb6eacd99ca04d181e27b53b34", "next validators hash" "8b3f76a7073de568b8a29d5be6651e0bdfc353dbfe45d6004221e4678ca23842", "consensus hash" "fe28d47cacd2c1933202e7921aa39830fe1ff73553af679104fa60d921d5abc1", "last results hash" "", "frame hash" "b0f72fc119eb9ef7e7bd6a0b82af5fe27b24bea27ffd9d172e6f6dbc20fc84f6", "txs hash" "", "app hash" "5c2c3c2680a11fe0da551e0d64fd0d9ff3578d244e228452f2eacecfb1ff2021", "receipts hash" "ad59a91dc7a762d4d7567afc504ff69842ab4cf33abab4157aced758a43a2a7c" }, "num txs" "0" } ] } } commit query submission data todo consensus params get consensus parameters parameter no return value return a json object, the structure is as follows: jsonrpc:jsonrpc version, fixed as "2 0" id:id number of api request result result object block height block height consensus params consensus parameters event event max bytes event size time iota ms minimum time unit validator verifier pub key types digital signature algorithm for verifier's public key sample code request: curl x get 'https //rpc block caduceus global/consensus params' response: { "jsonrpc" "2 0", "id" 1, "result" { "block height" "67615", "consensus params" { "event" { "max gas" " 1", "max bytes" "131072", "time iota ms" "1000" }, "validator" { "pub key types" \[ "ed25519" ] } } } } consensus state query consensus status parameter no return value return a json object, the structure is as follows: jsonrpc:jsonrpc version, fixed as "2 0" id:id number of api request result result height round state height block height priv validator verifier private key validators set validator set validators list of validators address verifier address pub key verifier public key type digital signature algorithm for verifier's public key value public key voting power voting rights proposer priority applicant's priority proposer proposer address proposer address pub key proposer public key type digital signature algorithm of proponent's public key value public key voting power voting rights proposer priority applicant's priority sample code request: curl x get 'https //rpc block caduceus global/consensus state' response: { "jsonrpc" "2 0", "id" 1, "result" { "round state" { "height" "67836", "priv validator" "d8a61174203a4f0e8c7261d5cb0f2419cc95897ebe75022682d518a7e6666d51996adffa96", "validators set" { "validators" \[ { "address" "b5d2cb1cb0b16bb4710eb322cd124cd6e3f558bb", "pub key" { "type" "hashrs/pubkeyed25519", "value" "ok8ojhjh1cspjbnmlyl+vnucjolvgkfmzm1rmwrf+py=" }, "voting power" "1", "proposer priority" "0" } ], "proposer" { "address" "b5d2cb1cb0b16bb4710eb322cd124cd6e3f558bb", "pub key" { "type" "hashrs/pubkeyed25519", "value" "ok8ojhjh1cspjbnmlyl+vnucjolvgkfmzm1rmwrf+py=" }, "voting power" "1", "proposer priority" "0" } } } } } genesis get genesis document parameter no return value return a json object, the structure is as follows: jsonrpc:jsonrpc version, fixed as "2 0" id:id number of api request result result genesis founding information genesis time time chain id chain id number consensus params consensus parameters event event information max gas how much gas can an event put in, currently this number is sent from the application side max bytes the size of an event is 128m time iota ms the block interval is 1s, currently configured in config toml validator verifier pub key types verifier signature algorithm ed25519 app hash\ app's hash code app state app status information gov community information mint inflation information crisis fixed rate information staking configuration information of the staking module bank configuration information of bank module slashing configuration information of the slashing module supply configuration information of the supply module params parameter information auth authentication information punishment penalize nodes that do not produce blocks distribution distribute block rewards iam configuration information of iam module genutil generating transaction information for the genesis block sample code request: curl x get 'https //rpc block caduceus global/genesis' response: { "jsonrpc" "2 0", "id" 1, "result" { "genesis" { "genesis time" "2020 12 08t03 32 38 144142z", "chain id" "8888", "consensus params" { "event" { "max gas" " 1", "max bytes" "131072", "time iota ms" "1000" }, "validator" { "pub key types" \[ "ed25519" ] } }, "app hash" "", "app state" { "gov" { "starting proposal id" "1", "deposits" null, "votes" null, "proposals" null, "deposit params" { "min deposit" \[ { "denom" "hcoin", "amount" "10000000" } ], "max deposit period" "172800000000000" }, "voting params" { "voting period" "172800000000000" }, "tally params" { "quorum" "0 334000000000000000", "threshold" "0 500000000000000000", "veto" "0 334000000000000000" } }, "mint" { "minter" { "latest block time" "0001 01 01t00 00 00z", "inflation" "0 130000000000000000", "annual provisions" "0 000000000000000000" }, "params" { "mint denom" "hcoin", "inflation rate change" "0 130000000000000000", "inflation max" "0 200000000000000000", "inflation min" "0 070000000000000000", "goal bonded" "0 670000000000000000", "blocks per year" "6311520" } }, "crisis" { "constant fee" { "denom" "hcoin", "amount" "1000" } }, "staking" { "params" { "unbonding time" "1814400000000000", "max validators" 100, "max entries" 7, "historical entries" 0, "bond denom" "hcoin" }, "last total power" "0", "last validator powers" null, "validators" null, "delegations" null, "unbonding delegations" null, "redelegations" null, "exported" false }, "bank" { "send enabled" true }, "slashing" { "params" { "signed blocks window" "100", "min signed per window" "0 500000000000000000", "downtime jail duration" "600000000000", "slash fraction double sign" "0 050000000000000000", "slash fraction downtime" "0 010000000000000000" }, "signing infos" {}, "missed blocks" {} }, "supply" { "supply" \[] }, "params" null, "auth" { "params" { "max memo characters" "256", "tx sig limit" "7", "tx size cost per byte" "10", "sig verify cost ed25519" "590", "sig verify cost secp256k1" "1000" }, "accounts" \[ { "type" "hashrs/mainaccount", "value" { "name" "", "address" "hashrs17c9yw9hd40wpg7wfkftznzdfeggxqc762ueavn", "sub addresses" null, "coins" \[ { "denom" "coin0", "amount" "1000000000000000000" }, { "denom" "coin1", "amount" "1000000000000000000" }, { "denom" "coin2", "amount" "1000000000000000000" }, { "denom" "coin3", "amount" "1000000000000000000" }, { "denom" "coin4", "amount" "1000000000000000000" }, { "denom" "hcoin", "amount" "100000000000000000000000000" } ], "public key" null, "account number" 0, "sequence" 0, "code hash" "", "ethaddress" "0xf60a4716edabdc1479c9b2562989a9ca106063da" } } ] }, "punishment" {}, "distribution" { "params" { "community tax" "0 020000000000000000", "base proposer reward" "0 010000000000000000", "bonus proposer reward" "0 040000000000000000", "withdraw addr enabled" true }, "fee pool" { "community pool" \[] }, "delegator withdraw infos" \[], "previous proposer" "", "outstanding rewards" \[], "validator accumulated commissions" \[], "validator historical rewards" \[], "validator current rewards" \[], "delegator starting infos" \[], "validator slash events" \[] }, "iam" {}, "genutil" { "gentxs" \[ { "type" "cosmos sdk/stdtx", "value" { "msg" \[ { "type" "cosmos sdk/msgcreatevalidator", "value" { "description" { "moniker" "localtestnet", "identity" "", "website" "", "security contact" "", "details" "" }, "commission" { "rate" "0 100000000000000000", "max rate" "0 200000000000000000", "max change rate" "0 010000000000000000" }, "min self delegation" "1", "delegator address" "hashrs17c9yw9hd40wpg7wfkftznzdfeggxqc762ueavn", "validator address" "hashrsvaloper17c9yw9hd40wpg7wfkftznzdfeggxqc76xf2ukt", "pubkey" "hashrsvalconspub1mznpzapq8f8sarrjv82ukreyr8xftzt7he6syf5z65v20enxd4gej6kll2tqn0ppyx", "value" { "denom" "hcoin", "amount" "1000000" } } } ], "fee" { "amount" \[], "gas" "200000" }, "signatures" \[ { "pub key" { "type" "crypto/pubkeysecp256k1", "value" "bgermzsmguwoz5fjcela5xb55l2tqo0khdryfbsosoe5j7euicrnybv7n9ugepdn2nkdtw1lfrs40mcbnfwa8vs=" }, "signature" "yicedxybbp8mjzij+oeuv3bsjdbcuama2wauaalfl7tvtnlg3icchvs6b7bxlbcht+bcnuxdvwc2zj0pyjnfawa=" } ], "memo" "a49ddadcbb379ddb81daf94708e3f4271ccbe715\@192 168 16 14 26656" } } ] }, "evm" { "accounts" \[] } } } } } health query node health status parameter no return value return a json object, the structure is as follows: jsonrpc:jsonrpc version, fixed as "2 0" id:id number of api request result result object sample code request: curl x get 'https //rpc block caduceus global/health' reponse: { "jsonrpc" "2 0", "id" 1, "result" {} } net info query node network status parameter no return value return a json object, the structure is as follows: jsonrpc:jsonrpc version, fixed as "2 0" id:id number of api request result:result listening whether the node is in the listening state listeners node monitoring address array n peers number of peer nodes peers peer node array sample code request: curl x get 'https //rpc block caduceus global/net info' response: { "jsonrpc" "2 0", "id" 1, "result" { "listening" true, "listeners" \[ "listener(@)" ], "n peers" "4", "peers" \[ { "node info" { "protocol version" { "p2p" "0", "block" "0", "app" "0" }, "id" "e20590ab7c8e4abb202e800a81d93c41c608cc9b", "listen addr" "tcp\ //0 0 0 0 26656", "network" "12069001", "version" "0 0 3", "channels" "4020213000", "moniker" "cmp testnet", "other" { "tx index" "on", "rpc address" "tcp\ //0 0 0 0" } }, "is outbound" false, "connection status" { "duration" "1684414280936", "sendmonitor" { "start" "2020 12 10t02 22 15 58z", "bytes" "120258", "samples" "585", "instrate" "197", "currate" "157", "avgrate" "71", "peakrate" "409", "bytesrem" "0", "duration" "1684420000000", "idle" "1520000000", "timerem" "0", "progress" 0, "active" true }, "recvmonitor" { "start" "2020 12 10t02 22 15 58z", "bytes" "131788", "samples" "576", "instrate" "0", "currate" "5", "avgrate" "78", "peakrate" "70100", "bytesrem" "0", "duration" "1684420000000", "idle" "3960000000", "timerem" "0", "progress" 0, "active" true }, "channels" \[ { "id" 48, "sendqueuecapacity" "1", "sendqueuesize" "0", "priority" "5", "recentlysent" "0" }, { "id" 32, "sendqueuecapacity" "100", "sendqueuesize" "0", "priority" "5", "recentlysent" "661" }, { "id" 33, "sendqueuecapacity" "100", "sendqueuesize" "0", "priority" "5", "recentlysent" "0" }, { "id" 64, "sendqueuecapacity" "1000", "sendqueuesize" "0", "priority" "10", "recentlysent" "0" }, { "id" 0, "sendqueuecapacity" "10", "sendqueuesize" "0", "priority" "1", "recentlysent" "1" } ] }, "remote ip" "18 166 131 97" }, { "node info" { "protocol version" { "p2p" "0", "block" "0", "app" "0" }, "id" "3d1de247b1c96e62e607ca4d713fa2da8e7381ec", "listen addr" "tcp\ //0 0 0 0 26656", "network" "12069001", "version" "0 0 3", "channels" "4020213000", "moniker" "cmp testnet", "other" { "tx index" "on", "rpc address" "tcp\ //0 0 0 0" } }, "is outbound" false, "connection status" { "duration" "1154122363854", "sendmonitor" { "start" "2020 12 10t02 31 05 88z", "bytes" "91292", "samples" "411", "instrate" "197", "currate" "157", "avgrate" "79", "peakrate" "2875", "bytesrem" "0", "duration" "1154120000000", "idle" "1520000000", "timerem" "0", "progress" 0, "active" true }, "recvmonitor" { "start" "2020 12 10t02 31 05 88z", "bytes" "90423", "samples" "420", "instrate" "0", "currate" "53", "avgrate" "78", "peakrate" "3450", "bytesrem" "0", "duration" "1154120000000", "idle" "400000000", "timerem" "0", "progress" 0, "active" true }, "channels" \[ { "id" 48, "sendqueuecapacity" "1", "sendqueuesize" "0", "priority" "5", "recentlysent" "0" }, { "id" 32, "sendqueuecapacity" "100", "sendqueuesize" "0", "priority" "5", "recentlysent" "661" }, { "id" 33, "sendqueuecapacity" "100", "sendqueuesize" "0", "priority" "5", "recentlysent" "0" }, { "id" 64, "sendqueuecapacity" "1000", "sendqueuesize" "0", "priority" "10", "recentlysent" "0" }, { "id" 0, "sendqueuecapacity" "10", "sendqueuesize" "0", "priority" "1", "recentlysent" "56" } ] }, "remote ip" "18 162 72 189" }, { "node info" { "protocol version" { "p2p" "0", "block" "0", "app" "0" }, "id" "f909b49af1cfdfe52c959611306dd0f556fc39e1", "listen addr" "tcp\ //0 0 0 0 26656", "network" "12069001", "version" "0 0 3", "channels" "4020213000", "moniker" "cmp testnet", "other" { "tx index" "on", "rpc address" "tcp\ //0 0 0 0" } }, "is outbound" false, "connection status" { "duration" "1006953903886", "sendmonitor" { "start" "2020 12 10t02 33 33 04z", "bytes" "81034", "samples" "387", "instrate" "197", "currate" "170", "avgrate" "80", "peakrate" "1741", "bytesrem" "0", "duration" "1006960000000", "idle" "1520000000", "timerem" "0", "progress" 0, "active" true }, "recvmonitor" { "start" "2020 12 10t02 33 33 04z", "bytes" "3332", "samples" "135", "instrate" "0", "currate" "0", "avgrate" "3", "peakrate" "239", "bytesrem" "0", "duration" "1006960000000", "idle" "46740000000", "timerem" "0", "progress" 0, "active" true }, "channels" \[ { "id" 48, "sendqueuecapacity" "1", "sendqueuesize" "0", "priority" "5", "recentlysent" "0" }, { "id" 32, "sendqueuecapacity" "100", "sendqueuesize" "0", "priority" "5", "recentlysent" "661" }, { "id" 33, "sendqueuecapacity" "100", "sendqueuesize" "0", "priority" "5", "recentlysent" "0" }, { "id" 64, "sendqueuecapacity" "1000", "sendqueuesize" "0", "priority" "10", "recentlysent" "0" }, { "id" 0, "sendqueuecapacity" "10", "sendqueuesize" "0", "priority" "1", "recentlysent" "0" } ] }, "remote ip" "18 135 71 175" }, { "node info" { "protocol version" { "p2p" "0", "block" "0", "app" "0" }, "id" "e942087a716d00f403f068b4358a9a507eacec59", "listen addr" "tcp\ //0 0 0 0 26656", "network" "12069001", "version" "0 0 3", "channels" "4020213000", "moniker" "cmp testnet", "other" { "tx index" "on", "rpc address" "tcp\ //0 0 0 0" } }, "is outbound" false, "connection status" { "duration" "896148335229", "sendmonitor" { "start" "2020 12 10t02 35 23 86z", "bytes" "422792694", "samples" "2222", "instrate" "197", "currate" "170", "avgrate" "471793", "peakrate" "5213250", "bytesrem" "0", "duration" "896140000000", "idle" "1520000000", "timerem" "0", "progress" 0, "active" true }, "recvmonitor" { "start" "2020 12 10t02 35 23 86z", "bytes" "282348", "samples" "2120", "instrate" "0", "currate" "62", "avgrate" "315", "peakrate" "4710", "bytesrem" "0", "duration" "896140000000", "idle" "200000000", "timerem" "0", "progress" 0, "active" true }, "channels" \[ { "id" 48, "sendqueuecapacity" "1", "sendqueuesize" "0", "priority" "5", "recentlysent" "0" }, { "id" 32, "sendqueuecapacity" "100", "sendqueuesize" "0", "priority" "5", "recentlysent" "661" }, { "id" 33, "sendqueuecapacity" "100", "sendqueuesize" "0", "priority" "5", "recentlysent" "0" }, { "id" 64, "sendqueuecapacity" "1000", "sendqueuesize" "0", "priority" "10", "recentlysent" "0" }, { "id" 0, "sendqueuecapacity" "10", "sendqueuesize" "0", "priority" "1", "recentlysent" "17" } ] }, "remote ip" "18 162 204 60" } ] } } num unconfirmed txs check unconfirmed transactions parameter no return value return a json object, the structure is as follows: jsonrpc:jsonrpc version, fixed as "2 0" id:id number of api request result:result n txs number of unconfirmed transactions txs unconfirmed transaction array sample code request: curl x get 'https //rpc block caduceus global/num unconfirmed txs' response: { "jsonrpc" "2 0", "id" 1, "result" { "n txs" "0", "txs" null } } status query chain status parameter no return value return a json object, the structure is as follows: jsonrpc:jsonrpc version, fixed as "2 0" id:id number of api request result node info node information sync info synchronization information validator info verify node information sample code request: curl x get 'https //rpc block caduceus global/status' response: { "jsonrpc" "2 0", "id" 1, "result" { "node info" { "protocol version" { "p2p" "0", "block" "0", "app" "0" }, "id" "bd8034e832a2afe6ab171b593de1fcccaab679f0", "listen addr" "tcp\ //0 0 0 0 26656", "network" "12069001", "version" "0 0 3", "channels" "4020213000", "moniker" "cmp testnet", "other" { "tx index" "on", "rpc address" "tcp\ //0 0 0 0" } }, "sync info" { "latest block hash" "733c0244d2332c1afa876acfbe9266785aeddb975d36c6d0ca24e8a19073c14b", "latest app hash" "9160f38a3a9c3ff2738f72bba4d5eebf09fa092417b9cdfad537ff01d131ab54", "latest block height" "22451", "catching up" false }, "validator info" { "address" "d77697ac1be24338f668774c94cdd86c18956820", "pub key" { "type" "hashrs/pubkeyed25519", "value" "0sghweenk8jyahwlrjmsm4urfia+ldl7c1cgle4lbni=" }, "voting power" "5" } } } tx get specified transaction parameter hash transaction hash, byte array return value return a json object, the structure is as follows: jsonrpc:jsonrpc version, fixed as "2 0" id:id number of api request result result object hash hash height block height index index tx result the result of the transaction code 0 data "" log log output info information gaswanted the amount of gas that needs to be consumed gasused gas used events event set codespace "" tx sample code request: curl x get 'https //rpc block caduceus global/tx? response: { "jsonrpc" "2 0", "id" 1, "result" { "hash" "733f9ab3683b63ccd0ec0d6f990cfbea33c8bc414837bfecf462085122bb84e7", "height" "47456", "index" 0, "tx result" { "code" 0, "data" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "log" "\[{\\"msg index\\" 0,\\"log\\" \\"\\",\\"events\\" \[{\\"type\\" \\"message\\",\\"attributes\\" \[{\\"key\\" \\"action\\",\\"value\\" \\"ethereum\\"}]}]}]", "info" "", "gaswanted" "65536", "gasused" "0", "events" \[ { "type" "message", "attributes" \[ { "key" "ywn0aw9u", "value" "zxrozxjldw0=" } ] } ], "codespace" "" }, "tx" "5ae/0qlyct0b63opiagfegoyndqxnda2mjuwgicabciux54v9b/me1u+pqqvh66ivk01wbqqcjg1odk5mzq1oti6bte3odexqk03mje4mzkxnzmyntc2ode2odayndk5mjaxmty1ndc4odqwote2ndc0mjcznjqyndm2mzmyotg5ndqwmze0mtq0mtczmda1mzqymja2n0pnmtm3otq4otuxnze3mtuyodu3nzkzmtgzmzu5nzg1mtuwmdk4njuwotiwota1otq0ndu2mjewnduxmjazodc0ndk4mde3mji3mjc1ndm=" } } unconfirmed txs get unconfirmed transactions parameter no return value return a json object, the structure is as follows: jsonrpc:jsonrpc version, fixed as "2 0" id:id number of api request result result object n txs number of unconfirmed transactions txs unconfirmed transaction array sample code request: curl x get 'https //rpc block caduceus global/unconfirmed txs' response: { "jsonrpc" "2 0", "id" 1, "result" { "n txs" "0", "txs" \[] } } validators return to the verification node set parameter no return value return a json object, the structure is as follows: jsonrpc:jsonrpc version, fixed as "2 0" id:id number of api request result result object block height block height validators verifier address verifier address pub key verifier public key type signature algorithm value public key voting power voting rights proposer priority applicant's priority sample code request: curl x get 'https //rpc block caduceus global/validators' response: { "jsonrpc" "2 0", "id" 1, "result" { "block height" "22452", "validators" \[ { "address" "3013a65bb0718e92cd3173a34daa157b29ab61d6", "pub key" { "type" "hashrs/pubkeyed25519", "value" "2420bfs/vr8gct4w8pv+huwzwevpikz5tcsrsnka9ws=" }, "voting power" "5", "proposer priority" " 20" }, { "address" "36ab19c745cf40ee79ee3b291a1f2b0df7e4e83d", "pub key" { "type" "hashrs/pubkeyed25519", "value" "/ijcjw1fgbbiqmc8oxx2dmgswqf+fze4l5epfpyjehu=" }, "voting power" "5", "proposer priority" "5" }, { "address" "bb7a5fc01e9656428630c1a1bdc44c8bc562bbee", "pub key" { "type" "hashrs/pubkeyed25519", "value" "uquswmuhr6u2lmfhk6qijwtkfqhqcffcvxwjrvt1/fa=" }, "voting power" "5", "proposer priority" "5" }, { "address" "bcfe0b4f60a86b620c99725e0348703c9982e63a", "pub key" { "type" "hashrs/pubkeyed25519", "value" "wgt0hojb0tkye/jc5yib1af0np5+rrl1vgegxevdmug=" }, "voting power" "5", "proposer priority" "5" }, { "address" "d77697ac1be24338f668774c94cdd86c18956820", "pub key" { "type" "hashrs/pubkeyed25519", "value" "0sghweenk8jyahwlrjmsm4urfia+ldl7c1cgle4lbni=" }, "voting power" "5", "proposer priority" "5" } ] } } node info query node data parameter no return value return a json object, the structure is as follows: jsonrpc:jsonrpc version, fixed as "2 0" id:id number of api request result result object node info protocol version protocol version number p2p p2p protocol version number block protocol version number of block app protocol version number of app id node id listen addr tcp listening address and port network network number version node version channels channel data moniker monitor the network other tx index on is to open tx index, off is to close rpc address rpc's ip and listening port application version app version name application name server name name of server client name client name version version number commit submission number go go version and operating platform sample code request: curl x get 'https //rpc block caduceus global/node info' response: { "node info" { "protocol version" { "p2p" "0", "block" "0", "app" "0" }, "id" "a49ddadcbb379ddb81daf94708e3f4271ccbe715", "listen addr" "tcp\ //0 0 0 0 26656", "network" "8888", "version" "0 0 1", "channels" "4020213000", "moniker" "localtestnet", "other" { "tx index" "on", "rpc address" "tcp\ //127 0 0 1" } }, "application version" { "name" "hashrs", "server name" "hashrsd", "client name" "hashrscli", "version" "v0 0 2", "commit" "c1c1b89", "go" "go version go1 15 4 linux/amd64" } } syncing check syncing status parameter no return value return a json object, the structure is as follows: syncing synchronization is true, asynchronous is false sample code request: curl x get 'https //rpc block caduceus global/syncing' response: { "syncing" false } blocks/latest query the highest block information parameter no return value return a json object, the structure is as follows: block hash block hash block block information header block header version block version block the version number of the block app app version number chain id id number of the chain height block height round received receive round last block id previous block hash block hash timestamp time validators hash validator hash next validators hash next validator hash consensus hash consensus hash last results hash the result of the previous hash frame hash hash in consensus state txs hash txs hash app hash app hash receipts hash receiver's hash txs transaction set receipts\ recipient validator verifier event cnt number of events tx cnt tx number signatures signature information validator verifier sig signature information sample code request: curl x get 'https //rpc block caduceus global/blocks/latest' response: { "block hash" "a05f9aef6dd73f8b8dc750b2d2ccd10dd82621c9af4a740a3e7d5e0b658a40c1", "block" { "header" { "version" { "block" "0", "app" "0" }, "chain id" "8888", "height" "1348", "round received" "1348", "last block id" { "hash" "f6c03249ce929efb423f693aabd4fce28b61bc362595fb7b47f844f9d6ff0ddf" }, "timestamp" "2020 12 08t03 55 31 365856z", "validators hash" "ca2a8986346fe3916c7990aef0d5ef17d71b05cb6eacd99ca04d181e27b53b34", "next validators hash" "8b3f76a7073de568b8a29d5be6651e0bdfc353dbfe45d6004221e4678ca23842", "consensus hash" "fe28d47cacd2c1933202e7921aa39830fe1ff73553af679104fa60d921d5abc1", "last results hash" "", "frame hash" "ff413ee1b049b092378ce89bde4ca24fd0e336ac5a62510caad89d69758853ff", "txs hash" "", "app hash" "c361a268a15f4eb4181dd3c6d65950f5a32de14b580569e3ad13218da8d3b443", "receipts hash" "ad59a91dc7a762d4d7567afc504ff69842ab4cf33abab4157aced758a43a2a7c" }, "txs" null, "receipts" \[ { "validator" "d8a61174203a4f0e8c7261d5cb0f2419cc95897ebe75022682d518a7e6666d51996adffa96", "event cnt" "1", "tx cnt" "0" } ], "signatures" \[ { "validator" "d8a61174203a4f0e8c7261d5cb0f2419cc95897ebe75022682d518a7e6666d51996adffa96", "sig" "300e63583d8379ed348b61922b7fc041b5be05d33fcdc65e169009040c362eef3ba3ba0b4c730b9a01417ee6c746d7417b1a842c3eb3831d10f94aa8fd876d05" } ] } } blocks query specified block height information parameter height the height of the block to be queried, int64, optional, default value 0, which means the latest block return value return a json object, the structure is as follows: block hash block hash block block information header block header version block version block the version number of the block app app version number chain id id number of the chain height block height round received receive round last block id previous block hash block hash timestamp time validators hash validator hash next validators hash next validator hash consensus hash consensus hash last results hash the result of the previous hash frame hash hash in consensus state txs hash txs hash app hash app hash receipts hash receiver's hash txs transaction set receipts\ recipient validator verifier event cnt number of events tx cnt tx number signatures signature information validator verifier sig signature information sample code request: curl x get 'https //rpc block caduceus global/blocks/535' response: { "block hash" "434924d5913fdd3128ebb5dc06c734362da5732013a1b4feaaed006a59c4d448", "block" { "header" { "version" { "block" "0", "app" "0" }, "chain id" "8888", "height" "535", "round received" "535", "last block id" { "hash" "108e63172f269b949f24ce0b2f0049c1ff8c498e6c892d3af2b9f373cc29ecd8" }, "timestamp" "2020 12 08t03 41 44 172665z", "validators hash" "ca2a8986346fe3916c7990aef0d5ef17d71b05cb6eacd99ca04d181e27b53b34", "next validators hash" "8b3f76a7073de568b8a29d5be6651e0bdfc353dbfe45d6004221e4678ca23842", "consensus hash" "fe28d47cacd2c1933202e7921aa39830fe1ff73553af679104fa60d921d5abc1", "last results hash" "", "frame hash" "259d3f3931fd02402114332fa9c29e6ca6d6ae44c24abb4add0361220c6c2b6e", "txs hash" "ce3231e349a6ed970b2a7fff17a04aeb73451cd1364d3e114511fcf4cad734b8", "app hash" "3237acb2eff9b6313f04269bb1feabb22c9f807bef91e66b5f1d1d137bbd5747", "receipts hash" "7fc6ba370eeac4b56679ced85f1939fe9b5493ea563e0b183a727a32481e4cc8" }, "txs" \[ "gay/0qlycvkf63opiagbegoyndqxnda2mjuwgicaqcobmdk4bgbgyebsnbvhaa9xyaca/vtbyqtsyacbkfvqyryuyafgadnz//////////////////////////8wc///////////////////////////fofsycabkifsycabyaaggzbvuftbyqhiggeacgaaowaa8wbgygbaumaanxwbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaajaey/////8wggnvvrzpfgeavfeay4u7lskuyqb9v4bjvn/g1rrhakbxw2aagp1bnbvhaf9xyaca/vthagdhas9ww2bauyccgvjgiagrufbgqfgakqoq81s0fweaifdgaid9w2eanmaegia1kgagazcrkfbqyqe5vlsawzqvyqcrv2aagp1byqczyqfevltgqfgaggagaykba4jsg4gbuyfsycabkvcauzbgiagqgiodyabbg4eqfwea9feaggfrgyqbultgiiebkfbhanhww1bqufcqujcbazbghxaafwebiveaggoauwabg2aga2ebaaodgrabumagazfqw1csufbqyebrgjedkpnbyacavjbqw5bww4bgaigqvvbbufzbyqfmyqgivltgqibrkiebyebsggafgvjgiaf/sgvsbg8aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacbulcqufuqvltgigbauzcbawbauobgaifsujbwakflynp6cjbyilebr3bz2ywxqokugcsi9knqjby57upfcbjwgchmyryback6bte3odexqk05mju2mtgxmtm0ndq4ntg2ntmwmdmwotuynjeyntqxotywotaynji3mzi3nju1nju0mzi1mdk2njaznzkyotawmtcwmji2otk3mtu1mkpnmtexmdk5ndk5nzaymje4mju3odc4nzi2ndiyndyzmza2oduwmtaxmjyyntgwnzcymzi5mtq1njazoty4mja2mjkwmdk0mdgwmjawntu=" ], "receipts" \[ { "validator" "d8a61174203a4f0e8c7261d5cb0f2419cc95897ebe75022682d518a7e6666d51996adffa96", "event cnt" "1", "tx cnt" "1" } ], "signatures" \[ { "validator" "d8a61174203a4f0e8c7261d5cb0f2419cc95897ebe75022682d518a7e6666d51996adffa96", "sig" "2655b8593d7b06f674d8ba1a3ca822ee46f55a66fef1c36f64ef3603f700495b3ef9bebc7d7613dd40f1aa86b395cd83432a88691d8275964feea5c3cc93450b" } ] } } validatorsets/latest query the verifier information of the highest block parameter no return value return a json object, the structure is as follows: height block height result result block height "1732", validators verifier information address verifier address pub key verifier public key proposer priority applicant's priority voting power voting rights sample code request: curl x get 'https //rpc block caduceus global/validatorsets/latest' response: { "height" "0", "result" { "block height" "1732", "validators" \[ { "address" "hashrsvalcons1khfvk89sk94mgugwkv3v6yjv6m3l2k9mca4w5e", "pub key" "hashrsvalconspub1mznpzapq8f8sarrjv82ukreyr8xftzt7he6syf5z65v20enxd4gej6kll2tqn0ppyx", "proposer priority" "0", "voting power" "1" } ] } } validatorsets query the verifier information of the specified block height parameter height the height of the block to be queried, int64, optional, default value 0, which means the latest block return value return a json object, the structure is as follows: height block height result result block height "1732", validators verifier information address verifier address pub key verifier public key proposer priority applicant's priority voting power voting rights sample code request: curl x get 'https //rpc block caduceus global/validatorsets height/535' response: { "height" "0", "result" { "block height" "535", "validators" \[ { "address" "hashrsvalcons1khfvk89sk94mgugwkv3v6yjv6m3l2k9mca4w5e", "pub key" "hashrsvalconspub1mznpzapq8f8sarrjv82ukreyr8xftzt7he6syf5z65v20enxd4gej6kll2tqn0ppyx", "proposer priority" "0", "voting power" "1" } ] } }