Actions61
- Activity Actions
- Asset Actions
- Custom Query Actions
- Hub Actions
- Lending Actions
- Market Data Actions
- Position Management Actions
- Position Swap Actions
- Protocol Actions
- Reserve Actions
- Spoke Actions
- Swap Actions
- User Position Actions
Custom Query → Execute Query
AI-generatedSummary
Execute a custom GraphQL query against the Aave protocol, optionally passing variables.
Inputs
- graphqlQuery (required) — The GraphQL query string to execute.
- graphqlVariables — Optional JSON object of variables to pass to the query.
Output shape
JSON object containing the GraphQL response
Returns the query result; errors are included in the response body.
Examples
Example 1: Query protocol health
graphqlQuery: "{ health }", graphqlVariables: "{}"
Example 2: List reserves
graphqlQuery: "{ reserves { id volume } }", graphqlVariables: "{}"
Example 3: Swap quote request
graphqlQuery: "{ getExchangeRate(from: "ETH", to: "USDC", amount: 1000 ) }", graphqlVariables: "{}"