MetaMask / MetaMask/metamask-mobile

Passing hex data via deeplink for MetaMask

Open
#4,547 2 comments 1 reaction 0 assignees View on GitHub
area-transactions external-contributor feature-request INVALID-ISSUE-TEMPLATE team-wallet-integrations
Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

I'm trying to generate deeplink for Metamask using this website: `https://metamask.github.io/metamask-deeplinks/`

Everything works well if i scan with my phone, but also i'd like to generate deeplink in order to send ETH to smart contract with custom hex data (function call).

I didn't find anything in documentation or google about hex parameter, but i'm able to enter hex manually when i send transaction so i think passing the hex via deeplink is also possible.

My deeplink example:

`https://metamask.app.link/send/0x_someaddress@1?value=1e18&hex=0x5fd8c710`

I tried to guess what the possible params are, like `hex`, `hexData`, `data`, etc.. but nothing works. Metamask parses value, address, but never hex.

Any help with that issue?

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is identified in the issue. Start by locating MetaMask Mobile's deeplink parsing and its existing address and value parameter tests, then determine the supported way to carry transaction calldata; done means a deeplink can pass the requested hex data and coverage verifies it.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
blockchain, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.