CreateTransaction
Creates an unsigned transaction JSON that can be signed offline.
Request
POST /nxt?requestType=createTransaction
Parameters
| Name | Type | Description |
|---|---|---|
secretPhrase | string | Sender's secret passphrase |
feeNQT | long | Transaction fee in NQT |
deadline | int | Transaction deadline in minutes |
recipient | string | Recipient account |
amountNQT | long | Amount to send |
message | string | Optional message |
Response
{
"transactionJSON": "...",
"transactionBytes": "...",
"fullHash": "...",
"transaction": "...",
"errorCode": 0,
"errorDescription": ""
}
Notes
- When
secretPhraseis not provided, returns unsigned transaction - When
secretPhraseis provided, signs and returns signed transaction - Use
signTransactionfor 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"