Skip to main content

TransferCurrency

Transfers a specified amount of currency units from the sender's account to a recipient account.

Request​

POST /nxt?requestType=transferCurrency

Parameters​

NameTypeDescriptionRequired
secretPhrasestringSender's secret passphraseYes
recipientstringRecipient account ID or NXT addressYes
currencylongCurrency IDYes
unitsQNTlongAmount of units to transfer (in smallest unit)Yes
feeRateQNTPerFXTlongTransaction fee rateOptional
deadlineintTransaction deadline in minutesOptional
adminPasswordstringAdmin password if requiredOptional

Response​

{
"transaction": "1234567890123456789",
"fullHash": "abc123...",
"errorCode": 0,
"errorDescription": ""
}

Error Handling​

ErrorCondition
NOT_ENOUGH_CURRENCYSender has insufficient currency balance
UNKNOWN_CURRENCYSpecified currency does not exist

Example​

curl -X POST http://localhost:22024/nxt \
-d "requestType=transferCurrency" \
-d "secretPhrase=your_phrase" \
-d "recipient=NXT-recipient_address" \
-d "currency=987654321" \
-d "unitsQNT=1000000000"