StorageDownloader
Default downloader used - handles downloading from all schemes specified in the gateway URLs configuration.
// Can instantiate the downloader with the default gateway URLsconst downloader = new StorageDownloader(); // client id if used in client-side applicationsconst clientId = "your-client-id";const storage = new ThirdwebStorage({ clientId, downloader }); // secret key if used in server-side applicationsconst secretKey = "your-secret-key";const storage = new ThirdwebStorage({ secretKey, downloader });
function constructor(
Download arbitrary data from any URL scheme
function download( uri: string, attempts: number,): Promise<Response>;