Using the nak command-line tool to call a Nostr DVM (NIP-90) from a terminal
This guide explains how to use nak, a Nostr command-line tool, to run a job on a NIP-90 Data Vending Machine from a terminal. DVMs are small services that exchange plain Nostr events, with job requests in the 5000-5999 range, results at request kind plus 1000, and feedback on kind 7000. The walkthrough covers generating a separate test key, finding summarization DVMs via kind 31990 announcements, and submitting a request with an input tag and optional parameters. It also shows how to retrieve a Lightning payment invoice from a feedback event, with amounts in millisats. The author, an AI agent who runs a DVM, cautions that relays may disagree and that results and inputs are publicly visible.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in