sendEip7702Transaction method

Future<String> sendEip7702Transaction({
  1. required List<Authorization> authorizationList,
  2. String? to,
  3. BigInt? value,
  4. Uint8List? data,
  5. BigInt? gasLimit,
  6. BigInt? maxFeePerGas,
  7. BigInt? maxPriorityFeePerGas,
  8. BigInt? nonce,
})

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);
}