Skip to content

@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 โ€‹

ts
amount: AmountLike;

Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:80


asset? โ€‹

ts
optional asset?: AssetRef;

Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:82

Id, token address or symbol. Default asset 1.


autoConsolidate? โ€‹

ts
optional autoConsolidate?: boolean;

Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:96


feeAsset? โ€‹

ts
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? โ€‹

ts
optional onPhase?: OnPhase<SpendPhase>;

Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:97


selectOpts? โ€‹

ts
optional selectOpts?: SelectOpts;

Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:95


to โ€‹

ts
to: EvmAddressLike;

Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:79

L1 ERC-20 recipient.

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub