This example shows how to use Ponder in a monorepo alongside a Next.js app.
The Ponder app indexes WETH Deposit events on mainnet.
To run this project:
- In the
ponderdirectory, copy.env.exampleto.env.localand add a mainnet RPC URL. - Run the dev script in the
ponderdirectory and thefrontenddirectory (npm run dev)
Now, the Next.js app should display and refresh data from the Ponder GraphQL API.
