tronbox

star 4

Development framework and testing environment for TRON (TVM) and EVM-compatible chains — compile, migrate, test, and console.

hairyf By hairyf schedule Updated 2/25/2026

name: tronbox description: Development framework and testing environment for TRON (TVM) and EVM-compatible chains — compile, migrate, test, and console. metadata: author: Hairy version: "2026.1.1" source: Generated from https://github.com/tronprotocol/tronbox, scripts located at https://github.com/antfu/skills

The skill is based on TronBox v4.5.0, generated at 2026-02-25.

TronBox is a Truffle-style framework for TRON: smart contract compilation, migrations, testing, and an interactive console. It supports both the native TRON Virtual Machine (TVM) and EVM-compatible chains (e.g. BTTC) via a separate config and the --evm flag. Migrations and tests use ethers v6 in EVM mode and TronWeb for TVM.

Core References

Topic Description Reference
Configuration tronbox.js / tronbox-evm-config.js, networks, paths, solc core-config
Migrations & Deployer Migration scripts, deploy/link/then API, context (artifacts, tronWeb, ethers) core-migrations
Compile Compiling contracts, --all / --evm, build output core-compile
Testing tronbox test, test discovery, artifacts in tests core-testing
Console Interactive REPL with contract abstractions core-console
CLI All commands and options core-cli
Artifacts & Resolver Build output shape, resolver order, artifacts.require / resolve core-artifacts-resolver
Contract abstraction new(), at(), deployed(), call(), link, defaults core-contract-abstraction

Features

Topic Description Reference
EVM mode EVM chains, tronbox-evm-config.js, --evm, ethers features-evm
Init & Unbox tronbox init (sample/MetaCoin), unbox templates features-init-unbox
Flatten Flatten contracts and dependencies to single file (verification/auditing) features-flatten
Deploy Alias for migrate; same options and behavior features-deploy
TronWrap & provider TronWeb/ethers context, waitForTransactionReceipt, TRE features-tronwrap

Best Practices

Topic Description Reference
Environment & networks Environment.detect, default network, network_id/from, common errors best-practices-environment
Errors & exit behavior TaskError, config/compile/migrate errors, exit codes best-practices-errors
Install via CLI
npx skills add https://github.com/hairyf/blockchain-skills --skill tronbox
Repository Details
star Stars 4
call_split Forks 1
navigation Branch main
article Path SKILL.md
More from Creator