Skip to main content
Version: Beta

RPCh Example Integration - React & Viem dApp

The following documentation provides an integration example of the RPCh SDK into a ReactJS dApp which uses the viem library. This integration will let your client and server talk over function calls over RPCh Infra, but without any changes to web3 functions.

Preparation

yarn add @rpch/sdk

or

npm i @rpch/sdk

Example Integration

Example Integration

Materials of the exapmple GetLogs dApp

Repo of dApp: https://github.com/hoprnet/rpch-getlogs-explorer

PR of the integration: https://github.com/hoprnet/rpch-getlogs-explorer/pull/4