@appliedblockchain/silentdatarollup-custom-rpc
v1.0.8
Published
Custom RPC for Silent Data
Maintainers
Readme
Silent Data Providers - Custom RPC Package
Table of Contents
Introduction
Custom RPC provider for Silent Data, providing a local development environment with Silent Data integration.
Prerequisites
- Node.js (version 18 or higher)
- npm
- Basic knowledge of Ethereum and smart contracts
- Hardhat (for local development)
Integration
Custom RPC Integration
Installing Custom RPC Dependencies
npm install @appliedblockchain/silentdatarollup-custom-rpcCustom RPC Integration Example
The Custom RPC package provides a local development environment that integrates Silent Data with a local Hardhat node. To start the development environment:
npm run devThis command will start both a Hardhat node and the Custom RPC server concurrently. The Custom RPC server will proxy requests to the Hardhat node while adding Silent Data functionality.
You can configure the Custom RPC server by creating a .env file in your project root:
PORT=3000
HARDHAT_RPC_URL=http://localhost:8545Troubleshooting
If you encounter any issues, please check the following:
- Ensure Hardhat is properly installed and configured
- Verify that the port specified in your
.envfile is available - Check that the Hardhat node is running and accessible
- Ensure all required environment variables are set
License
This project is licensed under the MIT License.
