TransferCurrency
Transfers a specified amount of currency units from the sender's account to a recipient account.
Request
POST /nxt?requestType=transferCurrency
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
secretPhrase | string | Sender's secret passphrase | Yes |
recipient | string | Recipient account ID or NXT address | Yes |
currency | long | Currency ID | Yes |
unitsQNT | long | Amount of units to transfer (in smallest unit) | Yes |
feeRateQNTPerFXT | long | Transaction fee rate | Optional |
deadline | int | Transaction deadline in minutes | Optional |
adminPassword | string | Admin password if required | Optional |
Response
{
"transaction": "1234567890123456789",
"fullHash": "abc123...",
"errorCode": 0,
"errorDescription": ""
}
Error Handling
| Error | Condition |
|---|---|
NOT_ENOUGH_CURRENCY | Sender has insufficient currency balance |
UNKNOWN_CURRENCY | Specified 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"