monero-python
monero-python copied to clipboard
parse payment link/QR code
edit: Parsing a payment uri is currently not available in monero-python. See both @euri10 's and my comments below for useful examples if you want to write your own function. I don't feel comfortable enough (yet) with monero-python to create a pull request that fits with the rest of the code base. It would be great to be able to get monero-python type objects straight out of the uri in the future (if that fits what monero-python is built for).
Hi all,
First of all. Thank you for the great project. The documentation is very good.
I have a question:
I currently scan a QR code and am looking to make a payment to the address encoded in the QR. I want to check whether the QR is valid and if so, get the payment address out of the encoded link (plus possibly the amount, name and description).
My question: do I need to write my own regex to parse the link or is there a function for this?
Example we might have a link of the following format:
monero:<address>?tx_amount=<tx_amount>&recipient_name=<recipient_name>&tx_description=<tx_description>