1

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?

3

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? – Patoshi パトシ Oct 6 '17 at 18:43
  • None written already. – user36303 Oct 6 '17 at 21:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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