-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for extended eth_subscribe logs #4485
Comments
When you have a fromBlock and to block, you should use the Is the above filter syntax widely supported by existing nodes? |
The above syntax has been checked and is supported by quite a few providers: I could check Quicknode, Blast, Fastnode, ValidationCloud and ZMok are supporting it. |
Ethers normalizes the event responses (such as converting tx values to BigInt, validating addresses, etc), so it needs to know more about the supported events. I can add new events in minor versions if there is a meaningful, concise and useful api that makes sense. I can also investigate adding some sort of VerboseFilter which allows a raw filter to be passed along, but would mean that the consumer would be responsible for normalizing emitted responses. |
A VerboseFilter would be great as it would give flexibility to power users. I am also getting the result I want using the below:
|
@ricmoo have you decided if you are going to implement something to allow these 'pending' logs subscriptions? |
The Like Infura on mainnet, does it support full pending transactions and if not, what error does it give if you ask for them. and then I need to repeat that for Alchemy, Ankr, etc. for other common events. |
I have tested the following providers for this service and may be able to assist: QuickNode,ValidationCloud,nodiesDLB,GetBlock,NodeReal,Blast,EXTRNODE,NodeRPC,BlockPI,Infura,Ankr,Alchemy,grove (pokt),Kriptonio,1RPC,onfinality,Omnia,ZMOK. |
Describe the Feature
I have not found a way to replicate the following subscription by using
provider.on
:provider.on
accepts a filter as parameter but it does not seem to replicate the exact 'logs' subscription above, in particularfromBlock
andtoBlock
are being ignored.Code Example
Does not replicate
provider.send("eth_subscribe",['logs', { fromBlock: "pending", toBlock:"pending", address: "0xFf00000000000000000000000000000000008453", topics:[] }]
The text was updated successfully, but these errors were encountered: