SuiNS name and address
suiResolveNameResolve a .sui name to its Sui address or reverse-check an address for its default .sui name, returning registration status so you know if the record is safe to use.
Instructions
Resolve a SuiNS name (something.sui) to the address it points at, or an address back to its name. Give exactly one of name or address.
READ status BEFORE the record. It is one of: resolved, the registration is live and the record is good; expired, the registration lapsed and the record — target address included — is returned but must not be trusted as a destination; no_target_address, the name is registered and points nowhere; not_registered, the registry holds no record. All four are answers, not errors.
Reverse is NOT the inverse: an address answers with its OWN default name, which need not be a name pointing at it.
One record comes back, so nothing is capped, truncated or paged. Only .sui names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Forward: a .sui name | |
| address | No | Reverse: a Sui address |