@lelantos-org/sdk / index / TransferOptions
Interface: TransferOptions โ
Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:51
Shielded transfer. Throws InsufficientCoverError if no 1- or 2-note cover exists, unless autoConsolidate: true.
Properties โ
amount โ
amount: AmountLike;Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:54
asset? โ
optional asset?: AssetRef;Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:56
Id, token address or symbol. Default asset 1.
autoConsolidate? โ
optional autoConsolidate?: boolean;Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:70
feeAsset? โ
optional feeAsset?: AssetRef;Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:68
Asset to pay the relayer's shielded fee in. Defaults to the asset being moved.
A different asset costs two extra slots โ an input note of that asset and an output for its change โ so it needs a circuit shape wide enough to hold them: nOut >= 4, which the default 4ร4 satisfies and a narrower pool on TRANSACT_3X3 does not. The relayer must also accept it: /chains publishes the list, and one it does not quote is rejected before any proving starts.
onPhase? โ
optional onPhase?: OnPhase<SpendPhase>;Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:71
selectOpts? โ
optional selectOpts?: SelectOpts;Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:69
to โ
to: ShieldedAddressLike;Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:53
Recipient shielded address.