Informational JSON-RPC Methods

chain_get_block

This method returns the JSON representation of a Block from the network.

Method: POST

https://casper.nownodes.io/rpc

Example body (raw)


{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "chain_get_block",
  "params": [
    {
      "Hash": "13c2d7a68ecdd4b74bf4393c88915c836c863fc4bf11d7f2bd930a1bbccacdcb"
    }
  ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32001,
        "message": "No such block",
        "data": {
            "message": "block 13c2d7a68ecdd4b74bf4393c88915c836c863fc4bf11d7f2bd930a1bbccacdcb not stored on this node",
            "available_block_range": {
                "low": 2416846,
                "high": 2780145
            }
        }
    }
}

chain_get_block_transfers

This method returns all successful native transfers within a given Block from a network.

Method: POST

https://casper.nownodes.io/rpc

Example body (raw)

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "chain_get_block_transfers",
  "params": [
    {
      "Hash": "13c2d7a68ecdd4b74bf4393c88915c836c863fc4bf11d7f2bd930a1bbccacdcb"
    }
  ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32001,
        "message": "No such block",
        "data": {
            "message": "block 13c2d7a68ecdd4b74bf4393c88915c836c863fc4bf11d7f2bd930a1bbccacdcb not stored on this node",
            "available_block_range": {
                "low": 2753016,
                "high": 2780149
            }
        }
    }
}

chain_get_era_summaryโ€‹

This method returns the era summary at a given Block. If you do not specify a block_identifier, you will receive the era summary at the highest state root hash.

Method: POST

https://casper.nownodes.io/rpc

Example body (raw)

{
  "id": 1,
  "jsonrpc":"2.0",
  "method":"chain_get_era_summary",
  "params": [
    {
      "Hash":"9bfa58709058935882a095ca6adf844b72a2ddf0f49b8575ef1ceda987452fb8"
    }
  ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32001,
        "message": "No such block",
        "data": {
            "message": "block 9bfa58709058935882a095ca6adf844b72a2ddf0f49b8575ef1ceda987452fb8 not stored on this node",
            "available_block_range": {
                "low": 2416846,
                "high": 2780153
            }
        }
    }
}

chain_get_state_root_hash

This method returns a state root hash at a given Block. If you do not specify a block_identifier, you will receive the highest state root hash.

Method: POST

https://casper.nownodes.io/rpc

Example body (raw)

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "chain_get_state_root_hash",
  "params": [
    {
      "Height": 10
    }
  ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32001,
        "message": "No such block",
        "data": {
            "message": "block at height 10 not stored on this node",
            "available_block_range": {
                "low": 2753016,
                "high": 2780201
            }
        }
    }
}

info_get_chainspec

This method returns raw bytes for chainspec files.

Method: POST

https://casper.nownodes.io/rpc

Example body (raw)

