get_chainspec

Function get_chainspec 

Source
pub async fn get_chainspec(
    rpc_id: JsonRpcId,
    node_address: &str,
    verbosity: Verbosity,
) -> Result<SuccessResponse<GetChainspecResult>, Error>
Expand description

Retrieves the Chainspec of the network.

Sends a JSON-RPC info_get_chainspec request to the specified node.

For details of the parameters, see the module docs.