Wisster was ich verschenke das script. Ihr müsst node js installen fertig. Könnt gerne das script Prüfen gibt keine calls ausser in die chain der contract ist auch sehr simpel gehalten .
https://github.com/hannesgudaber/Token/blob/main/README.mdhttps://github.com/hannesgudaber/TokenERC20 Token Deployer
A Python tool for easily creating and deploying ERC20 Tokens on custom blockchain networks.
Features
✅ Custom Chain Compatible - Works with any EVM-compatible chain
✅ Automatic Contract Generation - Creates Solidity code based on your input
✅ Compilation - Automatically compiles the contract
✅ ABI Export - Saves ABI for later use
✅ Deployment - Deploys the token directly on the chain
✅ Deployment Info - Saves all important information
Installation
Install Python (Version 3.8 or higher)
Install Dependencies:
pip install -r requirements.txt
Usage
Interactive Mode
Simply start the script:
python token_deployer.py
The script will guide you through the following steps:
Enter Token Details:
Token Name (e.g. "My Awesome Token")
Token Symbol/Ticker (e.g. "MAT")
Initial Supply (e.g. "1000000")
Contract is automatically generated and compiled
Optional: Immediate Deployment:
Enter RPC URL of the chain
Enter Private Key
Token will be deployed
Generated Files
After execution, the following files will be created:
{SYMBOL}Token.sol - The Solidity Contract Code
{SYMBOL}Token_ABI.json - The Contract ABI
{SYMBOL}Token_deployment.json - Deployment Information (if deployed)
Compatible Chains
The tool works with all EVM-compatible chains, e.g.:
Ethereum Mainnet/Testnets
RPC:
https://rpc.ankr.com/ethBinance Smart Chain
RPC:
https://bsc-dataseed.binance.org/Polygon
RPC:
https://polygon-rpc.com/Avalanche C-Chain
RPC:
https://api.avax.network/ext/bc/C/rpcArbitrum
RPC:
https://arb1.arbitrum.io/rpcOptimism
RPC:
https://mainnet.optimism.ioCustom/Local Chains
RPC:
http://localhost:8545 (e.g. Hardhat/Ganache)
Example
$ python token_deployer.py
============================================================
ERC20 TOKEN DEPLOYER
============================================================
STEP 1: Token Details
----------------------------------------
Token Name (e.g. 'My Token'): Super Coin
Token Symbol/Ticker (e.g. 'MTK'): SUPER
Initial Supply (e.g. '1000000'): 5000000
STEP 2: Contract Generation
----------------------------------------
✓ Contract saved to: SUPERToken.sol
STEP 3: Contract Compilation
----------------------------------------
Installing Solidity Compiler 0.8.20...
✓ Contract compiled successfully
✓ ABI saved to: SUPERToken_ABI.json
STEP 4: Deployment
----------------------------------------
Do you want to deploy the token now? (y/n): y
RPC URL:
https://polygon-rpc.com/✓ Connected to chain (Chain ID: 137)
Private Key (starts with 0x): 0x...
Deploying from: 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb
Sending transaction...
Waiting for confirmation...
============================================================
✓ TOKEN SUCCESSFULLY DEPLOYED!
============================================================
Contract Address: 0x1234567890AbcdEF1234567890AbcdEF12345678
Transaction Hash: 0xabcdef...
Block Number: 12345678
Gas Used: 987654
============================================================
✓ Deployment info saved to: SUPERToken_deployment.json
Security Notes
⚠️ IMPORTANT:
Never share your Private Key
Keep your Private Key safe
Use a testnet for testing
Verify the RPC URL before deployment
Smart Contract Features
The generated ERC20 Token includes:
✅ Standard ERC20 functions (transfer, approve, transferFrom)
✅ 18 decimal places
✅ Events (Transfer, Approval)
✅ Security checks
✅ Solidity 0.8.20 (with built-in overflow checks)
Programmatic Usage
You can also use the deployer in your own scripts:
from token_deployer import ERC20TokenDeployer
deployer = ERC20TokenDeployer()
# Generate contract
contract_code = deployer.generate_solidity_contract("My Token", "MTK", 1000000)
deployer.save_contract_to_file(contract_code, "MTK")
# Compile
deployer.compile_contract(contract_code, "MTK")
deployer.save_abi("MTK")
# Connect to chain and deploy
deployer.connect_to_chain("
https://polygon-rpc.com/")
deployer.deploy_contract("0xYOUR_PRIVATE_KEY", "MTK")
Troubleshooting
"Connection to chain failed"
Check the RPC URL
Make sure you have internet access
Try an alternative RPC URL
"Insufficient funds"
Make sure your wallet has enough balance for gas
Check the gas costs on the respective chain
Compiler Errors
The script automatically installs the Solidity Compiler
If problems persist: Manual installation with solc-select install 0.8.20
License
MIT License - Free to use
Support
For questions or issues, create an issue in the repository.