Git Product home page Git Product logo

blockchain-wmcoin's Introduction

Wmcoin Blockchain

Wmcoin is a simple blockchain implementation built in JavaScript. It allows you to create transactions, add them to blocks, and mine new blocks to secure the blockchain.

Installation

To get started with Wmcoin, you will need to have Node.js and npm installed on your machine. You can download Node.js from here.

To install Wmcoin, clone the repository to your local machine:

git clone https://github.com/walidmeguenni/blockchain-wmcoin.git

Then, navigate to the project directory and install the required dependencies:

cd blockchain-p2p

npm install

Usage

To start using Wmcoin, you can run the blockchain server by executing:

npm run start

This will start the server at http://localhost:3001. You can access the blockchain API using a web browser or a tool like Postman.

API Endpoints

The following endpoints are available in the Wmcoin API:

  • GET /chain: Retrieves the current blockchain
  • POST /transactions/new: Adds a new transaction to the blockchain
  • POST /mine: Mines a new block and adds it to the blockchain

Example Usage

To mine a new block, you can make a POST request to http://localhost:3001/mine.

Contributing

Contributions to Wmcoin are welcome! If you have a bug to report or a feature to suggest, please open an issue on the GitHub repository.

If you would like to contribute code to Wmcoin, please fork the repository and submit a pull request with your changes.

License

Wmcoin is licensed under the MIT License.

blockchain-wmcoin's People

Contributors

walidmeguenni avatar

Watchers

 avatar

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.