Last active
May 28, 2025 20:56
-
-
Save dickolsson/e652b3d0e7bee55aa0a582d8a03900bf to your computer and use it in GitHub Desktop.
Example genesis.json for an Ethereum blockchain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"config": { | |
"chainId": 33, | |
"homesteadBlock": 0, | |
"eip155Block": 0, | |
"eip158Block": 0 | |
}, | |
"nonce": "0x0000000000000033", | |
"timestamp": "0x0", | |
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", | |
"gasLimit": "0x8000000", | |
"difficulty": "0x100", | |
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", | |
"coinbase": "0x3333333333333333333333333333333333333333", | |
"alloc": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
json
def extract_genesis_data(filepath):
with open(filepath, 'r') as file:
data = json.load(file)
📂 استخدم هذا السطر لتشغيل البرنامج على ملف معين:
extract_genesis_data("genesis.json")