Sometimes we just need a minimal script, and this is just that based on https://trontools.org/energy-and-bandwith-calculator
Steps
- git clone this repo
- cd into your local repo
npm installORyarn installto install dependenciescp env.sample .env- Edit your .env file with your actual testnet/mainnet private key (take the necesary precautions when dealing with mainnet pk)
- Import your abi and bytecode json files from already compiled contracts into /abi and /bytecode folders (manually edit constructor inputs whenever necesary in your abi)
bun sc_deploy_estimator.tsx
Note: abi and bytecode examples are provided for testing purposes, make sure to replace those with your own.
You should see something like in your terminal output:
If you encounter issues feel free to open an issue or create a PR to improve the scrip.
