Skip to content
This repository was archived by the owner on Jul 31, 2026. It is now read-only.

⚠️ PLEASE READ ⚠️

This package has been migrated to our internal-snaps monorepo, and this repository has been archived. Please note that all future development and feature releases will take place in the internal-snaps repository.

Tron

Tron Logo

Getting Started

The Tron Snap allows MetaMask and dapps to support all Tron-related networks and address types.

Prerequisites

  • MetaMask Flask
  • Nodejs 22. We strongly recommend you install via NVM to avoid incompatibility issues between different node projects.
  • Once installed, you should also install Yarn with npm i -g yarn to make working with this repository easiest.

Installing

nvm use
yarn install

Configuration

Please see ./src/packages/.env.example for reference

Running

Quick Start

yarn start

Snap

⚠️ When snap updates you will need to still reconnect from the dapp to see changes

# Running Snap via watch mode
yarn workspace @metamask/tron-wallet-snap start

Git Hooks & Manifest Handling

The snap.manifest.json contains a shasum that differs between local and production builds. Git hooks ensure the repository always contains production-ready builds:

On Commit (with snap changes)

  1. Detects if any packages/snap/ files are staged
  2. Runs build:prod → updates manifest with production settings and shasum
  3. Stages the updated snap.manifest.json
  4. Runs lint:fix on all files

On Push

  1. Runs the test suite
  2. Push proceeds if tests pass

Local Development

yarn start builds with local settings (adds localhost origins and dev permissions). These are automatically converted to production settings when you commit.

About

Tron wallet snap

Resources

Code of conduct

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages