TheSavageTeddy commited on
Commit
b9e37cf
·
verified ·
1 Parent(s): da3fd78

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +40 -2
README.md CHANGED
@@ -12,6 +12,44 @@ size_categories:
12
  ---
13
  # All ethereum contracts
14
 
15
- This dataset contains all deployed Ethereum contracts as of block `21850000` (February 15th, 2025), bytecodes of the contracts, and the block numbers the contracts were deployed.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
- Contract bytecodes are stored as a hash of the bytecode, and another dataset is provided mapping bytecode hashes to bytecodes. This is to reduce the size of the dataset, as many contracts have identical bytecodes.
 
12
  ---
13
  # All ethereum contracts
14
 
15
+ This dataset contains **all deployed Ethereum contracts as of block `21850000`** (February 15th, 2025), bytecodes of the contracts, and the block numbers the contracts were deployed.
16
+
17
+ Contract bytecodes are stored as a hash of the bytecode, and another dataset is provided mapping bytecode hashes to bytecodes. This is to reduce the size of the dataset, as many contracts have identical bytecodes.
18
+
19
+ This dataset was exported from a PostgreSQL database in CSV format.
20
+
21
+ ## Statistics
22
+
23
+ Total number of contracts: 69,788,231
24
+
25
+ Total number of unique bytecodes: 1,539,859
26
+
27
+
28
+ ## Preview
29
+
30
+ Excerpt of the dataset (after unzipping) for preview purposes:
31
+
32
+ `contracts.csv`
33
+
34
+ ```
35
+ address,bytecode_hash,blocknum
36
+ 0x9F52DE2862FDdE9dC6D452FcB9B9b61210D8c8B3,0x1a043f72e26782d3c692af3e198be9666c4f28cbb99844f2b3133c5bec4441c1,1249878
37
+ 0x589ea787b46dA08eC8fC081678335C5d0081010e,0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470,48162
38
+ 0x273cd8B059C15470f72EF3032b6a1f8476A39987,0x4092c8a5fb6487e931a5679ab058788c99bdb84fb49fdbf8cd5dc131e8a2f19f,2335448
39
+ ...
40
+ ```
41
+
42
+ `bytecodes.csv`
43
+
44
+ ```
45
+ bytecode_hash,bytecode
46
+ 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470,
47
+ 0xcbcc4dcc34eab84294bba89e2aed43f5fc3da084f792e8facfd5d0025cfa3a68,\x60606040526000357c0100000000000000000000000000000000000000000000000000000000900480630f59f83a1461003957610037565b005b6100446004506100b2565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156100a45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6020604051908101604052806000815260200150604060405190810160405280600381526020017f65746800000000000000000000000000000000000000000000000000000000008152602001509050610107565b9056
48
+ 0x5972ffc0214427735e7745a766b85395f83f5073a7adeb2a7a2ac0f9f0ea520a,\x60606040526000357c010000000000000000000000000000000000000000000000000000000090048063b19eaf1e146037576035565b005b6046600480359060200150605c565b6040518082815260200191505060405180910390f35b60006000600290505b82818202111515608d57600081840614156080578091506094565b5b80806001019150506065565b8291506094565b5091905056
49
+ ...
50
+ ```
51
+
52
+ Note that in the above preview, the first entry in `bytecodes.csv` is the hash when the bytecode is empty.
53
+
54
+
55