Looking Glass
Composite query
Composite query to get list of addresses from multiple subqueries.
pageToken?string
A page token, received from a previous list call. Provide this to retrieve the subsequent page.
pageSize?integer
The maximum number of items to return.
Default
1000Range
1 <= value <= 10000queries
operatorstring
Value in
"AND" | "OR"Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://metrics.avax.network/v1/lookingGlass/compositeQuery" \ -H "Content-Type: application/json" \ -d '{ "queries": [ { "id": "string", "type": "AllTimeNativeBalance", "params": { "firstDate": "string", "lastDate": "string", "minBalance": "string", "evmChainId": "string" } } ], "operator": "AND" }'{
"nextPageToken": "string",
"subQueryCounts": {
"1": 1,
"2": 2,
"3": 2
},
"totalCount": 2,
"addresses": [
"0x1234567890abcdef1234567890abcdef123456789"
]
}{
"message": "string",
"statusCode": 400,
"error": "Bad Request"
}{
"message": "string",
"statusCode": 401,
"error": "Unauthorized"
}{
"message": "string",
"statusCode": 403,
"error": "Forbidden"
}{
"message": "string",
"statusCode": 404,
"error": "Not Found"
}{
"message": "string",
"statusCode": 429,
"error": "Too Many Requests"
}{
"message": "string",
"statusCode": 500,
"error": "Internal Server Error"
}{
"message": "string",
"statusCode": 502,
"error": "Bad Gateway"
}{
"message": "string",
"statusCode": 503,
"error": "Service Unavailable"
}Is this guide helpful?