Skip to content
HALOWERK

Blockchain Data

pair swap constant product growth

Liquidity fee retention returns the raw increase in the reserve product after one simulated swap. Use it when an agent needs to quantify fee and integer-rounding effects on the invariant.

POST https://kette.halowerk.com/v1/pair-swap-constant-product-growth

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
addressstringYes
amountstringYes
sideintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "address": {
      "type": "string",
      "maxLength": 160,
      "minLength": 1
    },
    "amount": {
      "type": "string",
      "pattern": "^[1-9][0-9]{0,32}$"
    },
    "side": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1
    }
  },
  "required": [
    "address",
    "amount",
    "side"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "address": "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc",
  "amount": "1000000",
  "side": 0
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-19 UTC.

More endpoints in this hub

All endpoints in this hub →