Skip to main content

GetTransactionBytes

Retrieves the signed transaction bytes and unsigned transaction bytes for a given transaction full hash.

Endpoint

GET /nxt?requestType=getTransactionBytes

Parameters

NameTypeRequiredDescription
fullHashstringYesTransaction full hash

Request Example

curl "http://localhost:22024/nxt?requestType=getTransactionBytes&fullHash=abc123..."

Response

{
"transactionBytes": "hexBytes",
"unsignedTransactionBytes": "hexUnsignedBytes",
"confirmations": 100,
"requestProcessingTime": 1
}

Response Fields

FieldTypeDescription
transactionBytesstringSigned transaction bytes (hex)
unsignedTransactionBytesstringUnsigned transaction bytes (hex)
confirmationsnumberNumber of confirmations (0 for unconfirmed)
requestProcessingTimenumberAPI request processing time in milliseconds

Errors

ErrorDescription
UNKNOWN_TRANSACTIONTransaction not found

Source

GetTransactionBytes.java

Tags

TRANSACTIONS