@appliedblockchain/silentdatarollup-custom-rpc
v1.0.1
Published
Custom RPC for Silent Data [Rollup]
Downloads
124
Maintainers
Readme
Silent Data [Rollup] Providers - Custom RPC Package
Table of Contents
Introduction
Custom RPC provider for Silent Data [Rollup], providing a local development environment with Silent Data [Rollup] 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-rpc
Custom RPC Integration Example
The Custom RPC package provides a local development environment that integrates Silent Data [Rollup] with a local Hardhat node. To start the development environment:
npm run dev
This 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 [Rollup] functionality.
You can configure the Custom RPC server by creating a .env
file in your project root:
PORT=3000
HARDHAT_RPC_URL=http://localhost:8545
Troubleshooting
If you encounter any issues, please check the following:
- Ensure Hardhat is properly installed and configured
- Verify that the port specified in your
.env
file 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.