Skip to content
HALOWERK

Blockchain Data

pair swap exact output input floor

Token swap cost returns the standard V2 router input quote for an exact output quantity. Use it when an agent needs the required raw input for a selected output.

POST https://kette.halowerk.com/v1/pair-swap-exact-output-input-floor

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": "1000000000000000",
  "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 →