Mobile web browser providing access to websites that use the Ethereum blockchain
MetaMask is a mobile wallet that provides easy access to websites that use the Ethereum blockchain.
For up to the minute news, follow our Twitter or Medium pages.
To learn how to develop MetaMask-compatible applications, visit our Developer Docs.
To learn how to contribute to the MetaMask codebase, visit our Contributor Docs.
app/util/number/index.js burndown and ESLint allowlist)MetaMask Mobile requires an Infura project ID to connect to blockchain networks.
.js.env file from 1Password, ask around for the correct vault. This file contains the MM_INFURA_PROJECT_ID.MM_INFURA_PROJECT_ID in .js.env.example.js.env.example to .js.env[!CAUTION]
Without an Infura project ID, the app cannot connect to blockchain networks.
Expo is the fastest way to start developing. With the Expo framework, developers don't need to compile the native side of the application as before, hence no need for any native environment setup, developers only need to download a precompiled development build and run the javascript bundler. The development build will then connect with the bundler to load the javascript code.
Install node, yarn v4 and watchman.
git clone git@github.com:MetaMask/metamask-mobile.git && \
cd metamask-mobile
yarn setup:expo
yarn watch
Expo development builds are produced by the Expo Dev Build GitHub Actions workflow. It runs on every push to main, but only actually compiles iOS/Android when the @expo/fingerprint hash of native code changed since the last build (plus a weekly Monday refresh so artifacts never go stale) — most pushes just reuse the existing build. This means the resolved run may be older than main HEAD; that's expected. Artifacts are stored as GitHub Actions artifacts (not Runway buckets).
Prerequisites: GitHub CLI (gh) authenticated with access to this repository (gh auth login).
Recommended — install the latest build on a simulator/emulator:
# iOS simulator
yarn install:ios:dev
# Android emulator or device
yarn install:android:dev
Download only (no install):
yarn install:ios:dev --skipInstall
yarn install:android:dev --skipInstall
Re-runs skip the download when the GitHub Actions artifact digest matches a local cache under build/gh-expo-dev-build/. Force a fresh download with --force-download:
yarn install:ios:dev --force-download
yarn install:android:dev --force-download
Artifacts land under build/ (MetaMask.app on iOS, metamask-dev.apk on Android). The workflow run id is saved to build/expo-dev-build-run-id.txt.
Manual download from GitHub Actions:
Note: since most runs skip the actual build (fingerprint unchanged), the most recent successful run may not have build artifacts attached — open the run and check for a build-dev job (skipped runs only have resolve-dev-build).
# List recent successful Expo Dev Build runs on main
gh run list --repo MetaMask/metamask-mobile --workflow expo-dev-build.yml --branch main --status success --limit 5
mkdir -p build
# iOS simulator (.zip artifact → extract to MetaMask.app)
gh run download RUN_ID --repo MetaMask/metamask-mobile \
-n ios-app-main-dev-expo -D build
mkdir -p build/MetaMask.app
ditto -x -k build/metamask-simulator-*.zip build/MetaMask.app
# Android debug APK
gh run download RUN_ID --repo MetaMask/metamask-mobile \
-n android-apk-main-dev-expo -D build
cp build/metamask-dev-main-*.apk build/metamask-dev.apk
# iOS physical device (.ipa — requires registered test device)
gh run download RUN_ID --repo MetaMask/metamask-mobile \
-n ios-ipa-main-dev-expo -D build
Use a specific workflow run instead of the latest:
yarn install:ios:dev --run RUN_ID
yarn install:andro
good first issue 또는 help wanted 이슈가 없습니다.
If you're submitting code to MetaMask, there are some simple things we'd appreciate you doing to help us stay organized!
Before taking the time to code and implement something, feel free to open an issue and discuss it! There may even be an issue already open, and together we may come up with a specific strategy before you take your precious time to write code.
There are also plenty of open issues we'd love help with. Search the good first issue label, or head to Gitcoin and earn ETH for completing projects we've posted bounties on.
If you're picking up a bounty or an existing issue, feel free to ask clarifying questions on the issue as you go about your work.
When you're done with your project / bugfix / feature and ready to submit a PR, there are a couple guidelines we ask you to follow:
coding guidelines: These guidelines aim to maintain consistency and readability across the codebase. They help ensure that the code is easy to understand, maintain, and modify, which is particularly important when working with multiple contributors.tests folder.CHANGELOG.md with a link to your PR.fixes #$ISSUE_NUMBER. Ex. For closing issue 418, include the line fixes #418. If it doesn't close the issue but addresses it partially, just include a reference to the issue number, like #418.main: Submit your PR against the main branch. This is where we merge new features to be included in forthcoming releases. When we initiate a new release, we create a branch named release/x.y.z, serving as a snapshot of the main branch. This particular branch is utilized to construct the builds, which are then tested during the release regression testing phase before they are submitted to the stores for production. In the event your PR is a hot-fix for a bug identified on the release/x.y.z branch, you should still submit your PR against the main branch. This PR will subsequently be cherry-picked into the release/x.y.z branch by our release engineers.Which runner fleet a job lands on is controlled by four repository-level Actions variables. They exist so the fleet can be moved or rolled back by editing variables, with no code change, no revert and no redeploy.
NAMESPACE_RUNNER_PROVIDER — fallback when the job's platform variable is unset. It does not override NAMESPACE_RUNNER_LINUX / _ANDROID / _IOS.NAMESPACE_RUNNER_IOS — iOS and macOS jobs only.NAMESPACE_RUNNER_ANDROID — Android build and e2e jobs only.NAMESPACE_RUNNER_LINUX — everything else (lint, unit, integration, upload and summary jobs).Accepted values:
namespace — Namespace runners (namespace-profile-*).current — the routing that predates the Namespace migration. This is not one label: it resolves per job to Cirrus for native builds and e2e, and to ubuntu-latest or macos-latest for the lighter jobs.Resolution order, highest priority first:
runner_provider workflow input, when it is set to something other than inherit. This is a per-run override.NAMESPACE_RUNNER_IOS, _ANDROID or _LINUX).NAMESPACE_RUNNER_PROVIDER.current.The build.yml build job only applies step 1 to builds that are unsigned or use a dev or UAT signer (*-dev-signer* or *-uat-signer* in builds.yml). For every other signer, including production, RC and any signer added later, only the repo variables pick the runner. The Runway workflows (runway-production-builds.yml, runway-rc-builds.yml) have no runner_provider input.
Push-, schedule- and merge_group-triggered workflows have no dispatch inputs, so the variables are the only way to steer them. That is why the input default is empty rather than a concrete provider.
The production build chain (build.yml, setup-node-modules.yml, upload-to-testflight.yml and their callers) and PR CI (ci.yml plus the Android/iOS e2e build workflows) are on the switch. BrowserStack native builds go through build.yml and follow the fleet. OTA (eas-update-platform.yml) and iOS BrowserStack upload follow NAMESPACE_RUNNER_LINUX (ci-linux vs ubuntu-latest). On Namespace the OTA push label is namespace-profile-metamask-ci-linux;job.priority=1, so a queued update is scheduled ahead of other Namespace jobs that set no priority. That ordering applies only when the workspace is at its concurrency limit, and it does not preempt a job that is already running. The ubuntu-latest rollback has no priority. Android Br