npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@appliedblockchain/silentdatarollup-custom-rpc

v1.2.0

Published

Custom RPC for Silent Data

Readme

Silent Data Providers - Custom RPC Package

Table of Contents

Introduction

Custom RPC is the Silent Data privacy-enforcement RPC gateway (firewall). It sits between clients and an EVM node and:

  • enforces a strict method + parameter whitelist (everything else is rejected);
  • recovers the request signer (EIP-191, EIP-712, ephemeral-key delegation, and ERC-1271 smart-wallet signatures) and applies signer-based access control;
  • redacts sensitive fields from eth_getTransactionByHash / eth_getTransactionReceipt responses for unauthorized callers;
  • filters private-event logs (eth_getLogs / eth_getFilterLogs / eth_getFilterChanges) so only allowedViewers see them;
  • limits the eth_getLogs block range;
  • restricts eth_getBlockBy* to header-only (no full transaction objects);
  • handles the custom sd_getVersion and sd_getTransactionsByAddress methods.

It can be used both as a local development environment (in front of a Hardhat node) and as a standalone gateway in front of any EVM node.

Prerequisites

  • Node.js (version 20 or higher)
  • pnpm
  • Basic knowledge of Ethereum and smart contracts
  • Hardhat (for local development)

Integration

Custom RPC Integration

Installing Custom RPC Dependencies

pnpm add @appliedblockchain/silentdatarollup-custom-rpc

Custom 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:

pnpm 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 functionality.

Running the server standalone

Installing the package also provides a silentdatarollup-custom-rpc binary that starts the gateway:

silentdatarollup-custom-rpc
# or, within a workspace:  pnpm exec silentdatarollup-custom-rpc

By default it listens on port 54321 and proxies to http://localhost:8545.

Configuration

Configure the server with environment variables (a .env file in the working directory is loaded automatically):

| Variable | Default | Description | | ----------------------------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | | CUSTOM_RPC_PORT | 54321 | Port the gateway listens on. | | CUSTOM_RPC_PROXY_URL | http://localhost:8545 | URL of the backing EVM node requests are proxied to. | | CUSTOM_RPC_LOGS_LIMIT_RANGE | 10000 | Maximum block range allowed for a single eth_getLogs. | | CUSTOM_RPC_PER_PAGE | 10 | Default page size for sd_getTransactionsByAddress. | | CUSTOM_RPC_BYPASS_METHOD_PREFIXES | (unset) | Comma-separated method-name prefixes that bypass the whitelist (e.g. hardhat,anvil). Dev/test only — do not set in production. |

CUSTOM_RPC_PORT=54321
CUSTOM_RPC_PROXY_URL=http://localhost:8545

Note: contract deployment tooling (Hardhat / Ignition) calls dev-only RPC methods (e.g. hardhat_metadata, hardhat_getAutomine) that are not whitelisted. To deploy through the gateway against a local node, set CUSTOM_RPC_BYPASS_METHOD_PREFIXES=hardhat (dev/test only).

Troubleshooting

If you encounter any issues, please check the following:

  1. Ensure Hardhat is properly installed and configured
  2. Verify that CUSTOM_RPC_PORT is available
  3. Check that the backing node at CUSTOM_RPC_PROXY_URL is running and accessible
  4. Ensure all required environment variables are set

License

This project is licensed under the MIT License.

Additional Resources