kleros/foresight/indexer-wildcard

Claude Code and agent skill by kleros/foresight

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when indexing all instances of a contract across all addresses (e.g., all ERC-20 transfers on a chain). Config setup (no address), wildcard handler option, and event.srcAddress.

Install

npx vskill@latest install kleros/foresight/indexer-wildcard

SKILL.md

Wildcard Indexing

Index all events matching an event signature across all contract addresses on a chain.

Config (no address = wildcard)

yaml
contracts:
- name: ERC20
events:
- event: Transfer(indexed address from, indexed address to, uint256 value)
chains:
- id: 1
contracts:
- name: ERC20
# No address = wildcard (indexes ALL matching events on the chain)

Handler with wildcard: true

Pass wildcard: true in the options object to indexer.onEvent. Use event.srcAddress to identify which contract emitted the event:

ts
indexer.onEvent({ contract: "ERC20", event: "Transfer", wildcard: true }, async ({ event, context }) => {
const tokenAddress = event.srcAddress; // The actual contract address
const id = `${event.chainId}-${event.transaction.hash}-${event.logIndex}`;
context.Transfer.set({
id,
token_id: `${event.chainId}-${tokenAddress}`,
from: event.params.from,
to: event.params.to,
value: event.params.value,
});
});

Combining with Event Filters (where)

Wildcard indexing produces high event volume. Use where to reduce it — see the indexer-filters skill for object, array, function, and addresses forms.

ts
indexer.onEvent(
{
contract: "ERC20",
event: "Transfer",
wildcard: true,
where: { params: { from: ZERO_ADDRESS } },
},
async ({ event, context }) => {
/* ... */
},
);
If something is unclear, use the envio-docs skill to search and read the latest documentation.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kleros/foresight/indexer-wildcard/badge)](https://verified-skill.com/skills/kleros/foresight/indexer-wildcard)

Something wrong with this skill or its page? Tell us.