I would like to ask you how to subscribe events from Polkadot blockchain? I am writing a rust application and I need this functionality there.
Is the using Substrate the right direction to achieve that?
Thanks in advance!
Substrate and Polkadot Stack Exchange is a question and answer site for developers building blockchains with the Substrate SDK. It only takes a minute to sign up.
Sign up to join this communitysubxt has your back. Here's an example:
https://github.com/paritytech/subxt/blob/master/examples/examples/subscribe_all_events.rs
(Events are just the system.events
state at a certain block, so if you know the block hash you're after you can retrieve them by via a storage query)
(if you want to subscribe to blocks there's an example in the PRs)