info_get_chainspec
This method returns raw bytes for chainspec files.
Parameters:
Returned Value:
api_version
- string
RPC API version
chainspec_bytes
- The raw bytes of the chainspec.toml, genesis accounts.toml, and global_state.toml files..
{
"jsonrpc": "2.0",
"result": {
"api_version": "1.5.0",
"chainspec_bytes": {
"chainspec_bytes": "[22040 hex chars]",
"maybe_genesis_accounts_bytes": null,
"maybe_global_state_bytes": null
}
},
"id": 5510244237763930243
}
curl https://mainnet.casper.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"id":5510244237763930243,"jsonrpc":"2.0","method":"info_get_chainspec","params":[]}'
curl https://testnet.casper.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"id":5510244237763930243,"jsonrpc":"2.0","method":"info_get_chainspec","params":[]}'