https://github.com/umbracle/eth-jsonrpc-server
Ethereum JSON-RPC server stub implementation
https://github.com/umbracle/eth-jsonrpc-server
Last synced: 4 months ago
JSON representation
Ethereum JSON-RPC server stub implementation
- Host: GitHub
- URL: https://github.com/umbracle/eth-jsonrpc-server
- Owner: umbracle
- License: mpl-2.0
- Created: 2022-04-15T23:23:13.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-28T12:49:43.000Z (over 2 years ago)
- Last Synced: 2025-01-01T21:46:43.196Z (6 months ago)
- Language: Go
- Homepage:
- Size: 71.3 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Eth-jsonrpc-server
## Usage
```
package mainimport (
ethjsonrpc "github.com/umbracle/eth-jsonrpc-server"
"github.com/umbracle/eth-jsonrpc-server/jsonrpc"
)func main() {
// Create the jsonrpc server
srv := jsonrpc.NewServer(
jsonrpc.WithBindAddr("0.0.0.0:8545"),
jsonrpc.WithIPC("ipc.path"),
)// bind the ethereum endpoints
srv.Register(ethjsonrpc.NewEth(&backend{}))
}type backend struct {
// ...
}
```