API
Hydro
Queries
Get Plan

Get a Plan

With this query you can get a specific plan's information.

Query

query GetLiquidityPlan($planId: String!) {
  getLiquidityPlan(plan_id: $planId) {
    id
    is_deleted
    is_enabled
    metric
    one_time_plan {
      date
      demand
    }
    pubkey
    recurring_plan {
      demand
      frequency_minutes
    }
    value_check_plan {
      frequency_minutes
      operator
      trigger_value
    }
  }
}
Authenticated Endpoint: requires an API key

See it in the Apollo Explorer here (opens in a new tab).