Getting Started
This section of the documentation is dedicated to helping you integrate RPCh into your favourite web3
project. You can integrate RPCh into any JS-based project which needs to send requests to an RPC provider. Before attempting to integrate RPCh into a wallet, you should familiarise yourself with the following:
- What RPCh achieves
- The RPCh SDK
How to Integrate RPCh
Integrating RPCh into your project is as simple as overwriting the methods used to make requests to its RPC provider with custom logic which uses the RPCh SDK instead.
If you are using a frontend library such as ethers, viem or wagmi this can be quite easily done by replacing a few lines of code.
Note: There is no WebSocket support currently, for either option.
Examples Using a Library
We currently have example integrations for the following libraries:
- ethers: view a breakbown of the example integration here.
- viem: view a breakbown of the example integration here.
- wagmi: view a breakbown of the example integration here.
Note: Other example integrations from libraries such as web3.js
If your project is using a different library, you can still use these examples for help developing custom integrations or alternatively, view our vanilla SDK example for a more barebones approach.
Using the RPCh SDK
Using the RPCh SDK directly will require you to create a more custom integration depending on how the wallet or project makes its RPC requests. You can read up on how to use the SDK and view integration examples here.