Depute Logo

Transaction Receipt

Provenance receipt with verification hash for completed actions.

Install

npx ax-depute@latest add transaction-receipt
pnpm dlx ax-depute@latest add transaction-receipt
yarn dlx ax-depute@latest add transaction-receipt
bunx ax-depute@latest add transaction-receipt

Overview

Transaction Receipt is the immutable audit log component. After an irreversible action successfully bypasses a gate, the human supervisor requires a permanent, verifiable record securely linking their approval to the system outcome.

Wire Transfer Complete

#TX-98765
Success
Timestamp2026-03-19T14:30:00Z
Agentpayment-agent-01
Amount$5,000.00
FromAccount ****4521
ToAccount ****8903
Fee$2.50
NetworkSWIFT
Transaction receipt: Wire Transfer Complete. Status: Success. ID: TX-98765. Completed at 2026-03-19T14:30:00Z.
Interactive StorybookView all states, toggle props, and test edge cases.

Basic Usage

<TransactionReceipt
  transactionId="TX-98765"
  title="Wire Transfer Complete"
  status="success"
  timestamp="2026-03-19T14:30:00Z"
  agentId="payment-agent-01"
  hash="0xabcdef1234567890abcdef1234567890fedcba09"
  lineItems={[
    { label: 'Amount', value: '$5,000.00', highlight: true },
    { label: 'From', value: 'Account ****4521' },
    { label: 'To', value: 'Account ****8903' },
  ]}
/>

Solution Patterns

This component acts as the final terminal output of an OrchestratorView node, replacing a generic ArtifactCard when the event is financial or structurally immutable.

Props

PropTypeDefaultDescription
transactionIdstringUnique identifier
titlestringTitle of the receipt
status'success' | 'failed' | 'pending' | 'reverted''success'Current status
timestampstringCompletion timestamp
lineItemsReceiptLineItem[]Key-value pairs of the transaction
hashstringVerification hash / signature
agentIdstringID of the acting agent
copyableHashbooleantrueAllow copying the hash

Design rationale

Why cryptographic hashes? A receipt is useless if it can be spoofed. Exposing the literal cryptographic proof (hash) of the transaction grounds the UI in verifiable reality, satisfying compliance requirements for non-repudiation.

On this page