GitXplorerGitXplorer
k

Blockchain-Api

public
8 stars
3 forks
0 issues

Commits

List of commits on branch master.
Unverified
70d1431f7b3aebe6c7640b41771c8caf8ac6f86d

Merge branch 'develop'

kkolosovpetro committed 4 years ago
Unverified
96f1f8d94908f1a53649ab938b0b80d42cbcab8b

endpoints renamed

kkolosovpetro committed 4 years ago
Unverified
bced076e09171a25c022a82f8428f8db8ca9d349

Merge branch 'develop'

kkolosovpetro committed 4 years ago
Unverified
d5a004bdc06221d2ec7f8b47e483de58fb6072c1

routes revised, descriptions added

kkolosovpetro committed 4 years ago
Unverified
1d17986ac075a5f7b18f847aa7741e3fd8f0a5d0

docker file updated

kkolosovpetro committed 4 years ago
Unverified
65aa7e550b132cfb6f929a1b8a83ef4a625f2fbb

responses encapsualted to entities

kkolosovpetro committed 4 years ago

README

The README file for this repository.

Blockchain API

Blockchain API Demo using ASP NET Core.

Blockchain definition

Blockchain -- As data structure, blockchain is a back-linked list of blocks of transactions, which is ordered. It can be stored as a flat file or in a simple database. Each block is identifiable by a hash, generated using the SHA256 cryptographic hash algorithm on the header of the block.

Endpoints

  • GET: GetAllBlocks -- Returns the list of all blocks in blockchain.
  • GET: GetBalance -- Returns balance of particular miner address. Address is a string.
  • GET: IsValidChain -- Checks whenever blockchain is valid.
  • POST: MineBlock -- Mines new block and creates a transaction to particular miner address. Keep the address in order to check balance later.

Links: