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.
- application/json
Body
required
- Array [
- ]
- Array [
- ]
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
address stringrequired
coinType numberrequired
text object[]required
The new texts of the subdomain
key stringrequired
value stringrequired
contentHash stringrequired
The new contentHash of the subdomain
Responses
- default
The Subname was updated successfully.
- application/json
- Schema
- Example (from schema)
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.
{
"statusCode": 200,
"result": {
"data": {
"id": "id",
"data": {}
},
"error": "string"
}
}
Loading...