post https://api.solana.fm/v0/domains/bonfida/subdomains
Parameters
accountHashes- a list of domain owner's account hash
Results
Valid Response
<object>- a list of JSON objects containing the following fields each:
owner:<String>, the domain owner's account hashsubdomains:[\<object>], a list of subdomains owned which contains the following fields each:name:<String>, the name of the subdomainsubdomainHash:<String>, the subdomain's account hash
Example of a valid response:
{
"status": "Success",
"message": "Retrieved accounts' sub domains",
"result": [
{
"owner": "GE6DXG7QzXX64TDsfX9GECuVbwxQ6VxpQmhvT1oPXFdp",
"subdomains": [
{
"name": "mud",
"subdomainHash": "CKfSW36KdGTWB4Micamdve8FYeb8mqDEed64KxQKVBg9"
},
{
"name": "ustur",
"subdomainHash": "CaGxycj9DxMonp6RzLsWrHZjNb2NxmRzXsDY95ri4HbT"
},
{
"name": "oni",
"subdomainHash": "CkFWzxdjD7x7Zu7wiUGQL8z9iocJXJYkgzTDTDnxqg34"
},
{
"name": "outskirts",
"subdomainHash": "88YrvLy9L2mS8Nz685UVRoPvukkXuVUxFMnpGFMeQYmq"
}
]
}
]
}Invalid Response
<object> - a JSON object containing the following fields if the requested account doesn't exist
code:<integer>, The error codemessage:<String>, An error message to indicate which part of the query went wrongstatus:<String>, The response status following the error code- 400 = Bad Request (client side)
- 500 = Internal Server Error (server side)
