Skip to main content

lookup

The lookup command derives and reads the raw name-registry account for each requested .sns domain.

Usage

sns [--url <URL>] lookup <DOMAIN>...

Arguments

<DOMAIN>...

Required. One or more canonical lowercase .sns domains, processed in the order they are provided. Top-level domains and one-level subdomains are accepted.

Options

-u, --url <URL>

Use this RPC endpoint instead of RPC_URL or the default public mainnet-beta endpoint at https://api.mainnet-beta.solana.com.

Output

After processing the requested domains, the command prints a table with these columns:

ColumnDescription
DomainThe domain exactly as provided.
Domain keyThe derived name-registry account public key.
ParentThe registry account's parent public key.
OwnerThe raw owner stored in the name-registry header.
DataRegistry payload with trailing zero bytes removed and invalid UTF-8 replaced.

When the derived registry account does not exist, Owner and Data are N/A. The displayed raw registry owner can differ from the effective owner returned by resolve, including for tokenized domains.