Commit 039619c 1 parent fee4f4c commit 039619c Copy full SHA for 039619c
File tree 3 files changed +13
-0
lines changed
3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 418
418
- :meth: `web3.eth.get_balance() <web3.eth.Eth.get_balance> `
419
419
- :meth: `web3.eth.get_block() <web3.eth.Eth.get_block> `
420
420
- :meth: `web3.eth.get_code() <web3.eth.Eth.get_code> `
421
+ - :meth: `web3.eth.get_logs() <web3.eth.Eth.get_logs> `
421
422
- :meth: `web3.eth.get_raw_transaction() <web3.eth.Eth.get_raw_transaction> `
422
423
- :meth: `web3.eth.get_raw_transaction_by_block() <web3.eth.Eth.get_raw_transaction_by_block> `
423
424
- :meth: `web3.eth.get_transaction() <web3.eth.Eth.get_transaction> `
Original file line number Diff line number Diff line change
1
+ * Add async `eth.get_logs ` method
Original file line number Diff line number Diff line change @@ -401,6 +401,17 @@ async def get_code(
401
401
) -> HexBytes :
402
402
return await self ._get_code (account , block_identifier )
403
403
404
+ _get_logs : Method [Callable [[FilterParams ], Awaitable [List [LogReceipt ]]]] = Method (
405
+ RPC .eth_getLogs ,
406
+ mungers = [default_root_munger ]
407
+ )
408
+
409
+ async def get_logs (
410
+ self ,
411
+ filter_params : FilterParams ,
412
+ ) -> List [LogReceipt ]:
413
+ return await self ._get_logs (filter_params )
414
+
404
415
_get_transaction_count : Method [Callable [..., Awaitable [Nonce ]]] = Method (
405
416
RPC .eth_getTransactionCount ,
406
417
mungers = [BaseEth .block_id_munger ],
You can’t perform that action at this time.
0 commit comments