Introduction
Reactive Blockchain RPC Calls
multichain is a low-level library that facilitates reactive blockchain RPC calls, leveraging the cells library - a simplified reactive functional library inspired by spreadsheet functionalities.
Problem Statement
Decentralized applications (dApps) often face challenges when connecting to blockchain RPCs due to asynchronous operations that result in significant delays. Common issues include:
- Difficulty in implementing
multicall
aggregation to optimize RPC calls. - Lack of default mechanisms for retrying or dispatching calls to multiple RPC nodes.
- Inefficient caching of immutable data, leading to unnecessary re-queries.
- The complexity of integrating reactive, functional programming with existing imperative libraries.
Solution
multichain addresses these challenges by providing a multi-chain cache for RPC queries and their responses, built around reactive functional programming principles. Each response is treated as a cell, allowing predefined computational flows that execute automatically when the data becomes available.
Check out all features.
Design & Philosophy
multichain is crafted to offer fine-grained control for developers and dApp implementors, with plans to release a higher-level consumer interface to simplify rapid dApp development.
We aim for ease of use and correction, so chasing down any bug is our top priority.
Source on GitHub
The official GitHub repository: https://github.com/okcontract/multichain
Contributions are welcome! Feel free to share feedback and discuss iterations with us via Discord or Twitter.
License & Support
multichain is developed by OKcontract and is released under the Apache license.
This project is supported by a strategic partnership with the Starknet Foundation.