submitSignedBCSTransaction method

Future submitSignedBCSTransaction(
  1. Uint8List signedTxn
)

Implementation

Future<dynamic> submitSignedBCSTransaction(Uint8List signedTxn) async {
  final path = "$endpoint/transactions";
  final file = MultipartFile.fromBytes(signedTxn).finalize();
  final options = Options(
    contentType: "application/x.aptos.signed_transaction+bcs",
    headers: {"content-length": signedTxn.length},
  );
  final resp = await http.post(path, data: file, options: options);
  return resp.data;
}