starknet-io / starknet.js

JavaScript library for StarkNet
https://www.starknetjs.com
MIT License
1.21k stars 706 forks source link

Add an events subscription #112

Open in19farkt opened 2 years ago

in19farkt commented 2 years ago

In the 0.7.0 version, StarkNet began to support events. So maybe it is possible to add an events subscription, as in the Web3.js.

Documentation:

janek26 commented 2 years ago

would be very cool, but there's no other way than polling whole blocks to detect if an event was triggered, so we'll probably wait until there's a more lightweight alternative

janek26 commented 1 year ago

lets make sure if we implement it that frontends dont use it accidentally

ivpavici commented 1 year ago

Relevant: https://github.com/eqlabs/pathfinder/discussions/1107

PhilippeR26 commented 1 year ago

Requested by users : https://discord.com/channels/793094838509764618/927918707613786162/1115479123347910656

PhilippeR26 commented 1 year ago

Requested by users : https://discord.com/channels/793094838509764618/927918707613786162/1115479123347910656