8 months ago
What are Event Indexers in Cairo lang? What is a StarkNet indexer? Can you explain more about how it work and is there any difference between StarkNet indexer and Solidity once?
8 months ago
If you come from Solidity, you’ll know that Solidity allows you to create indexed parameters in your contract events. The indexed parameters allow you to search for these events using the parameters as filters.
While StarkNet does not currently allow you to create indexed parameters by default in Cairo you can index your events using some available indexers such as Apibara and StarkNet Indexer.
StarkNet indexer is a service created to listen to blockchain events and decode and persist the emitted data, making it available for analysis with SQL, GraphQL, and HTTP queries.
They’ve also created a GraphQL console that enables developers to query blockchain data for events, transactions and their inputs, as well as to filter, aggregate, and sum up values easily.
Apibara is a framework and protocol that helps you build real-time, composable streams of Web3 and Web2 data. Apibara solves the challenge of streaming blockchain data: blocks are not immutable, and their data can be invalidated in response to a chain reorganization.
There’s an amazing template to help you get started indexing events here and a tutorial guide here.
7 months ago
Comparing the efficiency gains of direct Cairo vs. transpiling with Warp for 2D graphics rendering
Does anyone have an example of a positional request to `starknet_addInvokeTransaction` on devnet that is working?
Is there a unsigned_div_rem supporting dividing by 2**128 ?
Does writing it to zero actually do something?
How do I create account using starknetjs?
Why does it take more time to make swap on starknet than other L2 blockchain?
Is there any blockchain project contract supporting web2 scripts executable on VIa EVM?