Skip to content

@lelantos-org/sdk / index / DepositOptions

Interface: DepositOptions โ€‹

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

Shield ERC-20 into the MASP. For native ETH, set asEth: true.

Properties โ€‹

amount โ€‹

ts
amount: AmountLike;

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

bigint is exact circuit units; a string is a human amount of the token, e.g. "0.25". See AmountLike.


asEth? โ€‹

ts
optional asEth?: boolean;

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

Native-ETH deposit. Requires the registered WETH asset id; SDK calls NativeAdapter.depositNative with msg.value = total.


asset? โ€‹

ts
optional asset?: AssetRef;

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

Id, token address or symbol. Default asset 1.


deadline? โ€‹

ts
optional deadline?: bigint;

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

Unix-seconds. Default now + 3600.


onPhase? โ€‹

ts
optional onPhase?: OnPhase<DepositPhase>;

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

Errors from callback are swallowed.


to? โ€‹

ts
optional to?: ShieldedAddressLike;

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

Shielded recipient. Defaults to own address.

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