Skip to content
HALOWERK

Blockchain Data

coinwerk / fee rebate accrual

Coinwerk: Calculate a capped rebate on eligible fees after excluding refunded fees. Uses supplied records only. USDC amounts are integer micro-USDC strings; rates labeled bps are basis points.

POST https://kette.halowerk.com/v1/coinwerk/fee-rebate-accrual

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
charged_unitsstringYes
refunded_unitsstringYes
rebate_bpsstringYes
rebate_cap_unitsstringYes
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "charged_units",
    "refunded_units",
    "rebate_bps",
    "rebate_cap_units"
  ],
  "properties": {
    "charged_units": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "refunded_units": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "rebate_bps": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,3}|10000)(?![\\s\\S])",
      "maxLength": 79
    },
    "rebate_cap_units": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    }
  }
}

Open original schema

Published input example

{
  "charged_units": "900",
  "refunded_units": "100",
  "rebate_bps": "2500",
  "rebate_cap_units": "150"
}

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