RegisterAccountDomain
Registers a new account domain on the Shamwari Network.
Request
POST /nxt?requestType=register-account-domain
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
domain | string | Domain name to register | Yes |
secretPhrase | string | Sender's secret passphrase | Yes |
Response
{
"transaction": "1234567890123456789",
"fullHash": "abc123def456...",
"transactionJSON": {
"type": 2,
"subtype": 6,
"timestamp": 123456789,
"deadline": 14400,
"senderPublicKey": "abc123...",
"amountNQT": "0",
"feeNQT": "100000000",
"signature": "def456...",
"attachment": {
"version.RegisterAccountDomain": 1,
"domain": "example.com"
}
},
"errorCode": 0,
"errorDescription": ""
}
Example
curl -X POST "http://localhost:22024/nxt?requestType=register-account-domain" \
-d "domain=example.com" \
-d "secretPhrase=your_secret_passphrase"