Skip to content

@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 ​

Properties ​

asset ​

ts
asset: AssetInfo;

Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:65

The asset moved (a swap's assetIn).

Inherited from ​

ResultBase.asset


assetOut ​

ts
assetOut: AssetInfo;

Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:139


change ​

ts
change: CircuitAmount;

Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:155


commitments ​

ts
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 ​

ResultBase.commitments


creditCommitment ​

ts
creditCommitment: Hex32;

Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:149

Commitment of the output note; await it with awaitCommitments.


deadline ​

ts
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 ​

ts
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 ​

ts
fees: FeeBreakdown;

Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:73

Inherited from ​

ResultBase.fees


gross ​

ts
gross: Money;

Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:140


kind ​

ts
kind: "swap";

Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:61

Inherited from ​

ResultBase.kind


net ​

ts
net: Money;

Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:142

Sent to the venue.


nonZeroCommitments ​

ts
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 ​

ResultBase.nonZeroCommitments


onLadder ​

ts
onLadder: boolean;

Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:143


operation? ​

ts
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 ​

ResultBase.operation


opId ​

ts
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 ​

ResultBase.opId


ownCommitments ​

ts
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 ​

ResultBase.ownCommitments


refundCommitment ​

ts
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 ​

ts
refundCredit: Money;

Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:147

The refund note's value if it does not.


spent ​

ts
spent: string[];

Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:154


txHash ​

ts
txHash: Hex32;

Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:66

Inherited from ​

ResultBase.txHash