ApproveTransaction
Casts phasing vote transactions on one or more phased transactions. Extends CreateTransaction with phasing voting parameters.
Endpoint
POST /nxt?requestType=approveTransaction
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
phasedTransaction | string | Yes | — | Phased transaction ID (can be repeated) |
revealedSecret | string | No | — | Revealed secret bytes (hex) |
revealedSecretText | string | No | — | Revealed secret as plain text |
revealedSecretIsText | boolean | No | false | Whether the secret is text |
secretPhrase | string | Yes | — | Sender's secret passphrase |
feeMTA | long | No | Auto-calculated | Transaction fee in MTA |
deadline | int | No | 15 | Transaction deadline in minutes |
broadcast | boolean | No | true | Whether to broadcast the transaction |
In addition to the standard CreateTransaction parameters.
Request Example
curl -X POST http://localhost:22024/nxt \
-d "requestType=approveTransaction" \
-d "secretPhrase=your_phrase" \
-d "phasedTransaction=12345678901234567890" \
-d "revealedSecret=abc123..."
Response
{
"transaction": "12345678901234567890",
"fullHash": "abc123...",
"transactionJSON": "{...}",
"transactionBytes": "...",
"signatureHash": "abc123...",
"minimumFeeFQT": "100000000",
"broadcasted": true,
"requestProcessingTime": 10
}
Response Fields
| Field | Type | Description |
|---|---|---|
transaction | string | Transaction ID |
fullHash | string | Transaction full hash |
transactionJSON | string | Signed transaction JSON |
transactionBytes | string | Signed transaction bytes |
signatureHash | string | Signature hash |
minimumFeeFQT | string | Minimum fee in NQT |
broadcasted | boolean | Whether transaction was broadcast |
requestProcessingTime | number | API request processing time in milliseconds |
Errors
| Error | Description |
|---|---|
TOO_MANY_PHASING_VOTES | Too many phased transaction votes |
Source
ApproveTransaction.java, CreateTransaction.java
Tags
CREATE_TRANSACTION, PHASING