Skip to main content

GetAllPrunableMessages

Retrieves all prunable messages across the network with pagination support.

Request

GET /nxt?requestType=getAllPrunableMessages

All endpoints use port 22024 by default.

Parameters

NameTypeDescriptionRequired
firstIndexintPagination startNo
lastIndexintPagination endNo
timestampintMinimum 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=getAllPrunableMessages&firstIndex=0&lastIndex=10"