MetaMask / MetaMask/metamask-mobile

Call Smart Contract Function with QR Code from MetaMask Mobile App

Open
#10,106 0 comments 0 reactions 0 assignees View on GitHub
external-contributor
Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

### What is this about?

Objective:
Is is possible to enable users to interact with a smart contract function using QR codes via the MetaMask mobile app ?

The function accepts four parameters:

id: A unique identifier provided by the user.
from: The sender's address.
_to: The recipient's address.
value: The amount of ERC20 tokens to be transferred.
I beli

Point to be noted: - We are calling erc-20 transfer function in other smart contract function, not directly.

### Scenario

Process:
The user inputs the id.
A QR code is generated containing the smart contract function call with the specified parameters (described above).
Scanning the QR Code:

The user scans the QR code using the MetaMask mobile app.

The smart contract function is called, transferring the specified value of ERC20 tokens to the _to address.

### some reference to the issue

https://github.com/MetaMask/metamask-mobile/issues/1059

### Design

_No response_

### Technical Details

_No response_

### Threat Modeling Framework

_No response_

### Acceptance Criteria

_No response_

### Stakeholder review needed before the work gets merged

- [ ] Engineering (needed in most cases)
- [ ] Design
- [ ] Product
- [ ] QA (automation tests are required to pass before merging PRs but not all changes are covered by automation tests - please review if QA is needed beyond automation tests)
- [ ] Security
- [ ] Legal
- [ ] Marketing
- [ ] Management (please specify)
- [ ] Other (please specify)

### References

_No response_

Contributor guide

Open the contributing guide

Research direction

No files, tests, or implementation entry points are identified. Start by clarifying the MetaMask Mobile QR flow and supported smart-contract call format, then define acceptance criteria for parameter encoding, scanning, transaction approval, and the ERC-20 transfer.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
blockchain, mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.