ParseTransaction
Parses a transaction from JSON or bytes and validates its signature.
Endpoint
GET /nxt?requestType=parseTransaction
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
transactionJSON | string | No | Transaction JSON |
transactionBytes | string | No | Transaction bytes (hex) |
prunableAttachmentJSON | string | No | Prunable attachment JSON |
Request Example
curl "http://localhost:22024/nxt?requestType=parseTransaction&transactionBytes=abc123..."
Response
{
"transaction": "12345678901234567890",
"fullHash": "abc123...",
"type": 0,
"subtype": 0,
"timestamp": 12345678,
"deadline": 1440,
"senderPublicKey": "abc123...",
"sender": "NXT-...",
"recipient": "NXT-...",
"amountFQT": "100000000",
"feeFQT": "100000000",
"height": 12345,
"block": "1234567890123456789",
"confirmations": 100,
"validate": true,
"verify": true,
"requestProcessingTime": 1
}
Response Fields
| Field | Type | Description |
|---|---|---|
transaction | string | Transaction ID |
fullHash | string | Transaction full hash |
type | number | Transaction type |
subtype | number | Transaction subtype |
timestamp | number | Transaction timestamp |
deadline | number | Transaction deadline |
senderPublicKey | string | Sender public key |
sender | string | Sender account RS address |
recipient | string | Recipient account RS address |
amountFQT | string | Amount in NQT |
feeFQT | string | Fee in NQT |
height | number | Block height |
block | string | Block ID |
confirmations | number | Number of confirmations |
validate | boolean | Whether transaction validated successfully |
verify | boolean | Whether signature verification passed |
requestProcessingTime | number | API request processing time in milliseconds |
Source
ParseTransaction.java
Tags
TRANSACTIONS