rpc/

directory
v0.0.0-...-28ca4d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: AGPL-3.0

README

Preconf RPC Endpoint

Usage

Wallet RPC for preconfirmations, wrapping on top of a network.

To run the server, run the following command:

go run cmd/server/main.go -redis REDIS_URL -signingKey ETH_PRIVATE_KEY -proxy PROXY_URL

# For development, you can use built-in redis and create a random signing key
go run cmd/server/main.go -redis dev -signingKey dev -proxy PROXY_URL

# You can use the DEBUG_DONT_SEND_RAWTX to skip sending transactions anywhere (useful for local testing):
DEBUG_DONT_SEND_RAWTX=1 go run cmd/server/main.go -redis dev -signingKey dev -proxy PROXY_URL

Example Single request:

curl localhost:9000 -f -d '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest", false],"id":1}'

Directories

Path Synopsis
adapters
webfile
Package webfile contains the fetcher logic
Package webfile contains the fetcher logic
Package application contains the logic to start the builder info service.
Package application contains the logic to start the builder info service.
cmd
Package database contains the types used in the database.
Package database contains the types used in the database.
Package testutils Dummy RPC backend for both Ethereum node and Flashbots Relay.
Package testutils Dummy RPC backend for both Ethereum node and Flashbots Relay.
Package types contains the types used in the JSON-RPC requests and responses.
Package types contains the types used in the JSON-RPC requests and responses.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL