JustaName
API ReferenceSDK Reference
API Reference
API Reference
  • Overview
  • API reference
    • Siwe
      • Request challenge
      • Verify message
      • Mapp
        • Add permission
        • Append field
        • Revoke permission
    • Subname
      • Accept
      • Reserve
      • Add
      • Update
      • Revoke
      • Reject
      • Subname
      • Ens
      • Address
      • Records
      • Available
      • Search
      • Ens list
    • Primary name
      • Address
      • Set primary name
  • Specification
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. API reference
  2. Subname

Available

PreviousRecordsNextSearch

Was this helpful?

Is Subname Available

get

Checks if a username is available for a given ENS domain

Query parameters
subnamestringRequired

The subname

Example: user.justan.id
chainIdnumberRequired

Chain id, we only support Ethereum Mainnet and Sepolia Testnet (1 for mainnet, 11155111 for sepolia)

Example: 1
Responses
200
Subname was fetched successfully.
application/json
Responseall of
get
GET /ens/v1/subname/available HTTP/1.1
Host: api.justaname.id
Accept: */*
200

Subname was fetched successfully.

{
  "statusCode": 200,
  "result": {
    "data": {
      "isAvailable": false
    },
    "error": "text"
  }
}