{
  "jsonrpc": "2.0",
  "method": "info_get_chainspec",
  "id": 5510244237763930243
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 5510244237763930000,
    "result": {
        "api_version": "1.5.6",
        "chainspec_bytes": {
            "chainspec_bytes": "5b70726f746f636f6c5d0a232050726f746f636f6c2076657273696f6e2e0a76657273696f6e203d2027312e352e36270a232057686574686572207765206e65656420746f20636c656172206c617465737420626c6f636b73206261636b20746f207468652073776974636820626c6f636b206a757374206265666f7265207468652061637469766174696f6e20706f696e74206f72206e6f742e0a686172645f7265736574203d20747275650a2320546869732070726f746f636f6c2076657273696f6e206265636f6d657320616374697665206174207468697320706f696e742e0a230a2320496620697420697320612074696d657374616d7020737472696e672c20697420726570726573656e7473207468652074696d657374616d7020666f72207468652067656e6573697320626c6f636b2e2020546869732069732074686520626567696e6e696e67206f662065726120302e202042790a2320746869732074696d652c20612073756666696369656e74206d616a6f7269747920283e20353025202b20462f3220e28094207365652066696e616c6974795f7468726573686f6c645f6672616374696f6e2062656c6f7729206f662076616c696461746f72206e6f646573206d7573742062652075700a2320616e642072756e6e696e6720746f2073746172742074686520626c6f636b636861696e2e2020546869732074696d657374616d7020697320616c736f207573656420696e2073656564696e67207468652070736575646f2d72616e646f6d206e756d6265722067656e657261746f7220757365640a2320696e20636f6e74726163742d72756e74696d6520666f7220636f6d707574696e672067656e6573697320706f73742d737461746520686173682e0a230a2320496620697420697320616e20696e74656765722c20697420726570726573656e747320616e206572612049442c206d65616e696e67207468652070726f746f636f6c2076657273696f6e206265636f6d65732061637469766520617420746865207374617274206f662074686973206572612e0a61637469766174696f6e5f706f696e74203d2031323530390a0a5b6e6574776f726b5d0a232048756d616e207265616461626c65206e616d6520666f7220636f6e76656e69656e63653b207468652067656e657369735f68617368206973207468652074727565206964656e7469666965722e2020546865206e616d6520696e666c75656e636573207468652067656e6573697320686173682062790a2320636f6e747269627574696e6720746f207468652073656564696e67206f66207468652070736575646f2d72616e646f6d206e756d6265722067656e657261746f72207573656420696e20636f6e74726163742d72756e74696d6520666f7220636f6d707574696e672067656e657369730a2320706f73742d737461746520686173682e0a6e616d65203d2027636173706572270a2320546865206d6178696d756d2073697a65206f6620616e2061636365707461626c65206e6574776f726b696e67206d65737361676520696e2062797465732e2020416e79206d657373616765206c6172676572207468616e20746869732077696c6c0a232062652072656a656374656420617420746865206e6574776f726b696e67206c6576656c2e0a6d6178696d756d5f6e65745f6d6573736167655f73697a65203d2032355f3136355f3832340a0a5b636f72655d0a2320457261206475726174696f6e2e0a6572615f6475726174696f6e203d2027313230206d696e75746573270a23204d696e696d756d206e756d626572206f6620626c6f636b7320706572206572612e2020416e206572612077696c6c2074616b65206c6f6e676572207468616e20606572615f6475726174696f6e602069662074686174206973206e656365737361727920746f207265616368207468650a23206d696e696d756d206865696768742e0a6d696e696d756d5f6572615f686569676874203d2032300a23204d696e696d756d20646966666572656e6365206265747765656e206120626c6f636b277320616e6420697473206368696c6427732074696d657374616d702e0a6d696e696d756d5f626c6f636b5f74696d65203d20273136333834206d73270a23204e756d626572206f6620736c6f747320617661696c61626c6520696e2076616c696461746f722061756374696f6e2e0a76616c696461746f725f736c6f7473203d203130300a232041206e756d626572206265747765656e203020616e64203120726570726573656e74696e6720746865206661756c7420746f6c6572616e6365207468726573686f6c642061732061206672616374696f6e2c20757365642062792074686520696e7465726e616c2066696e616c697a65722e0a2320497420697320746865206672616374696f6e206f662076616c696461746f7273207468617420776f756c64206e65656420746f2065717569766f6361746520746f206d616b652074776f20686f6e657374206e6f646573207365652074776f20636f6e666c696374696e6720626c6f636b732061730a232066696e616c697a65643a2041206869676865722076616c75652046206d616b657320697420736166657220746f2072656c79206f6e2066696e616c697a656420626c6f636b732e2020497420616c736f206d616b6573206974206d6f726520646966666963756c7420746f2066696e616c697a650a2320626c6f636b732c20686f77657665722c20616e64207265717569726573207374726963746c79206d6f7265207468616e202846202b2031292f322076616c696461746f727320746f20626520776f726b696e6720636f72726563746c792e0a66696e616c6974795f7468726573686f6c645f6672616374696f6e203d205b312c20335d0a232050726f746f636f6c2076657273696f6e2066726f6d207768696368206e6f6465732061726520726571756972656420746f20686f6c64207374726963742066696e616c697479207369676e6174757265732e0a73746172745f70726f746f636f6c5f76657273696f6e5f776974685f7374726963745f66696e616c6974795f7369676e6174757265735f7265717569726564203d2027312e352e30270a232057686963682066696e616c69747920697320726571756972656420666f72206c656761637920626c6f636b732e204f7074696f6e73206172652027537472696374272c20275765616b2720616e642027416e79272e0a23205573656420746f2064657465726d696e652066696e616c6974792073756666696369656e637920666f72206e6577206a6f696e6572732073796e63696e6720626c6f636b7320637265617465640a2320696e20612070726f746f636f6c2076657273696f6e206265666f72650a23206073746172745f70726f746f636f6c5f76657273696f6e5f776974685f7374726963745f66696e616c6974795f7369676e6174757265735f7265717569726564602e0a6c65676163795f72657175697265645f66696e616c697479203d2027416e79270a23204e756d626572206f662065726173206265666f726520616e2061756374696f6e2061637475616c6c7920646566696e65732074686520736574206f662076616c696461746f72732e2020496620796f7520626f6e64207769746820612073756666696369656e742062696420696e20657261204e2c0a2320796f752077696c6c20626520612076616c696461746f7220696e20657261204e202b2061756374696f6e5f64656c6179202b20312e0a61756374696f6e5f64656c6179203d20310a232054686520706572696f642061667465722067656e6573697320647572696e6720776869636820612067656e657369732076616c696461746f72277320626964206973206c6f636b65642e0a6c6f636b65645f66756e64735f706572696f64203d2027302064617973270a232054686520706572696f6420696e2077686963682067656e657369732076616c696461746f722773206269642069732072656c6561736564206f7665722074696d65206166746572206974277320756e6c6f636b65642e0a76657374696e675f7363686564756c655f706572696f64203d202730207765656b73270a232044656661756c74206e756d626572206f6620657261732074686174206e65656420746f207061737320746f2062652061626c6520746f20776974686472617720756e626f6e6465642066756e64732e0a756e626f6e64696e675f64656c6179203d20370a2320526f756e6420736569676e696f72616765207261746520726570726573656e7465642061732061206672616374696f6e206f662074686520746f74616c20737570706c792e0a230a2320416e6e75616c2069737375616e63653a2038250a23204d696e696d756d20626c6f636b2074696d653a20325e3134206d696c6c697365636f6e64730a23205469636b732070657220796561723a2033313533363030303030300a230a232028312b302e3038295e2828325e3134292f3331353336303030303030292d31206973206578707265737365642061732061206672616374696f6e616c206e756d6265722062656c6f770a2320507974686f6e3a0a232066726f6d206672616374696f6e7320696d706f7274204672616374696f6e0a23204672616374696f6e282831202b20302e3038292a2a2828322a2a3134292f333135333630303030303029202d2031292e6c696d69745f64656e6f6d696e61746f722831303030303030303030290a726f756e645f736569676e696f726167655f72617465203d205b372c203137353037303831365d0a23204d6178696d756d206e756d626572206f66206173736f636961746564206b65797320666f7220612073696e676c65206163636f756e742e0a6d61785f6173736f6369617465645f6b657973203d203130300a23204d6178696d756d20686569676874206f6620636f6e74726163742072756e74696d652063616c6c20737461636b2e0a6d61785f72756e74696d655f63616c6c5f737461636b5f686569676874203d2031320a23204d696e696d756d20616c6c6f7765642064656c65676174696f6e20616d6f756e7420696e206d6f7465730a6d696e696d756d5f64656c65676174696f6e5f616d6f756e74203d203530305f3030305f3030305f3030300a2320476c6f62616c207374617465207072756e652062617463682073697a65202830203d20746869732066656174757265206973206f6666290a7072756e655f62617463685f73697a65203d20300a2320456e61626c65732073747269637420617267756d656e747320636865636b696e67207768656e2063616c6c696e67206120636f6e74726163743b20692e652e207468617420616c6c206e6f6e2d6f7074696f6e616c2061726773206172652070726f766964656420616e64206f662074686520636f72726563742060434c54797065602e0a7374726963745f617267756d656e745f636865636b696e67203d2066616c73650a23204e756d626572206f662073696d756c74616e656f757320706565722072657175657374732e0a73696d756c74616e656f75735f706565725f7265717565737473203d20350a232054686520636f6e73656e7375732070726f746f636f6c20746f207573652e204f7074696f6e732061726520225a75672220616e64202248696768776179222e0a636f6e73656e7375735f70726f746f636f6c203d202748696768776179270a2320546865206d6178696d756d20616d6f756e74206f662064656c656761746f7273207065722076616c696461746f722e206966207468652076616c756520697320302c207468657265206973206e6f206d6178696d756d2063617061636974792e0a6d61785f64656c656761746f72735f7065725f76616c696461746f72203d20313230300a2320416c6c6f7773207065657220746f2070656572207472616e7366657273206265747765656e2075736572732e0a230a232053657474696e67207468697320746f2066616c7365206d616b65732073656e7365206f6e6c7920666f72207072697661746520636861696e732e0a616c6c6f775f756e726573747269637465645f7472616e7366657273203d20747275650a2320456e61626c6573207468652061756374696f6e20656e74727920706f696e7473202764656c65676174652720616e6420276164645f626964272e0a230a232053657474696e67207468697320746f2066616c7365206d616b65732073656e7365206f6e6c7920666f72207072697661746520636861696e7320776869636820646f6e2774206e65656420746f2061756374696f6e206e65772076616c696461746f7220736c6f74732e2054686573650a232061756374696f6e20656e74727920706f696e74732077696c6c2072657475726e20616e206572726f722069662063616c6c6564207768656e2074686973206f7074696f6e2069732073657420746f2066616c73652e0a616c6c6f775f61756374696f6e5f62696473203d20747275650a232049662073657420746f2066616c73652c207468656e20636f6e73656e73757320646f65736e277420636f6d70757465207265776172647320616e6420616c77617973207573657320302e0a636f6d707574655f72657761726473203d20747275650a2320446566696e657320686f7720726566756e6473206f662074686520756e7573656420706f7274696f6e206f66207061796d656e7420616d6f756e7473206172652063616c63756c6174656420616e642068616e646c65642e0a230a232056616c6964206f7074696f6e73206172653a0a2320202027726566756e64273a20746869732063617573657320657863657373207061796d656e7420616d6f756e747320746f2062652073656e7420746f206569746865722061207072652d646566696e65642070757273652c206f72206261636b20746f207468652073656e6465722e0a232020202020202020202020202074686520726566756e64656420616d6f756e742069732063616c63756c617465642061732074686520676976656e20726174696f206f6620746865207061796d656e7420616d6f756e74206d696e75732074686520657865637574696f6e20636f7374732e0a23202020276275726e273a2073696d696c617220746f207768617420726566756e6420646f65733b206578636570742074686520726566756e6420616d6f756e74206973206275726e65642e0a726566756e645f68616e646c696e67203d207b2074797065203d2027726566756e64272c20726566756e645f726174696f203d205b39392c203130305d207d0a2320446566696e657320686f772066656573206172652068616e646c65642e0a230a232056616c6964206f7074696f6e73206172653a0a23202020277061795f746f5f70726f706f736572273a206665657320617265207061696420746f2074686520626c6f636b2070726f706f7365720a2320202027616363756d756c617465273a20666565732061726520616363756d756c6174656420696e2061207370656369616c20707572736520616e642064697374726962757465642061742074686520656e64206f66206561636820657261206576656e6c7920616d6f6e6720616c6c0a23202020202020202020202020202020202061646d696e6973747261746f72206163636f756e74730a23202020276275726e273a206665657320617265206275726e65640a6665655f68616e646c696e67203d207b2074797065203d20277061795f746f5f70726f706f73657227207d0a23204c697374206f66207075626c6963206b657973206f662061646d696e6973747261746f72206163636f756e74732e2053657474696e672074686973206f7074696f6e206d616b6573206f6e6c79206f6e207072697661746520636861696e7320776869636820726571756972650a232061646d696e6973747261746f72206163636f756e747320666f7220726567756c61746f727920726561736f6e732e0a61646d696e6973747261746f7273203d205b5d0a0a5b686967687761795d0a2320486967687761792064796e616d6963616c6c792063686f6f7365732069747320726f756e64206c656e6774682c206265747765656e206d696e696d756d5f626c6f636b5f74696d6520616e64206d6178696d756d5f726f756e645f6c656e6774682e0a6d6178696d756d5f726f756e645f6c656e677468203d20273636207365636f6e6473270a232054686520666163746f72206279207768696368207265776172647320666f72206120726f756e6420617265206d756c7469706c696564206966207468652067726561746573742073756d6d69742068617320e289a43530252071756f72756d2c20692e652e206e6f2066696e616c6974792e0a23204578707265737365642061732061206672616374696f6e2028312f352062792064656661756c74292e0a726564756365645f7265776172645f6d756c7469706c696572203d205b312c20355d0a0a5b686967687761792e706572666f726d616e63655f6d657465725d0a2320546865206e756d626572206f6620726563656e7420626c6f636b7320746f20636f6e7369646572207768656e206d6561737572696e6720706572666f726d616e636520666f722074686520707572706f7365206f66206465636964696e672074686520726f756e64206c656e6774682e0a626c6f636b735f746f5f636f6e7369646572203d2031300a0a5b6465706c6f79735d0a2320546865206d6178696d756d206e756d626572206f66204d6f74657320616c6c6f77656420746f206265207370656e7420647572696e67207061796d656e742e202030206d65616e7320756e6c696d697465642e0a6d61785f7061796d656e745f636f7374203d202730270a2320546865206475726174696f6e20616674657220746865206465706c6f792074696d657374616d7020746861742069742063616e20626520696e636c7564656420696e206120626c6f636b2e0a6d61785f74746c203d20273220686f757273270a2320546865206d6178696d756d206e756d626572206f66206f74686572206465706c6f79732061206465706c6f792063616e20646570656e64206f6e20287265717569726520746f2068617665206265656e206578656375746564206265666f72652069742063616e2065786563757465292e0a6d61785f646570656e64656e63696573203d2031300a23204d6178696d756d20626c6f636b2073697a6520696e20627974657320696e636c7564696e67206465706c6f797320636f6e7461696e65642062792074686520626c6f636b2e202030206d65616e7320756e6c696d697465642e0a6d61785f626c6f636b5f73697a65203d20355f3234325f3838300a23204d6178696d756d206465706c6f792073697a6520696e2062797465732e202053697a65206973206f6620746865206465706c6f79207768656e2073657269616c697a65642076696120546f42797465732e0a6d61785f6465706c6f795f73697a65203d20315f3034385f3537360a2320546865206d6178696d756d206e756d626572206f66206e6f6e2d7472616e73666572206465706c6f7973207065726d697474656420696e20612073696e676c6520626c6f636b2e0a626c6f636b5f6d61785f6465706c6f795f636f756e74203d2032350a2320546865206d6178696d756d206e756d626572206f66207761736d2d6c657373207472616e73666572206465706c6f7973207065726d697474656420696e20612073696e676c6520626c6f636b2e0a626c6f636b5f6d61785f7472616e736665725f636f756e74203d203635300a2320546865206d6178696d756d206e756d626572206f6620617070726f76616c73207065726d697474656420696e20612073696e676c6520626c6f636b2e0a626c6f636b5f6d61785f617070726f76616c5f636f756e74203d20323630300a2320546865207570706572206c696d6974206f6620746f74616c20676173206f6620616c6c206465706c6f797320696e206120626c6f636b2e0a626c6f636b5f6761735f6c696d6974203d20345f3030305f3030305f3030305f3030300a2320546865206c696d6974206f66206c656e677468206f662073657269616c697a6564207061796d656e7420636f646520617267756d656e74732e0a7061796d656e745f617267735f6d61785f6c656e677468203d20313032340a2320546865206c696d6974206f66206c656e677468206f662073657269616c697a65642073657373696f6e20636f646520617267756d656e74732e0a73657373696f6e5f617267735f6d61785f6c656e677468203d20313032340a2320546865206d696e696d756d20616d6f756e7420696e206d6f74657320666f7220612076616c6964206e6174697665207472616e736665722e0a6e61746976655f7472616e736665725f6d696e696d756d5f6d6f746573203d20325f3530305f3030305f3030300a2320546865206d6178696d756d2076616c756520746f20776869636820606465706c6f795f6163636570746f722e74696d657374616d705f6c6565776179602063616e2062652073657420696e2074686520636f6e6669672e746f6d6c2066696c652e0a6d61785f74696d657374616d705f6c6565776179203d202735207365636f6e6473270a0a5b7761736d5d0a2320416d6f756e74206f662066726565206d656d6f72792028696e2036346b4220706167657329206561636820636f6e74726163742063616e2075736520666f7220737461636b2e0a6d61785f6d656d6f7279203d2036340a23204d617820737461636b2068656967687420286e617469766520576562417373656d626c7920737461636b206c696d69746572292e0a6d61785f737461636b5f686569676874203d203530300a0a5b7761736d2e73746f726167655f636f7374735d0a232047617320636861726765642070657220627974652073746f72656420696e2074686520676c6f62616c2073746174652e0a6761735f7065725f62797465203d20315f3131375f3538370a0a5b7761736d2e6f70636f64655f636f7374735d0a2320426974206f7065726174696f6e73206d756c7469706c6965722e0a626974203d203330300a232041726974686d6574696320616464206f7065726174696f6e73206d756c7469706c6965722e0a616464203d203231300a23204d756c206f7065726174696f6e73206d756c7469706c6965722e0a6d756c203d203234300a2320446976206f7065726174696f6e73206d756c7469706c6965722e0a646976203d203332300a23204d656d6f7279206c6f6164206f7065726174696f6e206d756c7469706c6965722e0a6c6f6164203d20325f3530300a23204d656d6f72792073746f7265206f7065726174696f6e206d756c7469706c6965722e0a73746f7265203d20345f3730300a2320436f6e73742073746f7265206f7065726174696f6e206d756c7469706c6965722e0a636f6e7374203d203131300a23204c6f63616c206f7065726174696f6e73206d756c7469706c6965722e0a6c6f63616c203d203339300a2320476c6f62616c206f7065726174696f6e73206d756c7469706c6965722e0a676c6f62616c203d203339300a2320496e7465676572206f7065726174696f6e73206d756c7469706c6965722e0a696e74656765725f636f6d70617269736f6e203d203235300a2320436f6e76657273696f6e206f7065726174696f6e73206d756c7469706c6965722e0a636f6e76657273696f6e203d203432300a2320556e726561636861626c65206f7065726174696f6e206d756c7469706c6965722e0a756e726561636861626c65203d203237300a23204e6f70206f7065726174696f6e206d756c7469706c6965722e0a6e6f70203d203230300a23204765742063757272656e74206d656d6f7279206f7065726174696f6e206d756c7469706c6965722e0a63757272656e745f6d656d6f7279203d203239300a232047726f77206d656d6f727920636f73742c207065722070616765202836346b62292e0a67726f775f6d656d6f7279203d203234305f3030300a0a2320436f6e74726f6c20666c6f77206f7065726174696f6e73206d756c7469706c6965722e0a5b7761736d2e6f70636f64655f636f7374732e636f6e74726f6c5f666c6f775d0a626c6f636b203d203434300a6c6f6f70203d203434300a6966203d203434300a656c7365203d203434300a656e64203d203434300a6272203d2033355f3030300a62725f6966203d2033355f3030300a72657475726e203d203434300a73656c656374203d203434300a63616c6c203d2036385f3030300a63616c6c5f696e646972656374203d2036385f3030300a64726f70203d203434300a0a5b7761736d2e6f70636f64655f636f7374732e636f6e74726f6c5f666c6f772e62725f7461626c655d0a2320466978656420636f737420706572206062725f7461626c6560206f70636f64650a636f7374203d2033355f3030300a232053697a65206f6620746172676574206c6162656c7320696e20746865206062725f7461626c6560206f70636f64652077696c6c206265206d756c7469706c696564206279206073697a655f6d756c7469706c696572600a73697a655f6d756c7469706c696572203d203130300a0a2320486f73742066756e6374696f6e206465636c61726174696f6e7320617265206c6f636174656420696e20736d6172745f636f6e7472616374732f636f6e74726163742f7372632f6578745f6666692e72730a5b7761736d2e686f73745f66756e6374696f6e5f636f7374735d0a616464203d207b20636f7374203d20355f3830302c20617267756d656e7473203d205b302c20302c20302c20305d207d0a6164645f6173736f6369617465645f6b6579203d207b20636f7374203d20315f3230305f3030302c20617267756d656e7473203d205b302c20302c20305d207d0a6164645f636f6e74726163745f76657273696f6e203d207b20636f7374203d203230302c20617267756d656e7473203d205b302c20302c20302c20302c203132305f3030302c20302c20302c20302c20302c20305d207d0a626c616b653262203d207b20636f7374203d20315f3230305f3030302c20617267756d656e7473203d205b302c203132305f3030302c20302c20305d207d0a63616c6c5f636f6e7472616374203d207b20636f7374203d203330305f3030305f3030302c20617267756d656e7473203d205b302c20302c20302c203132305f3030302c20302c203132305f3030302c20305d207d0a63616c6c5f76657273696f6e65645f636f6e7472616374203d207b20636f7374203d203330305f3030305f3030302c20617267756d656e7473203d205b302c20302c20302c20302c20302c203132305f3030302c20302c203132305f3030302c20305d207d0a6372656174655f636f6e74726163745f7061636b6167655f61745f68617368203d207b20636f7374203d203230302c20617267756d656e7473203d205b302c20305d207d0a6372656174655f636f6e74726163745f757365725f67726f7570203d207b20636f7374203d203230302c20617267756d656e7473203d205b302c20302c20302c20302c20302c20302c20302c20305d207d0a6372656174655f7075727365203d207b20636f7374203d20325f3530305f3030305f3030302c20617267756d656e7473203d205b302c20305d207d0a64697361626c655f636f6e74726163745f76657273696f6e203d207b20636f7374203d203230302c20617267756d656e7473203d205b302c20302c20302c20305d207d0a6765745f62616c616e6365203d207b20636f7374203d20335f3030305f3030302c20617267756d656e7473203d205b302c20302c20305d207d0a6765745f626c6f636b74696d65203d207b20636f7374203d203333302c20617267756d656e7473203d205b305d207d0a6765745f63616c6c6572203d207b20636f7374203d203338302c20617267756d656e7473203d205b305d207d0a6765745f6b6579203d207b20636f7374203d20325f3030302c20617267756d656e7473203d205b302c203434302c20302c20302c20305d207d0a6765745f6d61696e5f7075727365203d207b20636f7374203d20315f3330302c20617267756d656e7473203d205b305d207d0a6765745f6e616d65645f617267203d207b20636f7374203d203230302c20617267756d656e7473203d205b302c203132305f3030302c20302c203132305f3030305d207d0a6765745f6e616d65645f6172675f73697a65203d207b20636f7374203d203230302c20617267756d656e7473203d205b302c20302c20305d207d0a6765745f7068617365203d207b20636f7374203d203731302c20617267756d656e7473203d205b305d207d0a6765745f73797374656d5f636f6e7472616374203d207b20636f7374203d20315f3130302c20617267756d656e7473203d205b302c20302c20305d207d0a6861735f6b6579203d207b20636f7374203d20315f3530302c20617267756d656e7473203d205b302c203834305d207d0a69735f76616c69645f75726566203d207b20636f7374203d203736302c20617267756d656e7473203d205b302c20305d207d0a6c6f61645f6e616d65645f6b657973203d207b20636f7374203d2034325f3030302c20617267756d656e7473203d205b302c20305d207d0a6e65775f75726566203d207b20636f7374203d2031375f3030302c20617267756d656e7473203d205b302c20302c203539305d207d0a72616e646f6d5f6279746573203d207b20636f7374203d203230302c20617267756d656e7473203d205b302c20305d207d0a7072696e74203d207b20636f7374203d2032305f3030302c20617267756d656e7473203d205b302c20345f3630305d207d0a70726f766973696f6e5f636f6e74726163745f757365725f67726f75705f75726566203d207b20636f7374203d203230302c20617267756d656e7473203d205b302c20302c20302c20302c20305d207d0a7075745f6b6579203d207b20636f7374203d203130305f3030305f3030302c20617267756d656e7473203d205b302c203132305f3030302c20302c203132305f3030305d207d0a726561645f686f73745f627566666572203d207b20636f7374203d20335f3530302c20617267756d656e7473203d205b302c203331302c20305d207d0a726561645f76616c7565203d207b20636f7374203d2036305f3030302c20617267756d656e7473203d205b302c203132305f3030302c20305d207d0a726561645f76616c75655f6c6f63616c203d207b20636f7374203d20355f3530302c20617267756d656e7473203d205b302c203539302c20305d207d0a72656d6f76655f6173736f6369617465645f6b6579203d207b20636f7374203d20345f3230302c20617267756d656e7473203d205b302c20305d207d0a72656d6f76655f636f6e74726163745f757365725f67726f7570203d207b20636f7374203d203230302c20617267756d656e7473203d205b302c20302c20302c20305d207d0a72656d6f76655f636f6e74726163745f757365725f67726f75705f7572656673203d207b20636f7374203d203230302c20617267756d656e7473203d205b302c20302c20302c20302c20302c203132305f3030305d207d0a72656d6f76655f6b6579203d207b20636f7374203d2036315f3030302c20617267756d656e7473203d205b302c20335f3230305d207d0a726574203d207b20636f7374203d2032335f3030302c20617267756d656e7473203d205b302c203432305f3030305d207d0a726576657274203d207b20636f7374203d203530302c20617267756d656e7473203d205b305d207d0a7365745f616374696f6e5f7468726573686f6c64203d207b20636f7374203d2037345f3030302c20617267756d656e7473203d205b302c20305d207d0a7472616e736665725f66726f6d5f70757273655f746f5f6163636f756e74203d207b20636f7374203d20325f3530305f3030305f3030302c20617267756d656e7473203d205b302c20302c20302c20302c20302c20302c20302c20302c20305d207d0a7472616e736665725f66726f6d5f70757273655f746f5f7075727365203d207b20636f7374203d2038325f3030305f3030302c20617267756d656e7473203d205b302c20302c20302c20302c20302c20302c20302c20305d207d0a7472616e736665725f746f5f6163636f756e74203d207b20636f7374203d20325f3530305f3030305f3030302c20617267756d656e7473203d205b302c20302c20302c20302c20302c20302c20305d207d0a7570646174655f6173736f6369617465645f6b6579203d207b20636f7374203d20345f3230302c20617267756d656e7473203d205b302c20302c20305d207d0a7772697465203d207b20636f7374203d2031345f3030302c20617267756d656e7473203d205b302c20302c20302c203938305d207d0a77726974655f6c6f63616c203d207b20636f7374203d20395f3530302c20617267756d656e7473203d205b302c20315f3830302c20302c203532305d207d0a656e61626c655f636f6e74726163745f76657273696f6e203d207b20636f7374203d203230302c20617267756d656e7473203d205b302c20302c20302c20305d207d0a0a5b73797374656d5f636f7374735d0a7761736d6c6573735f7472616e736665725f636f7374203d203130305f3030305f3030300a0a5b73797374656d5f636f7374732e61756374696f6e5f636f7374735d0a6765745f6572615f76616c696461746f7273203d2031305f3030300a726561645f736569676e696f726167655f726563697069656e7473203d2031305f3030300a6164645f626964203d20325f3530305f3030305f3030300a77697468647261775f626964203d20325f3530305f3030305f3030300a64656c6567617465203d20325f3530305f3030305f3030300a756e64656c6567617465203d20325f3530305f3030305f3030300a72756e5f61756374696f6e203d2031305f3030300a736c617368203d2031305f3030300a64697374726962757465203d2031305f3030300a77697468647261775f64656c656761746f725f726577617264203d2031305f3030300a77697468647261775f76616c696461746f725f726577617264203d2031305f3030300a726561645f6572615f6964203d2031305f3030300a61637469766174655f626964203d2031305f3030300a726564656c6567617465203d20325f3530305f3030305f3030300a0a5b73797374656d5f636f7374732e6d696e745f636f7374735d0a6d696e74203d20325f3530305f3030305f3030300a7265647563655f746f74616c5f737570706c79203d2031305f3030300a637265617465203d20325f3530305f3030305f3030300a62616c616e6365203d2031305f3030300a7472616e73666572203d2031305f3030300a726561645f626173655f726f756e645f726577617264203d2031305f3030300a6d696e745f696e746f5f6578697374696e675f7075727365203d20325f3530305f3030305f3030300a0a5b73797374656d5f636f7374732e68616e646c655f7061796d656e745f636f7374735d0a6765745f7061796d656e745f7075727365203d2031305f3030300a7365745f726566756e645f7075727365203d2031305f3030300a6765745f726566756e645f7075727365203d2031305f3030300a66696e616c697a655f7061796d656e74203d2031305f3030300a0a5b73797374656d5f636f7374732e7374616e646172645f7061796d656e745f636f7374735d0a706179203d2031305f3030300a",
            "maybe_genesis_accounts_bytes": null,
            "maybe_global_state_bytes": null
        }
    }
}

