🥷
Namespace
  • [ Introduction ]
    • ENS
    • Namespace
      • Products and Services
      • Use Cases
  • [ Namespace Platform ]
    • Overview
    • Search & Registration
    • Manager
      • Listing an ENS Name
      • Features List
    • ENS Widget
    • Farcaster Frames
      • Default Frame
      • Custom Frame
    • Tutorials and Demos
  • [ Dev Docs ]
    • Overview
    • How-To Guides
      • Mint L1 or L2 subnames using SDK
    • Smart contracts
      • Namespace Minter
    • Backend API
      • POST /api/v1/mint
      • POST /api/v1/mint/verified
      • GET /api/v1/listings/availabe
    • Offchain Subnames API
      • Setting Up Offchain Resolver
      • Minting
        • Create a new ENS subname
      • Subnames
        • Resolve subname address
        • Check subname availability
        • Retrieve Complete Subname Dataset
        • Subname Search
        • Delete Subname
      • Text Records
        • Create or update subname text record
        • Delete a subname text record
        • Retrieve single subname text record
        • Retrieve all of subname's text records
      • Custom Data
        • Create or update custom subname data
        • Delete custom subname data
        • Retrieve single custom data object
        • Retrieve all of subname's custom data
    • Namespace SDK
      • Offchain Manager
        • Installation
        • Methods
        • Generate API key
        • CreateSubname
        • DeleteSubname
        • IsSubnameAvailable
        • GetFilteredSubnames
        • TextRecords
        • DataRecords
      • Indexer Manager
        • Installation
        • Methods
        • GetL2Subname
        • GetL2Subnames
        • GetL1Subnames
        • GetL1Subnames
        • GetL1Subname
      • Mint Manager (soon)
      • Namespace Client (deprecated)
        • Installation
        • GetListedName
        • GetMintDetails
        • GetMintTransactionParameters
        • IsSubnameAvailable
        • GenerateAuthToken
    • Namespace L2 Subnames
  • [ ecosystem ]
    • Partnerships
    • Integrations
    • Links
    • ENS ideas and projects
  • [ Legal ]
    • Disclamer
    • Terms of Service
    • Privacy Policy
Powered by GitBook
On this page
  1. [ Dev Docs ]
  2. Backend API

GET /api/v1/listings/availabe

Endpoint used to fetch mintable ENS name listings

This endpoint returns listed ENS names on our platform filterable by different parameters.

Example:


curl {BACKEND_API_URL}/api/v1/listings/available
    ?network=sepolia
    &parentLabel=name
    &subnameLabel=test
    &minterAddress=0x0306E14aAE9639Da26d2D158D9921B3Bded8F987
    &currentPage=0
    &pageSize=25

Parameters:

{
    "network":"sepolia" | "mainnet" // (required) returns listed names on provided chain
    "subnameLabel":string // (required) 
    "minterAddress":Address // (optinal) if not provided, api will not return listings whitelist or token gated access,
    "parentLabel":string // (optional) matches listed ens names by provided label
    "owner":Address // (optional) will return only listings which are owner by provided address
    "currentPage":number // (optional)
    "pageSize":number // (optional)
}

Response:

Paginated response:

{ 
  "totalItems":100,
  "currentPage":0,
  "pageSize":15,
  "items": [MintableListing]
}

MintableListing:

{
  "parentLabel": "example",
  "parentName": "example.eth",
  "parentNamehash": "asdfaf203890u89f9823498fy8234f"
  "subnameLabel": "my-subnamelabel",
  "mintPrice": 0.5,
  "listingOwner": "0x0306E14aAE9639Da26d2D158D9921B3Bded8F987",
  "created": 93489384,
  "mintVerificationReason": "NONE" | "WHITELIST" | "TOKEN_GATED_ACCESS"

}

mintVerificationReason specifies whether a verified minter address is required for minting a subname, this will be in case the ENS name listing uses whitelist or token-gated-access and the minter is whitelisted/owns the required ERC token. In this case, minting must be performed using POST /api/v1/mint/verified.

If the value of mintVerificationReason is "NONE", verification is not needed and minting parameters can be generated via POST /api/v1/mint endpoint.

PreviousPOST /api/v1/mint/verifiedNextOffchain Subnames API

Last updated 1 year ago