Skip to content
HALOWERK

Blockchain Data

pool range single step swap

Single-step swap cost returns gross input, fee and output required to reach the target square-root price. Use it when an agent needs replaying a constant-liquidity segment.

POST https://kette.halowerk.com/v1/pool-range-single-step-swap

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
sqrtstringYes
targetstringYes
liquiditystringYes
fee_ppmintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "sqrt": {
      "type": "string",
      "pattern": "^[0-9]{1,49}$"
    },
    "target": {
      "type": "string",
      "pattern": "^[0-9]{1,49}$"
    },
    "liquidity": {
      "type": "string",
      "pattern": "^[0-9]{1,49}$"
    },
    "fee_ppm": {
      "type": "integer",
      "minimum": 0,
      "maximum": 999999
    }
  },
  "required": [
    "sqrt",
    "target",
    "liquidity",
    "fee_ppm"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "sqrt": "1931360149565646249726964824798706",
  "target": "1929428789416080603477237859973907",
  "liquidity": "1045974769787936709",
  "fee_ppm": 500
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’