isPreparedForSerialization method
Whether the transaction has no unresolved $Intent commands (other than
those in supportedIntents) — i.e. it can be serialized to JSON as-is.
Implementation
bool isPreparedForSerialization({List<String>? supportedIntents}) {
return !_blockData.commands.any(
(command) =>
command['\$kind'] == '\$Intent' &&
!(supportedIntents?.contains(command['\$Intent']['name']) ?? false),
);
}