LogoLogo
MidpointContact UsThe Docs are Wrong!
  • What is Midpoint
  • What actually is a midpoint?
  • Midpoint FAQs
  • Get Started
    • Sample Midpoints
      • Filecoin Filrep Oracle: Obtain miner reputations on-chain
      • Oracle: Call any API from a smart contract
      • Listener: Subscribe an internal service to any event
      • Data Feed: Stream a data feed on-chain at regular intervals
      • Data Bridge: Pass arbitrary messages between chains
      • Automation: Ensure a function is called at regular intervals
    • Videos
  • Using Midpoint
    • API Key
    • Midpoint CLI
    • GraphQL API
    • Dashboard
  • Core Concepts
    • Midpoints
      • Midpoint ID
      • Sources
      • Tasks
      • Source and Task Definitions
        • Secrets
        • Variables
        • Exclude Logs
        • Extracts
    • Requests
      • Request ID
      • Events
    • Credits and Payment
  • Sources
    • Startpoint Called
    • EVM Event Emitted
    • Cron Job Triggered
  • Tasks
    • Make HTTP Request
      • OAuth and Multi-Step Authentication
    • Call EVM Function
    • Transact to EVM Function
      • Security
    • Shift Decimal
  • More Reading
    • Chain IDs
    • Startpoints
    • Midpoint EOAs
  • Get in Touch
    • Contact Links
Powered by GitBook
On this page

Was this helpful?

  1. Core Concepts
  2. Midpoints
  3. Source and Task Definitions

Extracts

Extract variables from each source and task.

Extracts represent the variables that can be extracted from a particular source or task. The extract is defined as the following:

extracts: [
    {
        name: string,
        from: string
    }
]

Every source and task has a different set of extracts. Some, like the cronJobTriggered source, have only one Extract (Timestamp, which is provided for each source and task). Others, like the Make HTTP Request task, can extract arbitrary information from the body that was returned by an HTTP response. For a complete list of each sources/tasks extracts, view the page for the particular source/task.

PreviousExclude LogsNextRequests

Last updated 2 years ago

Was this helpful?