wayfinder.resolveUrl()
Resolve ar:// URLs to dynamic gateway URLs using the configured routing strategy.
Parameters
originalUrl
(string
): The ar:// URL to resolve to a full gateway URLlogger
(Logger
, optional): Custom logger for this operation. Defaults to wayfinder's logger
Returns
Type: Promise<URL>
Returns a fully-qualified URL object that points to the selected gateway.
Examples
Legacy URLs
Transaction IDs
ArNS Names
Gateway Endpoints
Comparison with request()
Method | Network Request | Verification | Use Case |
---|---|---|---|
resolveUrl() | ✅ Yes | ❌ No | Get a dynamic URL for transaction id, ArNS name or gateway endpoint |
request() | ✅ Yes | ✅ Optional | Fetch and optionally verify data from an AR.IO gateway |
Related
- request(): Fetching data via Wayfinder
- Gateway Providers: Understand gateway discovery options
- Routing Strategies: Explore different routing algorithms
- Verification Strategies: Learn about data integrity verification
- Telemetry: Set up monitoring and observability