Links

Chainlet APIs & BlockExplorer

Command

Every chainlet that is launched also makes additional resources available using which you can interact with the chainlet.
Currently, sagacli provides the following types of endpoints:
  1. 1.
    Websocket endpoint - you can send websocket requests and subscribe to channels using the websockets endpoint
  2. 2.
    BlockExplorer - Paste the explorer endpoint URL in a web browser and you should be able to see a block explorer connected to your chainlet. This can be used for searcing for, and viewing, transactions, seeing commit data, blocks info, and more.
  3. 3.
    JSON RPC endpoint - use this endpoint to make jsonrpc calls to your chainlet
The APIs can be viewed using the chainlet apis command:
sagacli chainlet apis <chain id>

API Example

$ sagacli chainlet apis pacman-1681169675474000-1
Name Endpoint Status
---- -------- ------
ws pacman-1681169675474000-1.ws.sp1.sagarpc.io Available
jsonrpc pacman-1681169675474000-1.jsonrpc.sp1.sagarpc.io Available
explorer pacman-1681169675474000-1.sp1.sagaexplorer.io Available
The apis command will list the service names and endpoints that allow you to connect to your chainlet JsonRPC, WS or BlockExplorer. The status value will show if the service is available or is still being provisioned.

Further Details

For further details and options on using the chainlet apis command, refer to
sagacli chainlet apis --help