transferNew method

  1. @override
Transfer transferNew({
  1. required int accountId,
  2. required String toAddress,
  3. required int fromSubAccountId,
  4. required int toSubAccountId,
  5. required int token,
  6. required String fee,
  7. required String amount,
  8. required int nonce,
  9. int? ts,
  10. dynamic hint,
})
override

Implementation

@override
Transfer transferNew(
    {required int accountId,
    required String toAddress,
    required int fromSubAccountId,
    required int toSubAccountId,
    required int token,
    required String fee,
    required String amount,
    required int nonce,
    int? ts,
    dynamic hint}) {
  return handler.executeSync(SyncTask(
    callFfi: () {
      var arg0 = cst_encode_u_32(accountId);
      var arg1 = cst_encode_String(toAddress);
      var arg2 = cst_encode_u_8(fromSubAccountId);
      var arg3 = cst_encode_u_8(toSubAccountId);
      var arg4 = cst_encode_u_32(token);
      var arg5 = cst_encode_String(fee);
      var arg6 = cst_encode_String(amount);
      var arg7 = cst_encode_u_32(nonce);
      var arg8 = cst_encode_opt_box_autoadd_u_32(ts);
      return wire.wire_Transfer_new(
          arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
    },
    codec: DcoCodec(
      decodeSuccessData:
          dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTransfer,
      decodeErrorData: dco_decode_AnyhowException,
    ),
    constMeta: kTransferNewConstMeta,
    argValues: [
      accountId,
      toAddress,
      fromSubAccountId,
      toSubAccountId,
      token,
      fee,
      amount,
      nonce,
      ts
    ],
    apiImpl: this,
    hint: hint,
  ));
}