TxSummary

This commit is contained in:
Jakob Notland 2026-04-29 13:17:21 +02:00
parent 201e234bef
commit f2e98cd81a

View file

@ -134,11 +134,27 @@ export interface ErrorMessage extends ProtocolMessage {
error: string;
}
export interface TxSummaryTokenChange {
categoryId: string; // hex token category ID
fungibleAmount: string; // signed bigint as string (negative = spending, positive = receiving)
nftCount?: number;
symbol?: string;
decimals?: number;
}
export interface TxSummary {
netBchSats: string; // signed bigint as string (negative = spending, positive = receiving)
tokenChanges: TxSummaryTokenChange[];
}
export interface SignTransactionRequest extends ProtocolMessage {
action: RelayMsgAction.SignTransactionRequest;
transaction: WcSignTransactionRequest;
sequence: number;
inputPaths: [number, PathName, number][]; // [inputIndex, pathName, addressIndex]
/// Dapp-provided transaction summary. Wallets should use this for display
/// when present rather than parsing the raw transaction themselves.
txSummary?: TxSummary;
}
export interface SignTransactionResponse extends ProtocolMessage {