solana-tx-processor
This repository is for validators who want:
See this page for State management
Transaction Processing
This is a:
- gRPC <-- JSON RPC translating proxy to use in front of a validator and behind a pipeline reverse proxy
- a JSON RPC -> gRPC translating proxy to use in front of a bidder proxy daemon.
Install
go install github.com/noncepad/solana-tx-processor@main
Run
Validator Wrapper
Pipelines run this program in front of the validator.
RPC_URL=http://localhost:18899 WS_URL=ws://localhost:18900 solana-tx-processor server 15 tcp://:50051
- 15 is the worker count
tcp://:50051
is the address on which the grpc server will listen
Json Rpc Endpoint
Bidders run this program in front of their proxy daemon.
solana-tx-processor client tcp://:8899 unix:///tmp/my-proxy-daemon.sock
tcp://:8899
is the listening address for the JSON RPC endpoint that only accepts sendTransaction
calls.
unix:///tmp/my-proxy-daemon.sock
is the address that the proxy daemon is listening on