How to listen to every new block #198
shivam2320
started this conversation in
General
Replies: 2 comments 1 reply
-
To get the latest block you can use the type script SDK
will give you something like
you can use that to get the latest block and query it via Right now the SDK doesn't have any built in functionality to listen to new blocks, but you can write your own polling to do so. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can connect via gRPC to stream the transactions https://aptos.dev/indexer/txn-stream/ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to write a program which does some stuff on every new block
How can I listen to every new block
Beta Was this translation helpful? Give feedback.
All reactions