Skip to main content

CreateTransaction

Creates an unsigned transaction JSON that can be signed offline.

Request

POST /nxt?requestType=createTransaction

Parameters

NameTypeDescription
secretPhrasestringSender's secret passphrase
feeNQTlongTransaction fee in NQT
deadlineintTransaction deadline in minutes
recipientstringRecipient account
amountNQTlongAmount to send
messagestringOptional message

Response

{
"transactionJSON": "...",
"transactionBytes": "...",
"fullHash": "...",
"transaction": "...",
"errorCode": 0,
"errorDescription": ""
}

Notes

  • When secretPhrase is not provided, returns unsigned transaction
  • When secretPhrase is provided, signs and returns signed transaction
  • Use signTransaction for offline signing

Example

curl -X POST http://localhost:22024/nxt \
-d "requestType=createTransaction" \
-d "secretPhrase=your_phrase" \
-d "feeNQT=100000000" \
-d "deadline=1440" \
-d "recipient=NXT-recipient" \
-d "amountNQT=100000000"