virto-network / virto-sdk

Virto toolset to build simple to use decentralized applications
GNU General Public License v3.0
21 stars 5 forks source link

Sube Examples: Listen to Blockchain Events #29

Open S0c5 opened 1 year ago

S0c5 commented 1 year ago

As a developer usually I'd love to listen to blockchain changes like "balance.transfer" to perform actions.

sube_on!("https://kusama.polkadot.io", ["balance.transfer",  "account.xyz"], |event| {
 // some logic
})

impl Iterable for Response {
   next() {

   }
}