Skip to main content

ParseTransaction

Parses a transaction from JSON or bytes and validates its signature.

Endpoint

GET /nxt?requestType=parseTransaction

Parameters

NameTypeRequiredDescription
transactionJSONstringNoTransaction JSON
transactionBytesstringNoTransaction bytes (hex)
prunableAttachmentJSONstringNoPrunable 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

FieldTypeDescription
transactionstringTransaction ID
fullHashstringTransaction full hash
typenumberTransaction type
subtypenumberTransaction subtype
timestampnumberTransaction timestamp
deadlinenumberTransaction deadline
senderPublicKeystringSender public key
senderstringSender account RS address
recipientstringRecipient account RS address
amountFQTstringAmount in NQT
feeFQTstringFee in NQT
heightnumberBlock height
blockstringBlock ID
confirmationsnumberNumber of confirmations
validatebooleanWhether transaction validated successfully
verifybooleanWhether signature verification passed
requestProcessingTimenumberAPI request processing time in milliseconds

Source

ParseTransaction.java

Tags

TRANSACTIONS