Issue signed receipt
issue_receiptIssue a signed receipt for an already-settled payment, and counter-sign it into a hash chain when a ledger is configured. Returns the receipt artifact and digest for verifiable proof.
Instructions
Issue an x402 offer-receipt (EIP-712) plus a Tersign action record for a payment that has ALREADY settled, and counter-sign both into your hash chain when a ledger is configured. Use this for money that moved; use record_disclosure for a non-payment agent action. Side effects: signs with TERSIGN_SELLER_KEY, and performs ONE network write to the ledger when TERSIGN_LEDGER_URL/_API_KEY/_SELLER_ID are set (without them it signs locally and returns an unchained artifact). Returns the signed receipt artifact, its keccak256 canonical digest, and — when chained — the ledger counter-signature and sequence number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payer | Yes | 0x address that paid — the party who can later open a dispute against this receipt | |
| txHash | No | on-chain settlement transaction hash, when one exists; omit for off-chain or fiat settlement | |
| network | Yes | settlement network as CAIP-2, e.g. "eip155:8453" for Base mainnet | |
| currency | No | settlement currency code, e.g. "USDC" or "USD" | |
| principal | No | the party on whose authority the paying agent acted (x402 sense: the buyer who delegated). Omit when a human paid directly | |
| settledAt | No | unix seconds when settlement occurred; defaults to now. Set it explicitly when back-filling | |
| taxScheme | No | tax regime the seller is accounting under; recorded, never computed — Tersign does not calculate tax | |
| resourceUrl | Yes | absolute URL of the resource that was paid for; appears verbatim in the receipt | |
| supplyDescription | Yes | what was supplied, in the seller's own words; the human-readable line an auditor or venue reads |