Skip to main content

Transaction History

This guide covers querying and filtering transaction history using the Privacy Boost React SDK’s useTransactions hook.

Basic Usage

Return Value

pending includes both pending and preconfirmed transactions — anything still in-flight from finality’s perspective. Use tx.phase (see Transaction Lifecycle) to distinguish the spendable preconfirmed transfers from the rest.

Transaction Types

Fetching History

Basic Fetch

With Filters

Filter Parameters

Complete Example

Transaction Details Modal

Refresh Transactions

Preconfirmation and Auto-Polling

In-flight transactions pass through pending → preconfirmed → completed (or failed). useTransactions auto-polls whenever any transaction is in flight and exposes two callbacks so you can react to the transitions without owning the polling loop yourself.

Gating chained actions on preconfirmation

Branch on tx.phase rather than tx.statusphase === 'spendable' is the first moment a transfer’s output note can be used as input for the next private action.
See Transaction Lifecycle for the full state machine and recommended UX patterns.

Next Steps