Deployment ID#

/v1/proxy/

deployments/id/:deployment_id#

POST#

Make a graphql request to the subgraph identified by the id deployment_id.


URL Parameters#

deployment_id string The decentralized network deployment ID you are querying


Request Body (JSON)#

query string The GraphQL query itself

variables dict? Values for the variables used within the GraphQL query (if any)


Example#

curl https://api.playgrounds.network/v1/proxy/deployments/id/QmcPHxcC2ZN7m79XfYZ77YmF4t9UCErv87a9NFKrSLWKtJ \
    -H 'Content-Type: application/json' \
    -H 'Playgrounds-Api-Key: PG_API_KEY' \
    -d '{"query":"{protocols {name totalPoolCount}}"}'

Response:

{
    "data": {
        "protocols": [
            {
                "name": "Uniswap V3",
                "totalPoolCount": 13767
            }
        ]
    }
}