Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simulated: add WithHTTPRPCServer config #31273

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

YusukeShimizu
Copy link

@YusukeShimizu YusukeShimizu commented Feb 27, 2025

Summary

This PR adds WithHTTPRPCServer option to the simulated backend, enabling an HTTP RPC server easily.

By specifying host, port, and modules, developers can run a test node accessible via HTTP with minimal setup.

backend := NewBackend(
    alloc,
    WithHTTPRPCServer("localhost", 8545, []string{"eth", "net", "web3"}),
)

related #21457

Introduce a new WithHTTPRPCServer function to configure
the simulated backend with host, port, and modules:
- Enable HTTP-based RPC access for local testing
- Simplify node setup for developers and testers
@YusukeShimizu YusukeShimizu requested a review from fjl as a code owner February 27, 2025 01:30
@YusukeShimizu YusukeShimizu changed the title simulated: add WithHTTPRPCServer config add WithHTTPRPCServer config Feb 27, 2025
@YusukeShimizu YusukeShimizu changed the title add WithHTTPRPCServer config simulated: add WithHTTPRPCServer config Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant