event-driven-backend

Build backends reacting to Avalanche on-chain events via WebSocket and HTTP polling.

Updated May 7, 2026
One-click install
npx skills add https://github.com/Ayomisco/avaxskills --skill event-driven-backend
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: event-driven-backend
Source: https://github.com/Ayomisco/avaxskills/tree/main/website/public/event-driven-backend
Command: npx skills add https://github.com/Ayomisco/avaxskills --skill event-driven-backend

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires viem, ethers, axios, pg, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables developers to build backend systems that react to Avalanche on-chain events in real-time or through historical data retrieval.

Core Features & Use Cases

  • Event Listening and Indexing: Set up WebSocket subscriptions or HTTP polling to track contract events.
  • Real-Time Notifications: Trigger webhooks or send notifications when specific on-chain activities occur.
  • Use Case: For example, automatically notify users when a token transfer happens or index past events for analytics.

Quick Start

Use the event-driven-backend skill to listen for contract Transfer events and send webhooks upon detection.

Frequently Asked Questions about event-driven-backend

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

FAQPage Schema
How do I listen to Avalanche on-chain events and trigger a webhook?

To listen to Avalanche on-chain events and trigger webhooks, you can set up WebSocket subscriptions or HTTP polling to track contract activities and dispatch notifications upon detection. This enables real-time reactive off-chain systems.

Can I use ethers and viem to index past Avalanche contract events into PostgreSQL?

Yes, you can use ethers or viem to index past Avalanche contract events. The skill supports log decoding and database storage, allowing you to retrieve historical data and store it directly into PostgreSQL for analytics.

What is the best way to build a backend that reacts to Avalanche token transfers?

The best way to build a backend reacting to Avalanche token transfers is using event-driven architecture. You configure WebSocket subscriptions to monitor Transfer events, decode the logs, and dispatch real-time alerts or webhooks.

Do I need a WebSocket connection for real-time Avalanche event indexing?

You need a WebSocket connection for real-time Avalanche event indexing to receive instant push notifications. Alternatively, you can use HTTP polling to fetch historical data or check for updates at regular intervals.

How does log decoding work for Avalanche smart contract events?

Log decoding for Avalanche smart contract events involves parsing raw blockchain log data using libraries like viem or ethers.js. This process translates encoded event inputs into readable formats for storage or webhook dispatch.

Can the event-driven-backend skill handle both real-time alerts and historical data retrieval?

The event-driven-backend skill handles both real-time alerts and historical data retrieval. It uses WebSocket subscriptions for instant event notifications and HTTP polling for indexing past contract activities into a database.