Skip to main content
यह गाइड प्रदर्शित करती है कि कैसे एक monitoring system बनाया जाए जो on-chain events को track करता है, transaction data को process करता है, और webhooks के माध्यम से रीयल-टाइम notifications deliver करता है। यह Tenderly के Alert system के trigger criteria को Web3Actions के साथ मिलाती है, single-event tracking से लेकर multi-contract interactions तक के setups को cover करते हुए।
यह गाइड मानती है कि आपके पास एक Tenderly account है और Web3Actions और blockchain events से बुनियादी परिचय है।

Modular Monitoring with Web3Actions

पूर्वापेक्षाएँ

शुरू करने से पहले, सुनिश्चित करें कि आपके पास है:
  • Node.js (नवीनतम संस्करण के रूप में वर्तमान में v20 समर्थित है)
  • Tenderly CLI स्थापित
  • data प्राप्त करने के लिए एक webhook endpoint
  • TypeScript की बुनियादी समझ

System Setup

Core Components

Transaction Processing

system transaction information को process करके शुरू होता है:
showLineNumbers
यह component:
  • transaction hash और network capture करता है
  • Tenderly API के माध्यम से transaction traces retrieve करता है
  • block information को process करता है

Contract Information Retrieval

Contract information (names और ABIs) Contracts API का उपयोग करके fetch की जाती है।
showLineNumbers

Event Processing

Event processing विशेष functions के माध्यम से संभाला जाता है:
showLineNumbers
यह अनुभाग:
  • name द्वारा events filter करता है
  • event parameters extract करता है
  • event addresses process करता है

Webhook interaction

system इस structured data को Axios का उपयोग करके आपके webhook पर भेजता है:
showLineNumbers

Troubleshooting

सामान्य समस्याएँ और समाधान:
  1. Missing Events
    • सत्यापित करें कि EVENT_NAME contract events से बिल्कुल मेल खाता है
    • Tenderly dashboard में alert configuration की जाँच करें
    • event emission के लिए transaction logs की समीक्षा करें
  2. API Errors
    • BEARER token अनुमतियाँ validate करें
    • API endpoint उपलब्धता की जाँच करें
    • network configuration सत्यापित करें
  3. Webhook Issues
    • WEBHOOK_URL पहुँच की पुष्टि करें
    • जाँचें कि payload format अपेक्षाओं से मेल खाता है
    • webhook endpoint logs की निगरानी करें