typescript-sdk

Home > @3rdweb/sdk > IStorage > resolveFullUrl

IStorage.resolveFullUrl() method

Resolves the full URL of a file for a given gateway.

For example, if the hash of a file is ipfs://bafkreib3u2u6ir2fsl5nkuwixfsb3l4xehri3psjv5yga4inuzsjunk2sy, then the URL will be: “https://cloudflare-ipfs.com/ipfs/bafkreibnwjhx5s3r2rggdoy3hw7lr7wmgy4bas35oky3ed6eijklk2oyvq” if the gateway is cloudflare-ipfs.com.

Signature:

resolveFullUrl(hash: string): string;

Parameters

Parameter Type Description
hash string The hash of a file.

Returns:

string