For registry pricing and lease lifecycle (initialize registry, purchase, renew, claim expired), use the registrar commands.
Prerequisites
- CLI setup with keys and RPC endpoint configured
- Name service program ID available (defaults to config value)
- Fee payer funded for signer costs
Command Overview
Init Root Registrar
Create a base registrar for a root name
Register Subdomain
Add subdomains under a registrar or domain
Manage Records
Append or delete key/value records on a domain
Unregister Subdomain
Remove a subdomain under a registrar or domain
Resolve & List
Read domain metadata and records
Derive Addresses
Calculate registrar, domain, lease, and config addresses
Init Root Registrar
Set up a base registrar on the name service program for a root (for example,thru). The registrar address can be derived automatically from the root name.
Root segment to manage (1-64 characters)
Override base name service program address
Explicit registrar account address; derived from the root name if omitted
Authority address for root management, formatted as a 46-char
ta... address or 64-char hex pubkey.
Key names are not accepted. Must match the fee payer address because only the fee payer signature is included.Hex state proof for registrar account creation; auto-generated if omitted
Signer for the transaction
Register Subdomain
Create a subdomain under a parent registrar or domain. The CLI can derive the domain account address from the parent and name.Subdomain segment (1-64 characters)
Registrar or parent domain address
Override base name service program address
Explicit domain account address; derived if omitted
Domain owner address, formatted as a 46-char
ta... address or 64-char hex pubkey.
Key names are not accepted. Must match the fee payer address because only the fee payer signature is included.Authority address for subdomain registration, formatted as a 46-char
ta... address or 64-char hex pubkey.
Key names are not accepted. Must match the fee payer address because only the fee payer signature is included.Hex state proof for domain creation; auto-generated if omitted
Signer for the transaction
Manage Records
Append or delete records on a domain.Domain account address
Record key (<= 32 bytes)
Record value (<= 256 bytes) for append-record
Owner address authorizing the record change, formatted as a 46-char
ta... address or 64-char hex pubkey.
Key names are not accepted. Must match the fee payer address because only the fee payer signature is included.Signer for the transaction
Override base name service program address
Unregister Subdomain
Delete a subdomain under a registrar or domain.Domain account address to remove
Owner address authorizing unregister, formatted as a 46-char
ta... address or 64-char hex pubkey.
Key names are not accepted. Must match the fee payer address because only the fee payer signature is included.Signer for the transaction
Override base name service program address
Resolve and List
Fetch domain metadata and records.Domain account to inspect
Record key to fetch when resolving
Override base name service program address
Derive Addresses
Helpers to compute deterministic addresses.Registrar or parent domain address for domain derivation
Domain segment (1-64 characters)
Root segment (for registrar derivation)
Override base name service program address for
derive-domain-account and derive-registrar-accountOverride thru registrar program address for
derive-config-account and derive-lease-accountCommon Flow
- Use
thru-cli registrar initialize-registryandpurchase-domainto create a .thru lease (see Registrar Commands). - (Optional) Register subdomains with
thru-cli nameservice register-subdomain. - Manage and query records with
append-record,delete-record,resolve, andlist-records.