@lelantos-org/sdk / index / WithdrawOptions
Interface: WithdrawOptions โ
Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:77
Unshield to ERC20. For native ETH use withdrawEth. Throws InsufficientCoverError on no cover, unless autoConsolidate: true.
Properties โ
amount โ
amount: AmountLike;Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:80
asset? โ
optional asset?: AssetRef;Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:82
Id, token address or symbol. Default asset 1.
autoConsolidate? โ
optional autoConsolidate?: boolean;Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:96
feeAsset? โ
optional feeAsset?: AssetRef;Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:94
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:97
selectOpts? โ
optional selectOpts?: SelectOpts;Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:95
to โ
to: EvmAddressLike;Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:79
L1 ERC-20 recipient.