ponder

Integrate Ponder into Scaffold-ETH 2 to index smart contract events and serve GraphQL APIs.

2.0k|1.4k|Updated Sep 19, 2022
One-click install
npx skills add https://github.com/scaffold-eth/scaffold-eth-2 --skill ponder-scaffold-eth
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ponder
Source: https://github.com/scaffold-eth/scaffold-eth-2/tree/main/.agents/skills/ponder
Command: npx skills add https://github.com/scaffold-eth/scaffold-eth-2 --skill ponder-scaffold-eth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ponder, hono, viem, graphql, graphql-request, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill integrates Ponder into a Scaffold-ETH 2 project, enabling efficient indexing of smart contract events and providing a GraphQL API for on-chain data.

Core Features & Use Cases

  • Blockchain Event Indexing: Automatically capture and store data from smart contract events.
  • GraphQL API: Serve indexed on-chain data through a queryable API.
  • SE-2 Integration: Seamlessly connects with Scaffold-ETH 2's contract configurations.
  • Use Case: You want to build a dashboard that displays all past Transfer events from an ERC20 token contract deployed within your Scaffold-ETH 2 project.

Quick Start

Integrate Ponder into your Scaffold-ETH 2 project by following the setup instructions in the documentation.

Frequently Asked Questions about ponder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I index smart contract events and serve them via GraphQL in a Scaffold-ETH 2 project?▼

To index smart contract events and serve them via GraphQL in a Scaffold-ETH 2 project, you can integrate Ponder to automatically capture on-chain data and set up a queryable API endpoint. It seamlessly connects with existing contract configurations.

What is the best way to retrieve past ERC20 Transfer events for a dApp dashboard?▼

The best way to retrieve past ERC20 Transfer events for a dApp dashboard is using Ponder for blockchain event indexing. It automatically captures and stores data from smart contract events, enabling efficient on-chain data retrieval for your dashboard.

Does Ponder work with Scaffold-ETH 2 contract configurations?▼

Yes, Ponder works seamlessly with Scaffold-ETH 2 contract configurations. This integration allows you to automatically capture and store data from smart contract events deployed within your Scaffold-ETH 2 project environment.

Can I use GraphQL to query indexed blockchain data?▼

Yes, you can use GraphQL to query indexed blockchain data. After Ponder automatically captures and stores data from smart contract events, it serves the indexed on-chain data through a queryable GraphQL API.

What dependencies are required to build a dApp indexer with Ponder?▼

To build a dApp indexer with Ponder, the required dependencies include Hono, Viem, GraphQL, and GraphQL-request. These libraries collectively support indexing contract events and serving on-chain data via GraphQL.