SignTransaction constructor
SignTransaction({})
Implementation
SignTransaction({
required String fromAddress,
required String chainId,
String? toAddress,
BigInt? weiValue,
String? data,
int? nonce,
BigInt? gasPriceInWei,
BigInt? maxFeePerGas,
BigInt? maxPriorityFeePerGas,
BigInt? gasLimit,
}) : super(
method: 'eth_signTransaction',
paramsJson: jsonEncode({
'fromAddress': fromAddress,
'chainId': chainId,
if (toAddress != null) 'toAddress': toAddress,
if (weiValue != null) 'weiValue': weiValue.toString(),
if (data != null) 'data': data,
if (nonce != null) 'nonce': nonce,
if (gasPriceInWei != null)
'gasPriceInWei': gasPriceInWei.toString(),
if (maxFeePerGas != null) 'maxFeePerGas': maxFeePerGas.toString(),
if (maxPriorityFeePerGas != null)
'maxPriorityFeePerGas': maxPriorityFeePerGas.toString(),
if (gasLimit != null) 'gasLimit': gasLimit.toString(),
}),
);