@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 โ
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? โ
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? โ
optional asset?: AssetRef;Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:18
Id, token address or symbol. Default asset 1.
deadline? โ
optional deadline?: bigint;Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:22
Unix-seconds. Default now + 3600.
onPhase? โ
optional onPhase?: OnPhase<DepositPhase>;Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:29
Errors from callback are swallowed.
to? โ
optional to?: ShieldedAddressLike;Defined in: @lelantos-org/sdk/dist/wallet/options.d.ts:20
Shielded recipient. Defaults to own address.