Closed pdet closed 5 months ago
I would strongly advise anyone wanting to try this out, to run it against an Erigon or a Reth node, which have way faster log querying than any other nodes. There are some free Reth RPC node, eg. here https://freerpc.merkle.io/
This Scanner is based on the JSON-RPC protocol. There are two primary ways to use it. One is fully local, where you must start an Ethereum client locally (e.g., GETH or nethermind. The other option is to use a provider (e.g.,infura, if you don't have the necessary disk space to run a local node.
Currently, only the
eth_getLogs
method is supported, but otherswill come soon.Set Ethereum provider
To set the Ethereum provider one must set the following:
This is set to
http://127.0.0.1:8545
by default, assuming a local node.Scanner
The scanner function is called
read_eth
. It takes the following five parameters:USDT
)Transfer
)blocks_per_thread
(Optional), the number of blocks to be processed per thread, this not only affects performance but might also be important if you are using a provider that limits the number of blocks you can query per request.Example Usage:
Future Work