This project provides a service that interacts with a private blockchain using smart contracts for storing and retrieving energy trades. It uses the Substrate framework for creating a private blockchain, running locally with only one node, and a smart contract written in Ink to handle the operations of read/write of the trade objects to the blockchain. The Python CLI script is used to deploy and interact with the smart contract.
/cli-app: Python CLI app for interacting with the smart contract/contracts: Smart contracts written in Ink for handling read/write operations on the blockchain/substrate-node: Private Substrate node for running the blockchain
- Install Rust, Python, Substrate according to the provided links in the prerequisites section.
- Clone the repository:
- Follow the setup instructions in each subfolder:
- Start the private Substrate node by following the instructions in the substrate-node README.
- Deploy the smart contract by following the instructions in the contracts README.
- Use the Python CLI app to interact with the smart contract. Examples can be found in the cli-app README.
This project is licensed under the MIT License.