Zum Inhalt
HALOWERK

X402werk

channel / audit

Checks vouchers of a payment channel by computation only - nothing is ever claimed, redeemed or refunded. Signatures are verified cryptographically against the address each voucher claims to be signed by, in EIP-712 form when the typed data is supplied, otherwise as a plain message signature. Double spending is the expensive case and is checked in full: every voucher id occurring more than once is reported with all its occurrences and whether the duplicates agree on the amount.

POST https://x402.halowerk.com/channel/audit

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
chainstringNeinOptional chain, needed only to read the on-chain state, as CAIP-2 such as eip155:8453.
channel_contractstringNeinOptional channel contract address.
channel_idstringNeinOptional channel identifier as bytes32.
vouchersarrayJaThe vouchers to audit.
depositedstringNeinOptional deposit in the smallest unit, used when the contract cannot be read.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "vouchers"
  ],
  "additionalProperties": false,
  "properties": {
    "chain": {
      "type": "string",
      "description": "Optional chain, needed only to read the on-chain state, as CAIP-2 such as eip155:8453."
    },
    "channel_contract": {
      "type": "string",
      "description": "Optional channel contract address."
    },
    "channel_id": {
      "type": "string",
      "description": "Optional channel identifier as bytes32."
    },
    "vouchers": {
      "type": "array",
      "minItems": 1,
      "maxItems": 200,
      "description": "The vouchers to audit.",
      "items": {
        "type": "object",
        "required": [
          "id",
          "amount"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "description": "Voucher identifier."
          },
          "amount": {
            "type": "string",
            "description": "Amount in the smallest unit, as a decimal string."
          },
          "signed_by": {
            "type": "string",
            "description": "Address that is claimed to have signed."
          },
          "signature": {
            "type": "string",
            "description": "The signature, 0x-prefixed."
          },
          "message": {
            "type": "string",
            "description": "The signed message, for a plain message signature."
          },
          "typed_data": {
            "type": "object",
            "description": "EIP-712 payload with domain, types, primaryType and message."
          },
          "claimed": {
            "type": "boolean",
            "description": "Whether the caller considers this voucher already claimed."
          },
          "expiry": {
            "type": "string",
            "description": "Optional expiry as a unix timestamp in seconds."
          }
        }
      }
    },
    "deposited": {
      "type": "string",
      "description": "Optional deposit in the smallest unit, used when the contract cannot be read."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "vouchers": [
    {
      "id": "beispiel",
      "amount": "beispiel"
    }
  ]
}

Ergebnis & Dokumentation

Veröffentlichtes Ergebnisschema anzeigen
{
  "$ref": "https://x402.halowerk.com/channel/audit/schema#/outputSchema"
}

Veröffentlichtes Ergebnisbeispiel öffnen

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →