- canonicalizeBaseUrlread-only#
Canonicalize a base URL the way wallet-core does for exchange and auditor base URLs.
Request:
The request must be a CanonicalizeBaseUrlRequest object.
Response:
On success, the result is a CanonicalizeBaseUrlResponse object.
Details:
An
https://scheme is prepended when the URL has no scheme, a trailing slash is appended to the path when missing, and any query and fragment are removed.
interface CanonicalizeBaseUrlRequest {
url: string;
}
interface CanonicalizeBaseUrlResponse {
url: string;
}