@lelantos-org/sdk / index / SwapResult
Interface: SwapResult
Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:138
Fields every shielded operation's result carries. kind discriminates.
Extends
ResultBase<"swap">
Properties
asset
asset: AssetInfo;Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:65
The asset moved (a swap's assetIn).
Inherited from
assetOut
assetOut: AssetInfo;Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:139
change
change: CircuitAmount;Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:155
commitments
commitments: Hex32[];Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:68
Every output commitment, in slot order. Slots are shuffled; use the named fields.
Inherited from
creditCommitment
creditCommitment: Hex32;Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:149
Commitment of the output note; await it with awaitCommitments.
deadline
deadline: bigint;Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:153
Unix seconds after which the wrapper refunds instead of swapping.
expectedCredit
expectedCredit: Money;Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:145
The output note's value if the swap fills: the quote's credit.
fees
fees: FeeBreakdown;Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:73
Inherited from
gross
gross: Money;Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:140
kind
kind: "swap";Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:61
Inherited from
net
net: Money;Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:142
Sent to the venue.
nonZeroCommitments
nonZeroCommitments: Hex32[];Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:72
The subset with non-zero value; zero-value outputs are padding.
Inherited from
onLadder
onLadder: boolean;Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:143
operation?
optional operation?: OperationLocation;Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:78
Where this operation sits in txHash, which a relayer bundle may share. Absent when the receipt could not be read; the operation still succeeded.
Inherited from
opId
opId: string;Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:63
The id onPhase and any error for this call carried.
Inherited from
ownCommitments
ownCommitments: Hex32[];Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:70
The subset this wallet will recover by scanning (change, own deposits).
Inherited from
refundCommitment
refundCommitment: Hex32;Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:151
Commitment of the refund note. Exactly one of the two lands.
refundCredit
refundCredit: Money;Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:147
The refund note's value if it does not.
spent
spent: string[];Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:154
txHash
txHash: Hex32;Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:66