MetaMask / MetaMask/metamask-extension

Add `wallet_suggestDraftTransaction` RPC method

Open
#12,105 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-api ux-enhancement
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

"As a dapp developer, I would like to suggest a transaction to the user with some parameters specified, while allowing the user to edit the rest of them."

Alternatively, any / all transaction parameters are filled in by the dapp, but the transaction shows up in "edit mode" in the confirmation so that the user can modify some / all parameters.

We should do this via a new `wallet_` RPC method, and @brad-decker suggested the name `wallet_suggestDraftTransaction`. Thanks to Twitter user [person72443](https://twitter.com/person72443) for [suggesting the feature](https://twitter.com/person72443/status/1436858417151315970).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by tracing existing wallet_ RPC methods and the transaction confirmation flow, then define how partially specified parameters remain editable; done means the new method is available and its edit-mode behavior is covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.