-
|
Beta Was this translation helpful? Give feedback.
Answered by
ricmoo
Aug 19, 2023
Replies: 2 comments 5 replies
-
Oh, is it only for checking TOKEN transfers ? How can I use it for ETH transfers ? |
Beta Was this translation helpful? Give feedback.
5 replies
-
Your conversion to v6 looks perfect. You can use WebSocketProvider, but you can use any provider. I usually use a normal JsonRpcProvider (which uses http), as it doesn’t rely on any special server infrastructure and is more resilient since it doesn’t require long-lived connects (which can fail if an intermediate service hiccups). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is no way to detect ETH transfers in Ethereum without building a custom solution. Transferring ETH doesn’t place any value in the bloom filter for the block, so it doesn’t get indexed. It would also be difficult to track, as internally contracts can send ether along with any call.
You might look into TheGraph, which may be able to generate an index for you.