Transaction Receipt
Provenance receipt with verification hash for completed actions.
Install
npx ax-depute@latest add transaction-receiptpnpm dlx ax-depute@latest add transaction-receiptyarn dlx ax-depute@latest add transaction-receiptbunx ax-depute@latest add transaction-receiptOverview
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-98765Timestamp2026-03-19T14:30:00Z
Agentpayment-agent-01
Amount$5,000.00
FromAccount ****4521
ToAccount ****8903
Fee$2.50
NetworkSWIFT
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
| Prop | Type | Default | Description |
|---|---|---|---|
transactionId | string | — | Unique identifier |
title | string | — | Title of the receipt |
status | 'success' | 'failed' | 'pending' | 'reverted' | 'success' | Current status |
timestamp | string | — | Completion timestamp |
lineItems | ReceiptLineItem[] | — | Key-value pairs of the transaction |
hash | string | — | Verification hash / signature |
agentId | string | — | ID of the acting agent |
copyableHash | boolean | true | Allow 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.