Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/umbracle/eth-jsonrpc-server
Ethereum JSON-RPC server stub implementation
https://github.com/umbracle/eth-jsonrpc-server
Last synced: 4 days 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-28T12:49:43.000Z (almost 2 years ago)
- Last Synced: 2024-06-20T00:33:31.503Z (5 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 {
// ...
}
```