Skip to content
This repository was archived by the owner on Mar 9, 2024. It is now read-only.
This repository was archived by the owner on Mar 9, 2024. It is now read-only.

parse payment link/QR code #137

@ghost

Description

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions