Skip to content
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

[Question] How to watch blocks like viem.watchBlocks? #2095

Open
mlopezpollux opened this issue May 2, 2024 · 3 comments
Open

[Question] How to watch blocks like viem.watchBlocks? #2095

mlopezpollux opened this issue May 2, 2024 · 3 comments

Comments

@mlopezpollux
Copy link

Hey, guys! How is it going? Hope you are doing well :)

I'm making a monitoring server for deposits in different chains and I encountered that in EVM chains is really easy with viem's watchBlocks method but I'm not really sure what is the parallel in the bitcoin network.

Please and thank you so much!

@jasonandjay
Copy link
Collaborator

Hey, guys! How is it going? Hope you are doing well :)

I'm making a monitoring server for deposits in different chains and I encountered that in EVM chains is really easy with viem's watchBlocks method but I'm not really sure what is the parallel in the bitcoin network.

Please and thank you so much!

bitcoinjs don`t support watchBlocks

You can use service from mempool:https://mempool.space/signet/docs/api/websocket

@mlopezpollux
Copy link
Author

Hey, guys! How is it going? Hope you are doing well :)
I'm making a monitoring server for deposits in different chains and I encountered that in EVM chains is really easy with viem's watchBlocks method but I'm not really sure what is the parallel in the bitcoin network.
Please and thank you so much!

bitcoinjs don`t support watchBlocks

You can use service from mempool:https://mempool.space/signet/docs/api/websocket

Thank you so much for your response, @jasonandjay. I was looking more for a connection with an own bitcoin node for cheaper costs because I'm bootstrapping the project right now. I'm running a Chainstack Bitcoin node but can't connect with the bitcoin-core library, always returns timeout :/

@jasonandjay
Copy link
Collaborator

I'm sorry that I can't help you.
Ask help to @junderw
He is experienced and may be able to help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants