Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON array of objects for params #1

Open
brunocalmels opened this issue Mar 23, 2022 · 1 comment
Open

JSON array of objects for params #1

brunocalmels opened this issue Mar 23, 2022 · 1 comment

Comments

@brunocalmels
Copy link

I'm proposing a different parameter scheme, allowing for different addresses in different chains. I'd rather go for an array of objects, such as:

[
    {
        "coin": "usdt",
        "chain": "ethereum",
        "address": "0xbeefeate9"
    },
    {
        "coin": "dai",
        "chain": "bsc",
        "address": "0xbeefeate4"
    }
    // And so on
]
@juampiq6
Copy link
Owner

juampiq6 commented Mar 23, 2022

I had thought of this and i wanted to make the paycrypto URI scheme compatible with the actual HTTPS URI scheme (https://datatracker.ietf.org/doc/html/rfc1738#section-3.3 and https://datatracker.ietf.org/doc/html/rfc2616#section-3.2.2) for reducing friction when implementing. But it would make sense to use json since its a lot easier to prepare a json and add it to the end of the url in its stringified form. I will investigate if there is already an standard version of using the json format in a URI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants