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

onBlocks

This trigger runs on consecutive block ranges and lets you apply your own logic on this range.

The interface is as follows:

engine.onBlocks(
    fn, // function to execute
    network, // string representation of one of the supported networks
    config // key:value object
)
PreviousOnScheduleNextonEvent

Last updated 2 years ago