Try โ€‚โ€‰HackMD

w3up-cli UCAN Delegation

  1. Create a new account and register it
    • w3up id
    • w3up register <email>
  2. Create second agent
    • w3up id --profile second create the second account and save the agent did
  3. Delegate capabilities to another agent
    • w3up delegate to <second agent did> use the DID saved in step 2, this will create a delegation.txt file that you will need in step 5.
  4. Use the first account to upload a file
    • w3up upload <file>
    • w3up list
  5. List uploaded files from the second account. Start by import the previous imported delegation file with alias name main (default profile value).
    • w3up delegate import delegation.txt main --profile second
    • w3up delegate switch main --profile second to select the account delegation just imported in the previous step with alias main.
    • w3up list --profile second
  6. Export settings for the first account to create HTTP API Server for delegations (for Challenge 2)
    • w3up settings export settings.json