Chainlet APIs & BlockExplorer

Using Saga Web App

Saga Web App is now online at https://testnet-app.saga.xyz/

You will need a wallet, such as Keplr, that supports Cosmos SDK based blockchains If this is your first time using Keplr Wallet, follow this tutorial to install and start using it.

You can view Chainlet API and Block Explorer info from the Saga Web App for any chainlet.

To view this information, simply head on over to the Chainlets tab on the landing page and then click on any chainlet to view its detailed information.

As an example, in the above listing, to view the chainlet API and block explorer details for the chainlet called anewchain, simply click on it.

You can see the RPC endpoint, the websocket endpoint and the block explorer URL in the chainlet details page shown in the image above.

Using sagacli

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. Websocket endpoint - you can send websocket requests and subscribe to channels using the websockets endpoint

  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. 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 chainlet_1698372536493619-1
Name         Endpoint                                                       Status        
----         --------                                                       ------        
explorer     chainlet-1698372536493619-1.testnet-srv1.sagaexplorer.io        Available     
ws           chainlet-1698372536493619-1.ws.testnet-srv1.sagarpc.io          Available     
jsonrpc      chainlet-1698372536493619-1.jsonrpc.testnet-srv1.sagarpc.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

Last updated