typescript-sdk

Home > @3rdweb/sdk > IStorage > canResolve

IStorage.canResolve() method

Returns true if the URI is resolvable by the current storage interface.

For example: If the storage is configured to point to IPFS, passing in ipfs://SOME_HASH will return true in this function because that is a valid IPFS URI.

Signature:

canResolve(uri: string): boolean;

Parameters

Parameter Type Description
uri string  

Returns:

boolean