Somnia

This section provides information specific to the Somnia blockchain.

Querying the Subgraph

Proteus Shield on Somnia supports subgraph deployment only for the somnia-devnet network.

Currently, you can query your subgraphs by name only: https://proxy-dev.somnia.protofire.io/subgraphs/name/<SUBGRAPH_NAME>.

# Assuming the subgraph name is `somnia-devnet/test`
curl -X POST \
 -H "Content-Type: application/json" \
 -d '{"query": "{ erc6551AccountCreateds(first: 5) { id } }", "operationName": "Subgraphs", "variables": {}}' \
 "https://proxy-dev.somnia.protofire.io/subgraphs/name/somnia-devnet/test"

Note that the HTTP path of the query URL is /subgraphs/name/<SUBGRAPH_NAME>, different from the format used on Astar.

Last updated