10 releases
| 0.1.9 | Sep 3, 2025 |
|---|---|
| 0.1.8 | Mar 3, 2025 |
| 0.1.1 | Feb 27, 2025 |
#2935 in Command line utilities
412 downloads per month
22KB
528 lines
Prequsites 🛠️
- Rust - Install Rust
Installation 💻
cargo install subgraph-status
Usage
subgraph-status <DEPLOYMENT_ID_1> <DEPLOYMENT_ID_2> ..
Example
subgraph-status QmUfcf55AoqVs3zuyfu9TwYh8G4LxRnY5DpxjVCea3RSWe
To fetch status from local graph-node
subgraph-status <DEPLOYMENT_ID> --local
How to fetch details from a specific indexer ❓
-
Visit the Graph Network Arbitrum Subgraph.
-
Execute the following query with the desired indexer address:
{ indexer(id: "INDEXER_ADDRESS") { url } } -
Set the resulting URL as an environment variable:
export SUBGRAPH_STATUS_URL="resulting_url" -
You're all set! The package will now fetch the status from the specified indexer.
How to run locally ❓
- Clone repository & change directory
git clone https://github.com/Shiyasmohd/subgraph-status.git
cd subgraph-status
-
Copy Deployment ID of the Subgraph (Starts with Qm..)
-
Run Program
cargo run <DEPLOYMENT_ID>
Example Command
cargo run QmUfcf55AoqVs3zuyfu9TwYh8G4LxRnY5DpxjVCea3RSWe
Dependencies
~12–29MB
~353K SLoC