script property

Script? get script

The script from the scriptSig bytes or null if the bytes do not represent a valid script.

Implementation

Script? get script {
  try {
    return Script.decompile(scriptSig);
  } on Exception {
    return null;
  }
}