info_get_deploy

This method retrieves a Deploy from a network. It requires a deploy_hash to query the Deploy.

Method: POST

https://casper.nownodes.io/rpc

Example body (raw)

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "info_get_deploy",
  "params": [
    "5c9b3b099c1378aa8e4a5f07f59ff1fcdc69a83179427c7e67ae0377d94d93fa",
    true
  ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32000,
        "message": "No such deploy",
        "data": "failed to get deploy-hash(5c9b..93fa) and metadata from storage"
    }
}

query_balance

This method allows you to query for the balance of a purse using a PurseIdentifier and StateIdentifier.

Method: POST

https://casper.nownodes.io/rpc

Example body (raw)

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "query_balance",
  "params": [
      {
        "name": "state_identifier",
        "value": {
          "BlockHash": "13c2d7a68ecdd4b74bf4393c88915c836c863fc4bf11d7f2bd930a1bbccacdcb"
        }
    },
      {
        "name": "purse_identifier",
        "value": {
          "main_purse_under_account_hash": "account-hash-0909090909090909090909090909090909090909090909090909090909090909"
        }
      }
    ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32602,
        "message": "Invalid params",
        "data": "Failed to parse 'params' field: invalid value: map, expected map with a single key"
    }
}

query_global_state

This method allows for you to query for a value stored under certain keys in global state. You may query using either a Block hash or state root hash.

