Giter Club home page Giter Club logo

blockchain-lab's Introduction

Blockchain Lab | Open In Colab Open in Cloud Shell

A fully functional blockchain lab.

Install

pip3 install blockchain_lab

Using

In another script

You can give these parameters in blockchain_lab()

  • Node number with "node_number"
  • Security circle number with "security_circle_number"
  • Path with "path"

Docker | Create & Delete

from blockchain_lab import blockchain_lab

blockchain_lab().create_docker()
from blockchain_lab import blockchain_lab

blockchain_lab().delete_docker()

Local | Create & Delete

from blockchain_lab import blockchain_lab

blockchain_lab().create_local()
from blockchain_lab import blockchain_lab

blockchain_lab().delete_local()

Status

from blockchain_lab import blockchain_lab

blockchain_lab.status()

Test with a transaction

from blockchain_lab import blockchain_lab

blockchain_lab.send_transaction(receiver = "decentra-network", amount = 5000, data = "blockchain-lab")

In command line

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"

Docker | Create & Delete

blockchain_lab_create_docker
blockchain_lab_delete_docker

Local | Create & Delete

blockchain_lab_create_local
blockchain_lab_delete_local

Status

blockchain_lab_status

Test with a transaction

blockchain_lab_send_transaction -r decentra-network -a 5000 -d blockchain-lab

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.