Skip to content

wallet-rpc: deprecate payment_id from parse / make_uri#275

Open
plowsof wants to merge 1 commit intomonero-project:masterfrom
plowsof:patch-12
Open

wallet-rpc: deprecate payment_id from parse / make_uri#275
plowsof wants to merge 1 commit intomonero-project:masterfrom
plowsof:patch-12

Conversation

@plowsof
Copy link
Copy Markdown
Collaborator

@plowsof plowsof commented Feb 17, 2026

Note: The tx_payment_id parameter was supported in earlier versions of this specification but is now deprecated and no longer allowed for manual inclusion.

https://github.com/monero-project/monero/wiki/URI-Formatting

Note: The tx_payment_id parameter was supported in earlier versions of this specification but is now deprecated and no longer allowed for manual inclusion.

https://github.com/monero-project/monero/wiki/URI-Formatting
@github-actions
Copy link
Copy Markdown

What Link
🕵️‍♂️ Review Files changed
🌐 Deploy Preview #275

Example:

```json
$ curl -X POST http://127.0.0.1:18088/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"parse_uri","params":{"uri":"monero:55LTR8KniP4LQGJSPtbYDacR7dz8RBFnsfAKMaMuwUNYX6aQbBcovzDPyrQF9KXF9tVU6Xk3K8no1BywnJX6GvZX8yJsXvt?tx_payment_id=420fa29b2d9a49f5&tx_amount=0.000000000010&recipient_name=el00ruobuob%20Stagenet%20wallet&tx_description=Testing%20out%20the%20make_uri%20function."}}' -H 'Content-Type: application/json'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with short payment id, i get

     "message": "Error parsing URI: Invalid payment id: 50fa0ddf2e301fcf"

but with long payment id, i get

    "uri": {
      "address": "xxxxxxx",
      "amount": 10,
      "payment_id": "8a3ab856ac1f35eeacc9cc696b4901032fada3baa6caeaf9e70fb8b1447bc784",
      "recipient_name": "el00ruobuob Stagenet wallet",
      "tx_description": "Testing out the make_uri function."

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah so this would be deprecating the short payment id in the example only?

the Note in the wiki is either wrong, or needs to clarify its only short id's , or this should not work but it does?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or this should not work but it does?

this is how felt about it, but i have no idea

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after looking at make/parse uri functions spread across wallet2/api and rpc they still support it. im not sure what the best way would be to correct that if backwards compatibility is needed. a payment id == an integrated address iiuc which are still valid unless long payment ids are actually deprecated then it should not be backward compatible 🤔

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

2 participants