VerifyPrunableMessage
Verifies the hash integrity of a prunable message against the transaction attachment.
Request
GET /nxt?requestType=verifyPrunableMessage
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
transactionFullHash | string | Transaction full hash | Yes |
message | string | Plain message text to verify | No |
messageIsText | boolean | Message is text (default true) | No |
encryptedMessageData | string | Encrypted message data (hex) | No |
encryptedMessageNonce | string | Encrypted message nonce (hex) | No |
messageToEncryptIsText | boolean | Message to encrypt is text | No |
compressMessageToEncrypt | boolean | Compress message to encrypt | No |
Response
{
"verify": true,
"errorCode": 0,
"errorDescription": ""
}
Error Codes
| Code | Description |
|---|---|
| 4 | Incorrect transaction |
| 5 | No such plain/encrypted message |
| 6 | Hash mismatch |
Example
curl -X POST "http://localhost:22024/nxt?requestType=verifyPrunableMessage" \
-d "transactionFullHash=abc123..." \
-d "message=Hello World"