3

Is there a way to set a payment id as a regular message instead of random characters? What format does it have to follow?

2 Answers 2

2

It is just hex characters, so you can use a tool like this to convert it to ascii.

2
  • 1
    why didnt they just make it ascii instead of hex? Sep 28, 2017 at 18:34
  • As user36303 mentions in their answer, it's generally random, so a number works fine.
    – jwinterm
    Sep 30, 2017 at 2:56
1

The payment ID is arbitrary. If you want to use text, you are free to do so. A common use is to use a hash or some data, or some random number, which is why most look random, but they do not have to be. Indeed, some are definitely text looking. You are limited to 256 bits, however (64 characters in normal ASCII encoding).

Your Answer

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

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