https://github.com/jpmcb/blockchain-py
Blockchain python API
https://github.com/jpmcb/blockchain-py
Last synced: about 1 year ago
JSON representation
Blockchain python API
- Host: GitHub
- URL: https://github.com/jpmcb/blockchain-py
- Owner: jpmcb
- Created: 2018-08-24T21:55:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-02T04:21:07.000Z (almost 8 years ago)
- Last Synced: 2025-02-09T00:18:06.377Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Python Blockchain API
----------
A simple, Python blockchain API. This blockchain can run on your personal computer, a server, or anywhere. Nodes may be registered and the chain will be resolved among the various chains. `GET` requests may be made to the server running the API to mine blocks are return proof of work.
#### API Routes:
`/mine` : Mines a new block into the chain. Reterns a receipt with proof of work
`chain` : Returns the entire blockchain
`/transaction/new` : Enters a new "transaction" from a sender address and enters it into the block queue. The next block that is mined will hold these transactions
`/nodes/register` : Registers a address with the server hosting the blockchain
`/nodes/resolve` : Resolves various block chains and the mined blocks within them
Inspiration from [Daniel van Flymen](https://hackernoon.com/learn-blockchains-by-building-one-117428612f46)