Skip to main content

Update Subname

POST 

/ens/v1/subdomain/update

Update the specified subname's data

Request

Header Parameters

    x-signature stringrequired

    The signature.

    x-message stringrequired

    The Message.

    x-address stringrequired

    The Address.

Body

required
    username stringrequired

    The name of the ens domain

    ensDomain stringrequired

    The name of the subdomain

    chainId numberrequired

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

    addresses object[]required

    The new addresses associated with the subdomain

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

    The new texts of the subdomain

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

    The new contentHash of the subdomain

Responses

The Subname was updated successfully.

Schema
    statusCode numberrequired

    The status code of the response.

    result objectrequired
    data objectrequired
    id stringrequired
    data objectrequired
    error stringrequired

    Null if no error occurred, otherwise the error message.

Loading...