txnDuck icon indicating copy to clipboard operation
txnDuck copied to clipboard

URL query parameters to compose a transaction

Open No-Cash-7970 opened this issue 8 months ago • 0 comments

Is your feature request related to a problem? Please describe.

There is no way for someone to share a transaction with pre-filled data for another person to sign. This would be useful for sharing a link for making a transaction for a tip or donation.

Example senario: A link for making a transaction for tipping a creator. The link for the transaction would include the creator's address as the receiver and maybe a default amount.

Describe the solution you'd like

A limited set of URL query parameter are used to fill in the Compose Transaction form. Probably should have a query parameter that sets the network (MainNet, TestNet, etc.) also. (Issue #159)

Describe alternatives you've considered

No response

Additional context

There are some security concerns regarding having a link for a pre-filled Compose Transaction form. One security concern is the case where the user was in the middle of composing or signing a transaction before clicking the pre-filled form link. The user should be asked if they want to continue with the new transaction or save the old transaction in this case.

Another security concern is the case where link is for a malicious transaction. There are a few mitigations for this: limited set of URL parameters, banner notice at the top with prefilled fields and unfilled required fields highlighted.

No-Cash-7970 avatar May 31 '24 22:05 No-Cash-7970