Method: POST

https://casper.nownodes.io/rpc

Example body (raw)

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "query_global_state",
  "params": [
    "deploy-af684263911154d26fa05be9963171802801a0b6aff8f199b7391eacb8edc9e1",
    [],
    {
      "BlockHash": "13c2d7a68ecdd4b74bf4393c88915c836c863fc4bf11d7f2bd930a1bbccacdcb"
    }
  ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32602,
        "message": "Invalid params",
        "data": "Failed to parse 'params' field: unknown variant `deploy-af684263911154d26fa05be9963171802801a0b6aff8f199b7391eacb8edc9e1`, expected one of `BlockHash`, `BlockHeight`, `StateRootHash`"
    }
}

state_get_account_info

This method returns a JSON representation of an Account from the network. The block_identifier must refer to a Block after the Account's creation, or the method will return an empty response.

Method: POST

https://casper.nownodes.io/rpc

Example body (raw)

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "state_get_account_info",
  "params": [
    {
      "Hash": "13c2d7a68ecdd4b74bf4393c88915c836c863fc4bf11d7f2bd930a1bbccacdcb"
    },
    "013b6a27bcceb6a42d62a3a8d02a6f0d73653215771de243a63ac048a18b59da29"
  ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32602,
        "message": "Invalid params",
        "data": "Failed to parse 'params' field: data did not match any variant of untagged enum AccountIdentifier"
    }
}

