toJsonAsync method
Resolve registered custom intents before handing the transaction to a wallet. Supported intents are retained for that wallet to resolve.
Implementation
Future<String> toJsonAsync([SerializeTransactionOptions? options]) async {
options ??= SerializeTransactionOptions();
await _resolveCustomIntents(
options,
supported: options.supportedIntents ?? const [],
);
return toJson(options);
}