DownloadPrunableMessage
Downloads a prunable message, optionally decrypting it with secret phrase or shared key.
Request
GET /nxt?requestType=downloadPrunableMessage
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
transactionFullHash | string | Transaction full hash | Yes |
secretPhrase | string | Secret phrase for decryption | No |
sharedKey | string | Shared key for AES decryption | No |
retrieve | boolean | Retrieve pruned data (default false) | No |
save | boolean | Return as file attachment (default false) | No |
Response
{
"message": "Hello World",
"messageIsText": true,
"decryptedMessage": "Decrypted content",
"timestamp": 1700000000,
"errorCode": 0,
"errorDescription": ""
}
Example
curl "http://localhost:22024/nxt?requestType=downloadPrunableMessage&transactionFullHash=abc123..."