Skip to main content

Name service endpoints

Resolve ENS

GET /api/v1/ens/resolve/:name returns ENS + meta-address details.

Resolve SuiNS

GET /api/v1/suins/resolve/:name returns SuiNS + meta-address details.

Endpoints

  • GET /api/v1/ens/resolve/:name
  • GET /api/v1/suins/resolve/:name

Resolution behavior

01

Read name service record

ENS checks specter text record first and falls back to ENS content hash when needed. SuiNS reads content hash.

02

Extract CID and fetch from IPFS

Resolver parses CID formats (ipfs://, /ipfs/, raw CID) and downloads raw bytes from configured gateway.

03

Decode and validate

Backend decodes bytes into MetaAddress and validates key structure before responding.

Request params

stringrequired

ENS name like alice.eth or SuiNS name like alice.sui.

string

Supported on SuiNS resolve endpoint. If present, clears resolver cache before lookup.

Response schema

meta_addressstringrequired

Hex-encoded SPECTER meta-address.

spending_pkstringrequired

Hex-encoded spending public key.

viewing_pkstringrequired

Hex-encoded viewing public key.

ipfs_cidstring

CID where meta-address bytes were fetched.

ENS-specific response field

ENS responses include ens_name.

SuiNS-specific response field

SuiNS responses include suins_name.

Example calls

curl -s "https://backend.specterpq.com/api/v1/ens/resolve/alice.eth" | jq .
Info

Name-service lookups are always fresh. IPFS downloads can be cached by CID in resolver clients.