GetTransactionBytes
Retrieves the signed transaction bytes and unsigned transaction bytes for a given transaction full hash.
Endpoint
GET /nxt?requestType=getTransactionBytes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
fullHash | string | Yes | Transaction full hash |
Request Example
curl "http://localhost:22024/nxt?requestType=getTransactionBytes&fullHash=abc123..."
Response
{
"transactionBytes": "hexBytes",
"unsignedTransactionBytes": "hexUnsignedBytes",
"confirmations": 100,
"requestProcessingTime": 1
}
Response Fields
| Field | Type | Description |
|---|---|---|
transactionBytes | string | Signed transaction bytes (hex) |
unsignedTransactionBytes | string | Unsigned transaction bytes (hex) |
confirmations | number | Number of confirmations (0 for unconfirmed) |
requestProcessingTime | number | API request processing time in milliseconds |
Errors
| Error | Description |
|---|---|
UNKNOWN_TRANSACTION | Transaction not found |
Source
GetTransactionBytes.java
Tags
TRANSACTIONS