Retrieves the chain type

Installation Guide

The WebSocket API is very similar to the RPC API, the only difference is the way you connect to the Node. The method we recommend is to use wscat as a client for connecting to websockets. wscat can be installed using npm:

$ sudo npm install -g wscat 

Connect using the Bware Generated Endpoint

To connect to the endpoint, we will use the following command:

$ wscat -c wss://<your-endpoint-id>
Connected (press CTRL+C to quit)

Simple Request Example

After Connected is shown, you can make a simple query like the following:

Connected (press CTRL+C to quit)

> {"id":1, "jsonrpc":"2.0", "method": "system_chainType"}

< {"jsonrpc":"2.0","result":"Live","id":1}

Last updated