Skip to main content

GetPrunableMessage

Retrieves a prunable message by its transaction full hash. Supports decryption if secret phrase is provided.

Request​

GET /nxt?requestType=getPrunableMessage

All endpoints use port 22024 by default.

Parameters​

NameTypeDescriptionRequired
transactionFullHashstringTransaction full hashYes
secretPhrasestringSecret phrase for decryptionNo
retrievebooleanRetrieve pruned data (default false)No

Response​

{
"transactionFullHash": "abc123...",
"message": "Hello World",
"messageIsText": true,
"messageIsPrunable": true,
"timestamp": 1700000000,
"height": 123456,
"errorCode": 0,
"errorDescription": ""
}

Example​

curl "http://localhost:22024/nxt?requestType=getPrunableMessage&transactionFullHash=abc123..."