get https://api.solana.fm/v0/domains/bonfida/
Parameters
hash- the account hash that owns domain(s)/subdomain(s)
Results
Valid Response
[<object>]- a list of JSON objects that contains the following fields each:
owner:<String>, the owner's account hash of the domain/subdomaindomains:[\<object>], a list of domain objects that are owned by the queried accountname:<String>, the name of the domain accountnameServiceAccount:<String>, the account hash of the domainsubdomains:[\<object>], a list of subdomains owned
Example of a valid response:
{
"status": "Success",
"message": "Retrieved Account's Domains",
"result": [
{
"owner": "nix9RErnQYXpuf329ntPgSzThogtfeyUempD7zDrnSH",
"domains": [
{
"name": "nixholas",
"nameServiceAccount": "3krJN4n3cWZktUBbpm5KjdhHSEMfgvzSPLsKeeC9o2Xh",
"subdomains": []
}
]
}
]
}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)
