Skip to content
HALOWERK

Blockchain Data

coinwerk / ledger reversal cap

Coinwerk: Compute the amount eligible for a new reversal after deducting all previously accepted partial reversals. Uses supplied records only. USDC amounts are integer micro-USDC strings; rates labeled bps are basis points.

POST https://kette.halowerk.com/v1/coinwerk/ledger-reversal-cap

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
original_unitsstringYes
prior_reversals_unitsarrayYes
requested_unitsstringYes
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "original_units",
    "prior_reversals_units",
    "requested_units"
  ],
  "properties": {
    "original_units": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "prior_reversals_units": {
      "type": "array",
      "maxItems": 100,
      "items": {
        "type": "string",
        "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
        "maxLength": 79
      }
    },
    "requested_units": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    }
  }
}

Open original schema

Published input example

{
  "original_units": "100",
  "prior_reversals_units": [
    "30",
    "25"
  ],
  "requested_units": "60"
}

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 โ†’