Skip to content

shiyasmohd/subgraph-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📊 Subgraph Status

🖥️  CLI Application to Check Your Subgraph's Status

Crates.io Crates.io License Contributors

demo.mov

Prequsites 🛠️

Installation 💻

cargo install subgraph-status

Usage

subgraph-status <DEPLOYMENT_ID>

Example

subgraph-status QmUfcf55AoqVs3zuyfu9TwYh8G4LxRnY5DpxjVCea3RSWe

To fetch status from local graph-node

subgraph-status <DEPLOYMENT_ID> --local

How to fetch details from a specific indexer ❓

  1. Visit the Graph Network Arbitrum Subgraph.

  2. Execute the following query with the desired indexer address:

    {
      indexer(id: "INDEXER_ADDRESS") {
        url
      }
    }
  3. Set the resulting URL as an environment variable:

    export SUBGRAPH_STATUS_URL="resulting_url"
  4. You're all set! The package will now fetch the status from the specified indexer.

How to run locally ❓

  1. Clone repository & change directory
git clone https://github.com/Shiyasmohd/subgraph-status.git
cd subgraph-status
  1. Copy Deployment ID of the Subgraph (Starts with Qm..)

  2. Run Program

cargo run <DEPLOYMENT_ID>

Example Command

cargo run QmUfcf55AoqVs3zuyfu9TwYh8G4LxRnY5DpxjVCea3RSWe

About

CLI application to check your subgraph's status

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages