Skip to main content

TransferAccountDomain

Transfers an account domain from the current owner to a new owner.

Request

POST /nxt?requestType=transfer-account-domain

All endpoints use port 22024 by default.

Parameters

NameTypeDescriptionRequired
recipientstringAccount ID or SHAMWARI address to transfer toYes
secretPhrasestringSender's secret passphraseYes

Response

{
"transaction": "1234567890123456789",
"fullHash": "abc123def456...",
"transactionJSON": {
"type": 2,
"subtype": 12,
"timestamp": 123456789,
"deadline": 14400,
"senderPublicKey": "abc123...",
"amountNQT": "0",
"feeNQT": "100000000",
"signature": "def456...",
"attachment": {
"version.TransferAccountDomain": 1,
"domain": "example.com"
}
},
"errorCode": 0,
"errorDescription": ""
}

Example

curl -X POST "http://localhost:22024/nxt?requestType=transfer-account-domain" \
-d "recipient=SHAMWARI-WXYZ-ABCD-EFGH-IJKLM" \
-d "secretPhrase=your_secret_passphrase"