Skip to main content

GetAccountDomain

Returns information about a specific account domain.

Request​

GET /nxt?requestType=get-account-domain

All endpoints use port 22024 by default.

Parameters​

NameTypeDescriptionRequired
domainstringDomain nameYes

Response​

{
"domain": "example.com",
"account": "1234567890",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"creationHeight": 100,
"expirationHeight": 200,
"errorCode": 0,
"errorDescription": ""
}

Response Fields​

FieldTypeDescription
domainstringDomain name
accountstringAccount ID that owns the domain
accountRSstringAccount Reed-Solomon address in SHAMWARI format
creationHeightintBlock height when domain was created
expirationHeightintBlock height when domain expires

Error Codes​

CodeDescription
3Unknown domain

Example​

curl "http://localhost:22024/nxt?requestType=get-account-domain&domain=example.com"