GetAccountDomain
Returns information about a specific account domain.
Request
GET /nxt?requestType=get-account-domain
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
domain | string | Domain name | Yes |
Response
{
"domain": "example.com",
"account": "1234567890",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"creationHeight": 100,
"expirationHeight": 200,
"errorCode": 0,
"errorDescription": ""
}
Response Fields
| Field | Type | Description |
|---|---|---|
domain | string | Domain name |
account | string | Account ID that owns the domain |
accountRS | string | Account Reed-Solomon address in SHAMWARI format |
creationHeight | int | Block height when domain was created |
expirationHeight | int | Block height when domain expires |
Error Codes
| Code | Description |
|---|---|
| 3 | Unknown domain |
Example
curl "http://localhost:22024/nxt?requestType=get-account-domain&domain=example.com"