Withdraw constructor
Withdraw({
- required int accountId,
- required int subAccountId,
- required int toChainId,
- required String toAddress,
- required int l2SourceToken,
- required int l1TargetToken,
- required String amount,
- String? callData,
- required String fee,
- required int nonce,
- required bool withdrawToL1,
- required int withdrawFeeRatio,
- int? ts,
- dynamic hint,
Implementation
factory Withdraw(
{required int accountId,
required int subAccountId,
required int toChainId,
required String toAddress,
required int l2SourceToken,
required int l1TargetToken,
required String amount,
String? callData,
required String fee,
required int nonce,
required bool withdrawToL1,
required int withdrawFeeRatio,
int? ts,
dynamic hint}) =>
RustLib.instance.api.withdrawNew(
accountId: accountId,
subAccountId: subAccountId,
toChainId: toChainId,
toAddress: toAddress,
l2SourceToken: l2SourceToken,
l1TargetToken: l1TargetToken,
amount: amount,
callData: callData,
fee: fee,
nonce: nonce,
withdrawToL1: withdrawToL1,
withdrawFeeRatio: withdrawFeeRatio,
ts: ts,
hint: hint);