validateRawTx method
Validate a raw transaction Returns null for valid transactions, or an error message for invalid ones
Implementation
Future<Tx> validateRawTx(Uint8List rawTx) async {
final request = pb.RawTx()..rawTx = rawTx;
final data = await _proxyInterface.post(
'/validate-tx',
request.writeToBuffer(),
);
final response = pb.Tx.fromBuffer(data);
return Tx.fromProto(response);
}