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