ThirdwebStorage.resolveScheme() method
Resolve any scheme on a URL to get a retrievable URL for the data
Signature:
resolveScheme(url: string): string;
Parameters
Parameter | Type | Description |
---|---|---|
url | string | The URL to resolve the scheme of |
Returns:
string
The URL with its scheme resolved
Example
const uri = "ipfs://example";
const url = storage.resolveScheme(uri);
console.log(url);