A fully functional blockchain lab.
pip3 install blockchain_lab
You can give these parameters in blockchain_lab()
- Node number with "node_number"
- Security circle number with "security_circle_number"
- Path with "path"
from blockchain_lab import blockchain_lab
blockchain_lab().create_docker()
from blockchain_lab import blockchain_lab
blockchain_lab().delete_docker()
from blockchain_lab import blockchain_lab
blockchain_lab().create_local()
from blockchain_lab import blockchain_lab
blockchain_lab().delete_local()
from blockchain_lab import blockchain_lab
blockchain_lab.status()
from blockchain_lab import blockchain_lab
blockchain_lab.send_transaction(receiver = "naruno", amount = 5000, data = "blockchain-lab")
You can give these parameters in command line arguments of create and delete functions.
- Node number with "-nn" or "--nodenumber"
- Security circle number with "-scn" or "--securitycirclenumber"
- Path with "-p" or "--path"
blockchain_lab_create_docker
blockchain_lab_delete_docker
blockchain_lab_create_local
blockchain_lab_delete_local
blockchain_lab_status
blockchain_lab_send_transaction -r naruno -a 5000 -d blockchain-lab