Get Subnames Reserved to an Address
GET/ens/v1/subdomain/invitations
Retrieves all subnames reserved to an address
Request
Query Parameters
address stringrequired
The address of the subdomain
Example: 0xb965a5f3a0fC18D84E68883ccAd508445a7917A8
chainId numberrequired
Chain id, we only support Ethereum Mainnet and Sepolia Testnet (1 for mainnet, 11155111 for sepolia)
Example: 11155111
coinType number
The coin type of the address
Example: 60
ensDomains string[]
Array of ensDomains to filter the subnames by
Example: [jan.eth]
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.515Z"
},
"error": "string"
}
}
Loading...