0

This is happening since Thirdweb now requires either the API key or clientID. I believe have it setup properly since I haven't changed anything except add the clientID.

I got my index.js like this

 <ThirdwebProvider
  activeChain={Sepolia}
  clientId={clientID}
>
  <App />
</ThirdwebProvider>

And I am using LazyMint in the Web3 Button like this after passing in the contract Address:

                await lazyMint({
                  metadatas: [
                    {
                      name: formValues.name,
                      description: formValues.description,
                      image: selectedFile,
                    },
                  ],
                });

It was working before but I suspect I may need to pass in the clientID/API key somewhere since storage is involved?

Currently its just giving an error of unable to get the upload token

Error: Failed to get upload token at IpfsUploader.getUploadToken (thirdweb-dev-storage.browser.esm.js:531:1) at async IpfsUploader.uploadBatchBrowser (thirdweb-dev-storage.browser.esm.js:614:1)

The file is a file uploaded via a form.

MikeT
  • 394
  • 2
  • 13

0 Answers0