You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes#347
This PR integrates a subgraph with dApp. Subgraph can be run locally or
use a production/development URL. To select the right endpoint, set the
URL for the following environmental variable:
```
VITE_ACRE_SUBGRAPH_URL=<SUBGRAPH_URL>
```
By default, the development URL is set to subgraph.
- If you want to use a local subgraph you need to follow the steps
[here](https://github.com/thesis/acre/blob/main/subgraph/README.md).
Then set the subgraph URL to localhost.
- To find the production URL you need to connect to the [Subgraph
Studio](https://thegraph.com/studio/) with Acre Wallet and open the
dedicated page for the selected subgraph. Copy the URL and use the API
key from the "API Keys" tab.
### Subgraph API
- `fetchActivityDatas` - Returns activities for the Ethereum account
Integrate dApp with subgraph to obtain required data.
The text was updated successfully, but these errors were encountered: