1.0.1 • Published 7 months ago

@appliedblockchain/silentdatarollup-custom-rpc v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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:

  1. Ensure Hardhat is properly installed and configured
  2. Verify that the port specified in your .env file is available
  3. Check that the Hardhat node is running and accessible
  4. Ensure all required environment variables are set

License

This project is licensed under the MIT License.

Additional Resources