Getting program onchain budgets using Fuul contracts subgraphs

This article shows how to get program budgets rewards.

Every budget is deposited on the project's FuulProject contract. This information can be retrieved from any indexer, but using our aggregated subgraphs makes it much easier.

Getting onchain budgets

To get the budget for each currency for a specific project, use the following query.

budgets(where: { owner: $owner }) {
  amount
  currency
}

To query the subgraph, follow this guide from TheGraph, or make a request directly to the endpoint using a library like axios or requests.

Subgraphs

There is one subgraph per network supported by Fuul. These are the endpoints:

Last updated