Skip to main content

Add Subname

POST 

/ens/v1/subdomain/add

Add a new subname

Request

Header Parameters

    x-api-key stringrequired

    The Api Key.

    x-signature stringrequired

    The signature.

    x-message stringrequired

    The Message.

    x-address stringrequired

    The Address.

Body

required
    username stringrequired

    The name of the subdomain

    ensDomain stringrequired

    The name of the ens domain

    chainId numberrequired

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

    addresses object[]required

    The addresses corresponding to the subdomain

  • Array [
  • address stringrequired
    coinType numberrequired
  • ]
  • text object[]required

    The texts corresponding to the subdomain

  • Array [
  • key stringrequired
    value stringrequired
  • ]
  • contentHash objectrequired

    The content hash of the subdomain

Responses

The Subname was added successfully.

Schema
    statusCode numberrequired

    The status code of the response.

    result objectrequired
    data objectrequired
    id stringrequired
    error stringrequired

    Null if no error occurred, otherwise the error message.

Loading...