Skip to main content

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

NameTypeDescriptionRequired
transactionFullHashstringTransaction full hashYes
messagestringPlain message text to verifyNo
messageIsTextbooleanMessage is text (default true)No
encryptedMessageDatastringEncrypted message data (hex)No
encryptedMessageNoncestringEncrypted message nonce (hex)No
messageToEncryptIsTextbooleanMessage to encrypt is textNo
compressMessageToEncryptbooleanCompress message to encryptNo

Response

{
"verify": true,
"errorCode": 0,
"errorDescription": ""
}

Error Codes

CodeDescription
4Incorrect transaction
5No such plain/encrypted message
6Hash mismatch

Example

curl -X POST "http://localhost:22024/nxt?requestType=verifyPrunableMessage" \
-d "transactionFullHash=abc123..." \
-d "message=Hello World"