Command line
The CLI is one Python file. It needs Python 3.9 or later and no packages. It reads from the API. It never signs or sends a payment.
curl -O https://dnsofmoney.com/cli/dnsofmoney.py
Commands
| Command | What it does |
|---|---|
python dnsofmoney.py resolve pay:dnsofmoney | Resolves a name. |
python dnsofmoney.py check pay:example.name | Checks if a name is taken. |
python dnsofmoney.py challenge pay:dnsofmoney | Shows the x402 challenge for a counterparty screen. |
python dnsofmoney.py tools | Lists the MCP tools. |
python dnsofmoney.py health | Shows the service health. |
Options
- Set
DNSOFMONEY_API_KEYto send your key. - Set
DNSOFMONEY_BASE_URLto use another server.
The command exits with 1 if the API returns an error. The challenge command treats 402 as a success.