raw gas data checked in

This commit is contained in:
tim
2025-10-14 12:51:38 -04:00
parent fb6455f7bf
commit dd009cb561
2 changed files with 119 additions and 2 deletions

117
research/gas_data.csv Normal file
View File

@@ -0,0 +1,117 @@
gas
194497
161946
161946
166894
180206
208602
208602
104267
150405
188431
206346
162512
162512
147689
175238
187967
187967
124809
124862
115631
115035
532888
532888
115969
167154
149820
116358
216353
216353
116184
125414
116015
175658
115972
116040
171490
286915
167399
151168
150383
273558
144872
138603
212569
212569
150268
207747
207747
261185
161669
180924
145298
208181
173503
173503
180204
166664
269322
177555
192597
192597
259227
148617
160079
243453
156594
143837
160212
151783
226721
143069
240584
240584
127050
279420
197085
152811
149836
145164
267053
153801
186917
186917
169466
163927
240705
240705
144664
142890
206903
136078
151705
125696
172111
153240
200236
200236
410533
410533
193516
558838
198975
198975
237431
237431
237431
195935
346933
242026
242026
164318
279099
146170
139927
162934
181706
1 gas
2 194497
3 161946
4 161946
5 166894
6 180206
7 208602
8 208602
9 104267
10 150405
11 188431
12 206346
13 162512
14 162512
15 147689
16 175238
17 187967
18 187967
19 124809
20 124862
21 115631
22 115035
23 532888
24 532888
25 115969
26 167154
27 149820
28 116358
29 216353
30 216353
31 116184
32 125414
33 116015
34 175658
35 115972
36 116040
37 171490
38 286915
39 167399
40 151168
41 150383
42 273558
43 144872
44 138603
45 212569
46 212569
47 150268
48 207747
49 207747
50 261185
51 161669
52 180924
53 145298
54 208181
55 173503
56 173503
57 180204
58 166664
59 269322
60 177555
61 192597
62 192597
63 259227
64 148617
65 160079
66 243453
67 156594
68 143837
69 160212
70 151783
71 226721
72 143069
73 240584
74 240584
75 127050
76 279420
77 197085
78 152811
79 149836
80 145164
81 267053
82 153801
83 186917
84 186917
85 169466
86 163927
87 240705
88 240705
89 144664
90 142890
91 206903
92 136078
93 151705
94 125696
95 172111
96 153240
97 200236
98 200236
99 410533
100 410533
101 193516
102 558838
103 198975
104 198975
105 237431
106 237431
107 237431
108 195935
109 346933
110 242026
111 242026
112 164318
113 279099
114 146170
115 139927
116 162934
117 181706

View File

@@ -28,7 +28,7 @@ if __name__ == '__main__':
num_blocks = 10000
w3 = Web3(Web3.HTTPProvider(rpc_url, request_kwargs={'timeout':15}))
gas_data = pd.DataFrame(columns=['gas_used'])
gas_data = pd.DataFrame(columns=['gas'])
end_block = w3.eth.block_number
start_block = end_block - num_blocks
@@ -60,7 +60,7 @@ if __name__ == '__main__':
gas_used = process_transaction(tx, w3)
if gas_used:
new_data = pd.DataFrame({'gas_used': [gas_used]})
new_data = pd.DataFrame({'gas': [gas_used]})
gas_data = pd.concat([gas_data, new_data], ignore_index=True)
log.info(f"Transaction {event['transactionHash'].hex()}: Gas used {gas_used}")