UX.SOL

Component

Transaction Review

Displays a normalized, wallet-agnostic transaction summary with parties, amounts, fees, network context, risk warnings, and controlled confirmation actions.

Preview

Transfer

Review transfer

Devnet

You send

1.25SOL

≈ $182.40

From

Connected wallet
4wBq…Vigw

To

ux.sol
7xKX…g88R

Development network

Devnet assets have no real-world value.

Network
Devnet
Network fee
0.000005 SOL
Total wallet debit
1.250005 SOL

Installation

terminal
$npx shadcn@latest add https://uxdotsol.xyz/r/transaction-review.json

Usage

transaction-review.tsx
"use client";
 
import { TransactionReview } from "@/components/uxdotsol/components/transaction-review";
 
export default function TransferReview() {
return (
<TransactionReview
intent={{
kind: "transfer",
pay: {
value: "1.25",
symbol: "SOL",
fiatValue: "≈ $182.40",
},
sender: {
label: "Connected wallet",
address: "4wBqpZM9xaSheZzJSMawUKKwhdpChKbZ5eu5ky4Vigw",
},
recipient: {
label: "ux.sol",
address: "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosg88R",
verified: true,
},
network: { cluster: "mainnet-beta" },
fees: [{ label: "Network fee", value: "0.000005 SOL" }],
walletDebit: { value: "1.250005", symbol: "SOL" },
}}
onCancel={() => history.back()}
onConfirm={() => {
// Continue to simulation or wallet signing.
}}
/>
);
}

Props / Arguments

NameTypeDefaultDescription
intentTransactionReviewIntentrequiredNormalized transaction kind, parties, amounts, network, fees, details, memo, and warnings displayed by the review.
confirmLabel / cancelLabelstring / string'Confirm transaction' / 'Cancel'Labels for the controlled review actions.
isConfirming / disabledboolean / booleanfalse / falseControls the pending presentation and action availability without owning submission state.
riskAcknowledgedbooleanuncontrolledControlled acknowledgement state for warnings marked requiresAcknowledgement.
defaultRiskAcknowledgedbooleanfalseInitial acknowledgement state when riskAcknowledged is not controlled.
onRiskAcknowledgedChange(acknowledged: boolean) => voidundefinedCalled when the user changes the risk acknowledgement checkbox.
onConfirm / onCancel() => void / () => voidundefined / undefinedControlled actions used by a parent flow to continue or leave the review step.
classNamestring''Optional classes applied to the outer review card.

Types

NameTypeDefaultDescription
TransactionReviewIntentobject-Provider-neutral transaction review model; precise amounts are represented as strings.
TransactionReviewWarning{ id; severity; title; description; requiresAcknowledgement? }-Informational, warning, or danger disclosure optionally requiring explicit acknowledgement.