Get by Subname
GET/ens/v1/subdomain/subname
Retrieves subname details based on the specified subname and chainId
Request
Query Parameters
subname stringrequired
The subname
Example: user.jan.eth
chainId numberrequired
Chain id, we only support Ethereum Mainnet and Sepolia Testnet (1 for mainnet, 11155111 for sepolia)
Example: 11155111
Responses
- default
The Subname was fetched successfully.
- application/json
- Schema
- Example (from schema)
Schema
statusCode numberrequired
The status code of the response.
result objectrequired
data objectrequired
id stringrequired
username stringrequired
data objectrequired
id stringrequired
contentHash stringrequired
addresses string[]required
textRecords string[]required
subdomainId stringrequired
ensId stringrequired
subname stringrequired
isClaimed booleanrequired
claimedAt date-timerequired
error stringrequired
Null if no error occurred, otherwise the error message.
{
"statusCode": 200,
"result": {
"data": {
"id": "string",
"username": "string",
"data": {
"id": "string",
"contentHash": "string",
"addresses": [
"string"
],
"textRecords": [
"string"
],
"subdomainId": "string"
},
"ensId": "string",
"subname": "string",
"isClaimed": true,
"claimedAt": "2024-05-20T09:14:55.514Z"
},
"error": "string"
}
}
Loading...