resolveArweaveScheme

Resolves the scheme of a given Arweave URI and returns the corresponding URL.

Example

import { resolveArweaveScheme } from "thirdweb/storage";
const url = resolveArweaveScheme({ uri: "ar://<fileId>" });
function resolveArweaveScheme(
): string;

Parameters

The options object containing the Arweave URI

Type

let options: { gatewayUrl?: string; uri: string };

Returns

let returnType: string;

The resolved URL