ethTxOptionNew method
EthTxOption
ethTxOptionNew({
- required bool isSupportEip1559,
- required String to,
- double? nonce,
- String? value,
- double? gas,
- String? gasPrice,
- dynamic hint,
override
Implementation
@override
EthTxOption ethTxOptionNew(
{required bool isSupportEip1559,
required String to,
double? nonce,
String? value,
double? gas,
String? gasPrice,
dynamic hint}) {
return handler.executeSync(SyncTask(
callFfi: () {
var arg0 = cst_encode_bool(isSupportEip1559);
var arg1 = cst_encode_String(to);
var arg2 = cst_encode_opt_box_autoadd_f_64(nonce);
var arg3 = cst_encode_opt_String(value);
var arg4 = cst_encode_opt_box_autoadd_f_64(gas);
var arg5 = cst_encode_opt_String(gasPrice);
return wire.wire_EthTxOption_new(arg0, arg1, arg2, arg3, arg4, arg5);
},
codec: DcoCodec(
decodeSuccessData:
dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockEthTxOption,
decodeErrorData: dco_decode_AnyhowException,
),
constMeta: kEthTxOptionNewConstMeta,
argValues: [isSupportEip1559, to, nonce, value, gas, gasPrice],
apiImpl: this,
hint: hint,
));
}