My goal was to demonstrate how AI agents can be equipped with an ecash wallet to then go about and perform tasks and pay other AI agents to perform tasks for them.

The biggest challenge I faced was that I accidentally deleted half of my code mid way through the project and had to start over. Also, NextJS is failing me.

As a starting point, the user can pay a chat bot to generate a prompt optimized for generating an image, and then send that over nostr to a generative AI that will accept the ecash and generate the image for me, then send the image back over nostr.

Next steps are:

  • implement NIP90 DVMs
  • Lock the ecash so that it can only be unlocked when the compute has been performed
  • More agents

Built With

  • cashu-ts
  • ndk
  • nextjs
Share this project:

Updates