prepareForSerialization method
Resolves intents so the transaction can be serialized to JSON, without requiring gas/sender/object versions (unlike build). Intents named in SerializeTransactionOptions.supportedIntents are left for the recipient.
Implementation
Future<void> prepareForSerialization([SerializeTransactionOptions? options]) {
options ??= SerializeTransactionOptions();
return _resolveIntents(options, supportedIntents: options.supportedIntents);
}