buildAndBroadcastTransaction method

Future<String> buildAndBroadcastTransaction({
  1. required String sender,
  2. required String recipient,
  3. required Uint8List seed,
  4. required EvmFeeInformation<EvmGasPrice>? feeInfo,
  5. required Uint8List? data,
  6. required BigInt? value,
  7. List<AccessListItem>? accessList,
})

Implementation

Future<String> buildAndBroadcastTransaction({
  required String sender,
  required String recipient,
  required Uint8List seed,
  required EvmFeeInformation? feeInfo,
  required Uint8List? data,
  required BigInt? value,
  List<AccessListItem>? accessList,
}) async {
  final signedTx = await buildTransaction(
    sender: sender,
    recipient: recipient,
    seed: seed,
    feeInfo: feeInfo,
    data: data,
    value: value,
    accessList: accessList,
  );

  final result = await sendRawTransaction(signedTx.serialized.toHex);

  return result;
}