Is there a way to scan the blockchain for all payment id's that are actually messages when converted from hex to ascii? This would be an interesting use case of marking transactions you want public as a message. How would one go about doing this?

1 Answer 1


There is a function in BlockchainDB which iterates through all transactions: for_all_transactions. Call this with a function which extracts the payment id (see find_tx_extra_field_by_type and get_payment_id_from_tx_extra_nonce), and scan its bytes for suitability (isprint).

  • any sample code of how this would be done? Commented Oct 6, 2017 at 18:43
  • None written already.
    – user36303
    Commented Oct 6, 2017 at 21:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.