package main
import (
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 {
// ...
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Ethereum JSON-RPC server stub implementation
License
umbracle/eth-jsonrpc-server
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Ethereum JSON-RPC server stub implementation
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published