Skip to content

This is a Python-based CLI tool for deploying and managing smart contracts on Ethereum, Binance Smart Chain, and Polygon blockchains. It simplifies the deployment process and makes it easier for developers to test and manage their contracts.

License

Notifications You must be signed in to change notification settings

recorner/Python-Smart-Contract-tool

Repository files navigation

Python Smart Contract DEployment tool on web3

Blockchain CLI Tool

A Python-based CLI tool for deploying and managing smart contracts on various blockchain platforms like Ethereum, Binance Smart Chain, and Polygon.

This tool streamlines the deployment process and makes it easier for developers to test and manage their contracts.

Requirements

  • Python 3.x
  • click
  • eth-account
  • eth-brownie
  • eth-utils
  • web3

Installation

  1. Clone the repository https://github.com/recorner/Python-Smart-Contract-tool.git

  2. Install the required packages pip install -r requirements.txt

Usage

Deploy a smart contract

python cli.py deploy <contract_name> <private_key> [args...]

Example: python cli.py deploy ethereum my_contract_file 0x1234...5678 arg1 arg2 arg3

Get the address of a deployed contract

python cli.py get_balance

Example: python cli.py get_balance polygon_mumbai 0x1234...5678

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin feature/my-new-feature)
  5. Create a new Pull Request

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

This is a Python-based CLI tool for deploying and managing smart contracts on Ethereum, Binance Smart Chain, and Polygon blockchains. It simplifies the deployment process and makes it easier for developers to test and manage their contracts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages