deprecated
  • orbs-v3 overview
  • orbs-vm
    • Introduction
    • Get started
    • Dockerfile
      • Working Directory
      • Entry point
      • Health check
    • Status
    • Deployment
  • orbs-lambda
    • Introduction
    • Getting Started
    • Supported Networks
    • Project Structure
    • Lambda Triggers
      • OnSchedule
      • onBlocks
      • onEvent
      • Subscribing To Triggers
    • Writing Your Lambda Function
    • Test And Run Locally
    • Paying For Your Transactions
    • Submit Your Lambda
Powered by GitBook
On this page
  1. orbs-lambda
  2. Lambda Triggers

onEvent

Listen to on-chain events and trigger your function whenever these are emitted.

Interface:

engine.onEvent(
    fn, // function to execute
    contractAddress, // smart contract address
    abi, // Application Binary Interface (ABI) for an Ethereum smart contract. (array)
    eventNames, // array of the contract's event names you wish to listen to
    network, // string representation of one of the supported networks
    config // your custom configuration. key:value object
)
PreviousonBlocksNextSubscribing To Triggers

Last updated 2 years ago