Practical-Off-Chain-Smart-Contract-Execution
A methodology to improve blockchain throughput and reduce gas fees by executing smart contracts off-chain.
We quantify the performance in terms of gas fees and execution time.
Execution Details
Execution Platform
Remix
Necessary Dependencies
- Remixd
- Hardhat
- Python- Web3
Steps
- cd into the folder blockchain project by command
cd blockchain_project
- Connect your localhost to the remix platform to import the files. For this, start a connection using remixd library.
- Start a local blockchain testnet using the hardhat library in npm.
- Now deploy the solidity contract
name.sol
on the local testnet using the remix platform. - Now, run the file
client.py
in a separate terminal. This is representative of the client, who interacts with the executor from the pool of operators. - Finally, run the two files
operator1.py
andoperator2.py
in separate terminals representative of the pool of operators. - The client can give commands to the executor, chosen from the two operators and can even change the executor.
- Refer to
report.pdf
for in depth analysis .