9 releases
new 0.1.8 | Mar 3, 2025 |
---|---|
0.1.7 | Mar 3, 2025 |
0.1.1 | Feb 27, 2025 |
#519 in Command line utilities
383 downloads per month
22KB
519 lines
Prequsites 🛠️
- Rust - Install Rust
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 ❓
-
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–26MB
~363K SLoC