curl --location 'https://us-prod.notte.cc/functions/571576c5-bad2-4577-b294-bc6fdb8744de/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "571576c5-bad2-4577-b294-bc6fdb8744de",
"variables": {
"query": "query GetPools($limit: Int) { pools(where: { isActive: true, name_not: null }, limit: $limit) { items { id name centrifugeId isActive tokens { items { id name symbol totalIssuance tokenPrice } } } } }",
"variables": null,
"operation_name": "GetPools"
}
}'
{
"response": {
"data": {
"pools": {
"items": [
{
"id": "<string>",
"name": "<string>",
"tokens": {
"items": [
{}
]
},
"isActive": true,
"centrifugeId": "<string>"
}
]
},
"tokenInstancePositions": {
"items": [
{
"account": {
"address": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"createdAtBlock": 0,
"updatedAtBlock": 0,
"createdAtTxHash": "<string>",
"updatedAtTxHash": "<string>"
},
"balance": "<string>",
"tokenId": "<string>",
"isFrozen": true,
"costBasis": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"centrifugeId": "<string>",
"tokenInstance": {
"token": {},
"address": "<string>",
"tokenId": "<string>",
"decimals": 0,
"isActive": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"blockchain": {},
"computedAt": "<string>",
"spokeAckAt": "<any>",
"tokenPrice": "<string>",
"hubSignalAt": "<any>",
"centrifugeId": "<string>",
"hubSignalType": "<any>",
"totalIssuance": "<string>",
"createdAtBlock": 0,
"updatedAtBlock": 0,
"createdAtTxHash": "<string>",
"spokeAckAtBlock": "<any>",
"updatedAtTxHash": "<string>",
"hubSignalAtBlock": "<any>",
"spokeAckAtTxHash": "<any>",
"hubSignalAtTxHash": "<any>",
"spokeAckAtChainId": "<any>",
"hubSignalAtChainId": "<any>",
"crosschainInProgress": "<any>"
},
"accountAddress": "<string>",
"createdAtBlock": 0,
"updatedAtBlock": 0,
"createdAtTxHash": "<string>",
"updatedAtTxHash": "<string>",
"cumulativeEarnings": "<string>",
"cumulativeRealizedPnl": "<string>",
"tokenPriceAtLastChange": "<string>"
}
],
"pageInfo": {
"endCursor": "<string>",
"hasNextPage": true,
"startCursor": "<string>",
"hasPreviousPage": true
},
"totalCount": 0
}
}
}
}