sendEip7702Transaction method
Sends an EIP-7702 transaction with authorization list.
Implementation
Future<String> sendEip7702Transaction({
required List<Authorization> authorizationList,
String? to,
BigInt? value,
Uint8List? data,
BigInt? gasLimit,
BigInt? maxFeePerGas,
BigInt? maxPriorityFeePerGas,
BigInt? nonce,
}) async {
final request = TransactionRequest(
type: TransactionType.eip7702,
to: to,
value: value,
data: data,
authorizationList: authorizationList,
gasLimit: gasLimit,
maxFeePerGas: maxFeePerGas,
maxPriorityFeePerGas: maxPriorityFeePerGas,
nonce: nonce,
);
return sendTransactionRequest(request);
}