Skip to content

Supported providers

We support a wide range of different IPFS providers. If you would like to integrate your provider, feel free to submit a pull request.

Filebase

BLUMEN_FILEBASE_TOKEN for upload + pin is obtained by encoding access key and access secret to base64. Access key and access secret could be found in the Filebase console.

Filebase console

The easiest way to generate an S3 API token is using the base64 command:

sh
echo "accessKey:accessSecret" | base64

web3.storage

New web3.storage platform is more self-sovereign, so it requires a bit more work to set up.

First you have to install w3up cli:

bash
npm i -g @web3-storage/w3cli
bash
pnpm i -g @web3-storage/w3cli
bash
bun i -g @web3-storage/w3cli

Then you need to login to your web3.storage account:

Once log in is successful, you need to select your space. Grab the DID (the did:key:... string) from web3.storage web console and run the following command:

sh
w3 space use did:key:...

When both the account and the space are set up, you need to generate a unique private key. Later we'll need it to generate a proof (that gives us permit to upload files on web3.storage).

bash
npx ucan-key ed
bash
pnpx ucan-key ed
bash
bunx ucan-key ed

Save this private key (which starts with Mg..) to an environment variable (BLUMEN_W3S_TOKEN).

You also need to create a delegation for the generated DID:

sh
w3 delegation create <did_from_ucan-key_command_above> | base64

It's recommended to additionally supply --can 'store/add' --can 'upload/add' flags to the first command to limit access to only uploading files.

Save the command output in a BLUMEN_W3S_PROOF environment variable or save it to a file (that should not be uploaded!) and then read from it like this:

sh
BLUMEN_W3S_PROOF=`cat proof.txt`

Gateway3