state_get_dictionary_item

This method returns an item from a Dictionary. Every dictionary has a seed URef, findable by using a dictionary_identifier. The address of a stored value is the blake2b hash of the seed URef and the byte representation of the dictionary key.

Method: POST

https://casper.nownodes.io/rpc

Example body (raw)

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "state_get_dictionary_item",
  "params": [
    {
      "URef": {
        "dictionary_item_key": "a_unique_entry_identifier",
        "seed_uref": "uref-09480c3248ef76b603d386f3f4f8a5f87f597d4eaffd475433f861af187ab5db-007"
      }
    },
    "0808080808080808080808080808080808080808080808080808080808080808"
  ]
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32602,
        "message": "Invalid params",
        "data": "Failed to parse 'params' field: invalid type: map, expected a string"
    }
}

info_get_peers

This method returns a list of peers connected to the node.

Method: POST

https://casper.nownodes.io/rpc

Example body (raw)

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "info_get_peers",
  "params": []
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "api_version": "1.5.6",
        "peers": [
            {
                "node_id": "tls:0108..c606",
                "address": "5.9.36.10:35000"
            },
            {
                "node_id": "tls:03c3..baa3",
                "address": "47.243.248.96:7025"
            },
            {
                "node_id": "tls:04b4..3701",
                "address": "195.201.86.100:35000"
            },
            {
                "node_id": "tls:06a7..ca6d",
                "address": "45.125.23.194:35000"
            },
            {
                "node_id": "tls:0944..0b7c",
                "address": "18.190.168.152:35000"
            },
            {
                "node_id": "tls:0970..5d51",
                "address": "159.69.171.172:35000"
            },
            {
                "node_id": "tls:09a5..daee",
                "address": "71.105.223.69:35000"
            },
            {
                "node_id": "tls:0a42..a0b2",
                "address": "89.217.197.105:35000"
            },
            {
                "node_id": "tls:0b0f..4daf",
                "address": "63.32.101.202:35000"
            },
            {
                "node_id": "tls:0cc3..f1bb",
                "address": "34.213.109.110:35000"
            },
            {
                "node_id": "tls:0d7d..4a5e",
                "address": "3.141.144.131:35000"
            },
            {
                "node_id": "tls:0dea..ba4f",
                "address": "165.154.225.71:35000"
            },
            {
                "node_id": "tls:0f2a..6c99",
                "address": "15.235.53.233:35000"
            },
            {
                "node_id": "tls:10b1..e0db",
                "address": "37.27.69.30:35000"
            },
            {
                "node_id": "tls:11e6..d2da",
                "address": "149.28.141.66:35000"
            },
            {
                "node_id": "tls:1230..b4ff",
                "address": "13.58.157.225:35000"
            },
...

info_get_status

This method returns the current status of a node.

Method: POST

https://casper.nownodes.io/rpc

Example body (raw)

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "info_get_status",
  "params": []
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "peers": [
            {
                "node_id": "tls:0108..c606",
                "address": "5.9.36.10:35000"
            },
            {
                "node_id": "tls:03c3..baa3",
                "address": "47.243.248.96:7025"
            },
            {
                "node_id": "tls:04b4..3701",
                "address": "195.201.86.100:35000"
            },
            {
                "node_id": "tls:06a7..ca6d",
                "address": "45.125.23.194:35000"
            },
            {
                "node_id": "tls:0944..0b7c",
                "address": "18.190.168.152:35000"
            },
            {
                "node_id": "tls:0970..5d51",
                "address": "159.69.171.172:35000"
            },
            {
                "node_id": "tls:09a5..daee",
                "address": "71.105.223.69:35000"
            },
            {
                "node_id": "tls:0a42..a0b2",
                "address": "89.217.197.105:35000"
            },
            {
                "node_id": "tls:0b0f..4daf",
                "address": "63.32.101.202:35000"
            },
            {
                "node_id": "tls:0cc3..f1bb",
                "address": "34.213.109.110:35000"
            },
            {
                "node_id": "tls:0d7d..4a5e",
                "address": "3.141.144.131:35000"
            },
            {
                "node_id": "tls:0dea..ba4f",
                "address": "165.154.225.71:35000"
            },
...

Last updated