GetPrunableMessages
Lists prunable messages for an account, optionally filtered by other account and timestamp.
Request
GET /nxt?requestType=getPrunableMessages
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
account | string | Account ID or SHAMWARI address | Yes |
otherAccount | string | Other account ID (optional filter) | No |
secretPhrase | string | Secret phrase for decryption | No |
firstIndex | int | Pagination start | No |
lastIndex | int | Pagination end | No |
timestamp | int | Minimum timestamp (default 0) | No |
Response
{
"prunableMessages": [
{
"transactionFullHash": "abc123...",
"message": "Hello World",
"messageIsText": true,
"messageIsPrunable": true,
"timestamp": 1700000000,
"height": 123456
}
],
"errorCode": 0,
"errorDescription": ""
}
Example
curl "http://localhost:22024/nxt?requestType=getPrunableMessages&account=SHAMWARI-ABCD-EFGH-IJKL-MNOPQ"