Register a domain, no account (live price in sats)
domain_registerRegisters a domain for the registrant your user names. The answer gives the domain token (jdd_...) that manages it: Keep the domain token (jdd_) secret, and keep the payment proof you used (the l402 value or the cashu token): calling again with the same arguments and proof within 24 h shows the same token, and domain_token_recover with the proof replaces a lost token at any time. Paid, no account: without payment it answers payment_required with this order's price (valid 15 minutes), a Lightning invoice (L402) and a Cashu request, after every free check passed (no invoice otherwise). Pay only within what your user allowed, then call again with exactly the same arguments plus l402=':' or cashu='' (a Cashu token is melted into the service's Lightning wallet at once; if the mint does not pay, the token stays yours). Free quote first: domain_check.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domain": "<domain>",
"registrant": "<registrant>",
"attestation": "<attestation>"
},
"name": "domain_register"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| l402 | No | Lightning payment proof for a retry: '<macaroon>:<preimage>', where macaroon comes from the payment_required answer of the previous call and preimage is the 64-hex proof your wallet returns after paying its invoice. Use it with the same tool and arguments. | |
| cashu | No | Cashu token (cashuA... or cashuB...) worth at least the price, from an accepted mint (see info). Pays without a previous call. | |
| years | No | Years, 1 to 10 (default 1). | |
| domain | Yes | The domain, e.g. example.com (an offered TLD: info, domains.tlds). | |
| host_zone | No | Also host the zone here for a year (the hosting add-on); the answer then has a zone token (jdz_) too. | |
| owner_npub | No | Optional Nostr key (npub1... or 64 hex) whose account owns the domain from payment on and gets expiry reminders. Without it the domain token alone manages the domain. | |
| registrant | Yes | The registrant of record: the real person or organization your user is, never you and never placeholders. Required: name, email (must accept mail: the registrar asks to confirm it within 15 days), phone (+CC.NUMBER, e.g. +1.6045551234), address1, city, postal_code, country (ISO 3166 two letters). Optional: organization, address2, state. | |
| attestation | Yes | true only after your user confirmed: 'I am authorised by the named registrant to register this domain for them, and the registrant accepts the registration agreement' (https://satsdns.com/registration-agreement). | |
| nameservers | No | Your own nameservers (2-13 host names); leave out to use ours. |