raw gas data checked in
This commit is contained in:
117
research/gas_data.csv
Normal file
117
research/gas_data.csv
Normal 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
|
||||||
|
@@ -28,7 +28,7 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
num_blocks = 10000
|
num_blocks = 10000
|
||||||
w3 = Web3(Web3.HTTPProvider(rpc_url, request_kwargs={'timeout':15}))
|
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
|
end_block = w3.eth.block_number
|
||||||
start_block = end_block - num_blocks
|
start_block = end_block - num_blocks
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ if __name__ == '__main__':
|
|||||||
gas_used = process_transaction(tx, w3)
|
gas_used = process_transaction(tx, w3)
|
||||||
|
|
||||||
if gas_used:
|
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)
|
gas_data = pd.concat([gas_data, new_data], ignore_index=True)
|
||||||
log.info(f"Transaction {event['transactionHash'].hex()}: Gas used {gas_used}")
|
log.info(f"Transaction {event['transactionHash'].hex()}: Gas used {gas_used}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user