Astar

This section provides information specific to the Astar blockchain.

Querying the Subgraph

Proteus Shield on Astar supports subgraph deployment for the following networks:

  • Astar

  • Shiden

  • Shibuya

You can query your subgraphs using the following methods:

  • By name: https://proxy.graph.astar.network/subgraphs/<NETWORK>/name/<SUBGRAPH_NAME>

# Assuming the subgraph name is `astar/test`
curl -X POST \
 -H "Content-Type: application/json" \
 -d '{"query": "{ erc6551AccountCreateds(first: 5) { id } }", "operationName": "Subgraphs", "variables": {}}' \
 "https://proxy.graph.astar.network/subgraphs/astar/name/astar/test"
  • By ID: https://proxy.graph.astar.network/subgraphs/<NETWORK>/id/<SUBGRAPH_ID>

# Assuming the subgraph ID is `QmT4W5y94YwPp5pL1zPK7qmjbRfWNUZw46ND9d8F8RAoSd`
curl -X POST \
 -H "Content-Type: application/json" \
 -d '{"query": "{ erc6551AccountCreateds(first: 5) { id } }", "operationName": "Subgraphs", "variables": {}}' \
 "https://proxy.graph.astar.network/subgraphs/astar/id/QmT4W5y94YwPp5pL1zPK7qmjbRfWNUZw46ND9d8F8RAoSd"

Last updated