API
Hydro
Mutations
One Time Plan

One Time Plan

More info on plans here.

The pubkey field in the mutation input is optional. If included, the setup will be based on that specific node. If omitted, the setup defaults to the pubkey associated with the user's account.

Mutation

mutation CreateLiquidityPlan($input: CreateLiquidityPlanInput) {
  createLiquidityPlan(input: $input) {
    id
    metric
    pubkey
    is_enabled
    is_deleted
    one_time_plan {
      date
      demand
    }
  }
}

Variables

{
  "input": {
    "one_time_plan": {
      "date": ISO FORMATTED DATE, // Example: 2023-11-01T13:26:35Z
      "demand": number,
      "metric": "ONE_TIME",
      "pubkey": string
    }
  }
}

Authenticated Endpoint: requires an API key

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