Skip to content
Proyectos

Acerca de

a blockchain implementation in 200 lines of code.

Negocios y finanzas

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

naivechain

Naivechain - a blockchain implementation in 200 lines of code.

Quick start

git clone https://github.com/sunysen/naivechain.git
cd naivechain
mvn clean install
java -jar naivechain.jar 8080 7001
java -jar naivechain.jar 8081 7002 ws://localhost:7001

HTTP API

  • query blocks

    curl http://localhost:8080/blocks
    
  • mine block

    curl --data "data=Some data to the first block" http://localhost:8080/mineBlock
    
  • add peer

    curl --data "peer=ws://localhost:7001" http://localhost:8080/addPeer
    
  • query peers

    curl http://localhost:8080/peers
    

Explorar proyectos relacionados

Cargando…