diff test_block_0.json @ 5:1a8d94b500d8

finish basic parser
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Thu, 21 Oct 2021 18:52:54 +0200
parents e7a84094bf07
children
line wrap: on
line diff
--- a/test_block_0.json	Wed Oct 20 19:36:39 2021 +0200
+++ b/test_block_0.json	Thu Oct 21 18:52:54 2021 +0200
@@ -1,5 +1,5 @@
 {
-    "h": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
+    "block_hash": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
     "header": {
         "version": 1,
         "previous_block_hash": "0000000000000000000000000000000000000000000000000000000000000000",
@@ -7,5 +7,27 @@
         "timestamp": 1231006505,
         "bits": 486604799,
         "nonce": 2083236893
-    }
+    },
+    "transactions": [
+        {
+            "version": 1,
+            "lock_time": 0,
+            "inputs": [
+                {
+                    "id": "0000000000000000000000000000000000000000000000000000000000000000",
+                    "is_coinbase": true,
+                    "vout": 4294967295,
+                    "script_sig": "04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73",
+                    "sequence": 4294967295
+                }
+            ],
+            "outputs": [
+                {
+                    "value": 50.0,
+                    "script_pub_key": "4104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac"
+                }
+            ],
+            "id": "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"
+        }
+    ]
 }
\ No newline at end of file