# README
Eth-jsonrpc-server
Usage
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 {
// ...
}
# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
Chain fork event.
New head event.
Chain reorganization event.
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
Eth is the eth jsonrpc endpoint.
Event is the blockchain event that gets passed to the listeners.
No description provided by the author
No description provided by the author
No description provided by the author
LogFilter is a filter for logs.
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
Subscription is the blockchain subscription interface.