tronbox

Original🇺🇸 English
Translated

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

6installs
Added on

NPX Install

npx skill4agent add hairyf/blockchain-skills tronbox
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

TopicDescriptionReference
Configurationtronbox.js / tronbox-evm-config.js, networks, paths, solccore-config
Migrations & DeployerMigration scripts, deploy/link/then API, context (artifacts, tronWeb, ethers)core-migrations
CompileCompiling contracts, --all / --evm, build outputcore-compile
Testingtronbox test, test discovery, artifacts in testscore-testing
ConsoleInteractive REPL with contract abstractionscore-console
CLIAll commands and optionscore-cli
Artifacts & ResolverBuild output shape, resolver order, artifacts.require / resolvecore-artifacts-resolver
Contract abstractionnew(), at(), deployed(), call(), link, defaultscore-contract-abstraction

Features

TopicDescriptionReference
EVM modeEVM chains, tronbox-evm-config.js, --evm, ethersfeatures-evm
Init & Unboxtronbox init (sample/MetaCoin), unbox templatesfeatures-init-unbox
FlattenFlatten contracts and dependencies to single file (verification/auditing)features-flatten
DeployAlias for migrate; same options and behaviorfeatures-deploy
TronWrap & providerTronWeb/ethers context, waitForTransactionReceipt, TREfeatures-tronwrap

Best Practices

TopicDescriptionReference
Environment & networksEnvironment.detect, default network, network_id/from, common errorsbest-practices-environment
Errors & exit behaviorTaskError, config/compile/migrate errors, exit codesbest-practices-errors