Saga Docs
Back to Saga
  • Introduction
    • Pegasus Overview
    • Saga Overview
      • Saga Topology
      • Saga Chainlets
      • Saga Shared Security
      • Validator Orchestration Tools
      • Token Mechanism and Economics
      • Validator Selection
      • Partnership Models
      • Paying for Chainlets
      • Staking on Saga
        • Staking your Saga on Keplr
        • Auto-compound your staking rewards with Restake.app
  • Saga Web App
    • Getting Access
    • Quickstart Guide
      • Testnet Quickstart Guide
      • Mainnet Quickstart Guide
    • Account Management
      • Requesting Tokens from Saga Faucet
      • Deposit Funds into Escrow
      • Withdraw Funds from Escrow
      • View Escrow Account Information
    • Working with Chainlet
      • Launch your Chainlet on Testnet
      • Launch your Chainlet on Mainnet
      • Get Chainlet Information
      • View Listing of Chainlets Launched
      • Chainlet APIs & BlockExplorer
      • Configuring Metamask Network
      • Chainlet Billing
      • Restarting a Stopped Chainlet
  • Sagacli
    • Getting Access
    • Quickstart Guide
      • Testnet Quickstart Guide
      • Mainnet Quickstart Guide
    • Download Saga CLI
    • Install Saga CLI
    • Configure Saga CLI
    • Key Management
      • Adding Keys
      • Listing Keys
      • Display Key Details
      • Deleting Keys
      • Renaming Keys
    • Account Management
      • Checking Account Balances
      • Requesting Tokens from Saga Faucet
      • Deposit Funds into Escrow
      • Withdraw Funds from Escrow
      • View Escrow Account Information
    • Working with Chainlet
      • View Listing of Chainlet Types
      • Launch your Chainlet on Testnet
      • Launch your Chainlet on Mainnet
      • Get Chainlet Information
      • View Listing of Chainlets Launched
      • Chainlet APIs & BlockExplorer
      • Configuring Metamask Network
      • Update Chainlet Version
      • Chainlet Billing
      • Restarting a Stopped Chainlet
    • Configuring sagacli - A Deep Dive
    • Searching for Transactions
  • Get Help & Support
Powered by GitBook
On this page
  • API Example (Testnet)
  • API Example (Mainnet)
  • One-click Metamask Network Setup
  • Configuring Metamask Network Manually
  1. Sagacli
  2. Working with Chainlet

Configuring Metamask Network

This page includes instructions on how to setup your chainlet network information in your Metamask wallet

As we saw in the previous page, in order to optain the chainlet network RPC connection details, you will have to run the following command:

sagacli chainlet apis <chain id>

API Example (Testnet)

$ sagacli chainlet apis chainlet_1698372536493619-1
Name         Endpoint                                                       Status        
----         --------                                                       ------        
explorer     chainlet-1698372536493619-1.testnet.sagaexplorer.io            Available     
ws           chainlet-1698372536493619-1.ws.testnet.sagarpc.io              Available     
jsonrpc      chainlet-1698372536493619-1.jsonrpc.testnet.sagarpc.io         Available  

API Example (Mainnet)

$ sagacli chainlet apis chainlet_1698372536493619-1
Name         Endpoint                                                       Status        
----         --------                                                       ------        
explorer     chainlet-1698372536493619-1.sagaexplorer.io                    Available     
ws           chainlet-1698372536493619-1.ws.sagarpc.io                      Available     
jsonrpc      chainlet-1698372536493619-1.jsonrpc.sagarpc.io                 Available

We can see in the above CLI output the jsonrpc and explorer endpoints that we will need to be able to configure our chainlet network in Metamask.

Note: make sure the status for all of the endpoints is "Available", otherwise you will risk running into issues with using them in your metamask wallet config.

One-click Metamask Network Setup

The fastest way to configure your chainlet network settings into your metamask browser plugin is by visiting your chainlet's dedicated block explorer page and clicking on the Add <chainlet name> link present on the footer menus.

You can also see how this looks like in the image included below:

Configuring Metamask Network Manually

In order to do so, we will need to navigate to Metamask -> Settings -> Networks -> Add Network

The settings screen will look something like this:

From here, click on "Add a network manually" and type in the following settings in the required fields:

  • Network Name: Pacman Chainlet (or you can chose a different name for this network)

  • New RPC URL: This will be your chainlet's jsonrpc endpoint from the chainlet output above

    • https://chainlet-1698372536493619-1.jsonrpc.sagarpc.io
  • Chain ID: Here you need to input the middle numerical part of the chainid listed in the SagaCLI

    • 1698372536493619
  • Currency Symbol: This is your chainlet currency symbol. (You can get that also by calling the sagacli chainlet get <your chainlet alphanumerical id>

  • sagacli chainlet get chainlet-1698372536493619-1
    ChainId                           Name           StackName     StackVersion     Launcher                                        Mantainers                                        CurrencySymbol     Status            
    -------                           ----           ---------     ------------     --------                                        ----------                                        --------------     ------            
    chainlet-1698372536493619-1       pacman         SagaOS        0.5.17           saga1rdssl22ysxyendrkh2exw9zm7hvj8d2ju346g3     [saga1rdssl22ysxyendrkh2exw9zm7hvj8d2ju346g3]     pac                STATUS_ONLINE     
  • Block Explorer URL

    • chainlet-1698372536493619-1.sagaexplorer.io

Everything together will look SIMILAR with what you see in the following image below:

PreviousChainlet APIs & BlockExplorerNextUpdate Chainlet Version

Last updated 1 year ago