Transaction lifecycle and recent activity
Use useTransactionFlow for wallet approval, submission, independent ledger confirmation and recent activity in the ready-made account panel. The application/protocol still constructs valid Canton commands and the operation-specific transfer or swap flow.
Submit once and confirm separately
The status endpoint belongs to your app. Authorize the party/network server-side and correlate the lookup to the original command or business intent. Return confirmed with a real updateId only for the intended ledger transaction, failed with a reason for an authoritative failure, or unknown when no definitive result is available. With no wallet identifier, use the app's original command/intent or keep the result unknown.
Status and retry semantics
awaitingApproval means a wallet request is pending, not that a prompt was definitely displayed. submitted means a receipt/acknowledgement returned.confirmed requires the independent ledger lookup and a real update id.rejected is an explicit provider user rejection. failed is a preflight or authoritative ledger failure. unknown covers lost responses, invalid/conflicting confirmation and read timeouts.
Without confirm, an acknowledgement stays submitted. Confirmation defaults to 30 seconds, configurable from 1ms to five minutes. Local precondition/duplicate-request errors reject; otherwise submitTransaction resolves a status record. A pending response stays attached to the original wallet/party/network, and a new identity cannot reconcile it.
Automatic retry is disabled in useSubmitTransaction, useChoice, transfer/instruction actions, allocation creation/actions and allocation-request actions, including global or explicit per-mutation retry settings. Query retry policies remain available. A separate explicit submission is still app intent, so applications must manage command/intent deduplication.
Recent transactions and account scope
PartyLayerProvider and PartyLayerKit include the journal. Activity from useTransactionFlow appears in the standard ConnectButton account panel automatically, filtered by wallet, party and network. The panel shows the actual network and wallet-side recovery guidance. CIP-0103 does not define universal set-primary-account or switch-network methods; reconnect a wallet that does not notify the application of its changes.
useRecentTransactions() reads the shared current-account journal.RecentTransactions transactions={records} renders a custom view. The panel shows five entries, the store retains at most 100 and the account view returns twenty. Flows in the same provider share records and can reconcile the same current-account id.
The default remains memory-only and no journal is sent to telemetry. Existing mutation hooks, direct SDK calls and external writes are not automatically enrolled. Full history comes from an authorized application backend/indexer.
Optional pending journal and reload recovery
The journal and ready ledger-reader additions require SDK 0.21.0 / React 3.2.0 or later. During rollout, check npm availability before using these new exports; the existing memory-only flow and application confirmation callback remain compatible.
Import createTransactionJournal from @partylayer/react/journal and supply the stable result as PartyLayerKit.transactionJournal. This optional subpath belongs to the same package. Choose an app/environment namespace and explicit storage. The full guideincludes an SSR-safe example.
Only pending identifiers and identity metadata are retained, at most 100 records for seven days. Commands, signatures, credentials and error details are excluded. All restored records become unknown; no write or success is replayed. Call reconcile for an explicit read-only check, or useClearRecentTransactions to clear this provider's activity and journal.
Ready wallet proxy confirmation
createWalletLedgerReader(client, { networkId }).confirmTransaction can supply the read-only confirmer for compatible CIP-0103 ledger proxies. Capture the original commandId before submission and pass it as the second submitTransaction argument:{ commandId: payload.commandId }. The helper compares that command id and real update id against the ledger; missing correlation stays unknown. See thereader contract.
Transfers, swaps and holdings
Acceptance requires a valid operation, supported wallet/network, required preapprovals and actual ledger outcomes. A message signature alone proves neither send nor swap. Private Canton holdings are contract data, not a universal public balance endpoint. Use the typed useTokenHoldings query with an authorized app fetcher or supported wallet ledger proxy, preserve decimal strings and key reads by party/network and instrument admin/id.
Wallet balances · Token transfers ·Full GitHub guide
Automated fixtures cover lifecycle, retry safety and identity isolation. Final live sends and protocol-specific swaps remain separate acceptance evidence.