How to Generate Web3.Storage Key and Proof
Last updated
Last updated
For additional information, please visit:
Following are the steps to follow to generate Web3.Storage API values:
Create an account on , 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.
You can check your local versions like this:
Install the @web3-storage/w3cli
package with npm
Execute the following to set the Space you intend on delegating access to:
Execute the following command to retrieve your Agent private key and DID:
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:
w3 login
w3 create space
w3 use space
npx ucan-key ed
w3 delegation
Install w3cli as described in the of the web3.storage documentation.
You'll need version 18 or higher, with NPM version 7 or higher to complete the installation
3. Create your 'space' as described in the section of the documentation.