devInspectTransaction method

Future<DevInspectResults> devInspectTransaction(
  1. String sender,
  2. Uint8List txBytes, {
  3. BigInt? gasPrice,
  4. String? epoch,
})

Implementation

Future<DevInspectResults> devInspectTransaction(
  String sender,
  Uint8List txBytes, {
  BigInt? gasPrice,
  String? epoch,
}) async {
  final txBase64 = base64Encode(txBytes);

  final result = await client.request('sui_devInspectTransactionBlock', [
    sender,
    txBase64,
    gasPrice?.toInt(),
    epoch,
  ]);
  return DevInspectResults.fromJson(result);
}