Skip to content
HALOWERK

Blockchain Data

coinwerk / aging loss allowance

Coinwerk: Compute a portfolio allowance using caller-supplied loss rates per item, rounding the aggregate up once. Uses supplied records only. USDC amounts are integer micro-USDC strings; rates labeled bps are basis points.

POST https://kette.halowerk.com/v1/coinwerk/aging-loss-allowance

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
balances_unitsarrayYes
loss_bpsarrayYes
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "balances_units",
    "loss_bps"
  ],
  "properties": {
    "balances_units": {
      "type": "array",
      "maxItems": 100,
      "items": {
        "type": "string",
        "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
        "maxLength": 79
      }
    },
    "loss_bps": {
      "type": "array",
      "maxItems": 100,
      "items": {
        "type": "string",
        "pattern": "^(0|[1-9][0-9]{0,3}|10000)(?![\\s\\S])",
        "maxLength": 79
      }
    }
  }
}

Open original schema

Published input example

{
  "balances_units": [
    "100",
    "200"
  ],
  "loss_bps": [
    "1000",
    "2500"
  ]
}

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