Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 315 Bytes

GET_ALL_BLOCKS.md

File metadata and controls

27 lines (20 loc) · 315 Bytes

Get All Blocks in BLockchain

GET /api/blocks

Returns a list of all blocks.

Example

Request

GET http://localhost:3000/api/blocks

Response

[
  {
    "timestamp": 1,
    "lasthash": "0",
    "hash": "0",
    "data": [
      
    ],
    "difficulty": 2,
    "nonce": 0
  }
]