githubEdit

How to generate Web3.Storage API values

For additional information, please visit: https://web3.storage/docs/#quickstartarrow-up-right

Step By Step Process

Following are the steps to follow to generate Web3.Storage API values:

  1. Create an account on https://web3.storagearrow-up-right, please specify the email you have access to as the account authentication is based on the email validation. Make sure to follow through the registration process to the end, choose an appropriate billing plan for your needs (e.g. 'starter') and enter your payment details.

2. Install w3cli as described in the corresponding sectionarrow-up-right of the web3.storage documentation.

You'll need Nodearrow-up-right version 18 or higher, with NPM version 7 or higher to complete the installation

You can check your local versions like this:

Install the @web3-storage/w3cli package with npm

3. Create your 'space' as described in the 'Create your first space'arrow-up-right section of the documentation.

  1. Execute the following to set the Space you intend on delegating access to:

  1. Execute the following command to retrieve your Agent private key and DID:

circle-info

Note: The private key (starting with Mg...) is the value to be used in the environment variable IPFS_STORAGE_KEY.

  1. Retrieve the IPFS_STORAGE_PROOF by executing the following:

The output of this command is the value to be used in the environment variable IPFS_STORAGE_PROOF.

To summarize, the process of configuring delegated access to the w3up API consists of execution of the following command sequence:

  1. w3 login

  2. w3 space create

  3. w3 space use

  4. npx ucan-key ed

  5. w3 delegation

Demo Video

Youtubearrow-up-right

Last updated

Was this helpful?