Astar
This section provides information specific to the Astar blockchain.
Querying the Subgraph
Proteus Shield on Astar supports subgraph deployment for the following networks:
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"
# Assuming the subgraph name is `shiden/test`
curl -X POST \
-H "Content-Type: application/json" \
-d '{"query": "{ erc6551AccountCreateds(first: 5) { id } }", "operationName": "Subgraphs", "variables": {}}' \
"https://proxy.graph.astar.network/subgraphs/shiden/name/shiden/test"
# Assuming the subgraph name is `shibuya/test`
curl -X POST \
-H "Content-Type: application/json" \
-d '{"query": "{ erc6551AccountCreateds(first: 5) { id } }", "operationName": "Subgraphs", "variables": {}}' \
"https://proxy.graph.astar.network/subgraphs/shibuya/name/shibuya/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"
# 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/shiden/id/QmT4W5y94YwPp5pL1zPK7qmjbRfWNUZw46ND9d8F8RAoSd"
# 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/shibuya/id/QmT4W5y94YwPp5pL1zPK7qmjbRfWNUZw46ND9d8F8RAoSd"