Get Prunable Message
Get the prunable message given a transaction ID, optionally decrypting it if encrypted and if a secretPhrase is provided, if it is still available.
Request:
- requestType is getPrunableMessage
- transaction is the transaction ID
- secretPhrase is the secret phrase needed for decryption (optional)
- sharedKey is the shared key used to decrypt the message (optional) (see Get Shared Key)
- retrieve is true to retrieve pruned data from other nodes if not available (optional)
- requireBlock is the block ID of a block that must be present in the blockchain during execution (optional)
- requireLastBlock is the block ID of a block that must be last in the blockchain during execution (optional)
Response:
- sender (S) is the sender account number
- senderRS (S) is the Reed-Solomon address of the sender account
- recipient (S) is the recipient account number
- recipientRS (S) is the Reed-Solomon address of the recipient account
- message (S) is the plain message text
- messageIsText (B) is true if the plain message is text, false if it is a hex string
- encryptedMessage (O) is the encrypted message object, containing data (S) and nonce (S) fields
- encryptedMessageIsText (B) is true if the encrypted message is text, false if it is a hex string
- decryptedMessage (S) is the decrypted and decompressed (if necessary) encrypted message, if applicable and if secretPhrase is provided
- isCompressed (B) is true if the encrypted message was compressed before encryption, if applicable
- transaction (S) is the transaction ID
- transactionTimestamp (N) is the transaction timestamp (in seconds since the genesis block)
- blockTimestamp (N) is the block timestamp (in seconds since the genesis block)
- lastBlock (S) is the last block ID on the blockchain (applies if requireBlock is provided but not requireLastBlock)
- requestProcessingTime (N) is the API request processing time (in millsec)