Versions in this module Expand all Collapse all v1 v1.13.8 Oct 26, 2023 v1.13.7 Oct 26, 2023 v1.13.6 Oct 26, 2023 Changes in this version + const DefaultAuthHost + const DefaultAuthPort + const DefaultHTTPHost + const DefaultHTTPPort + const DefaultWSHost + const DefaultWSPort + var DefaultAuthCors = []string + var DefaultAuthModules = []string + var DefaultAuthOrigins = []string + var DefaultAuthPrefix = "" + var DefaultAuthVhosts = []string + var DefaultConfig = Config + var ErrDatadirUsed = errors.New("datadir already used by another process") + var ErrNodeRunning = errors.New("node already running") + var ErrNodeStopped = errors.New("node not started") + var ErrServiceUnknown = errors.New("unknown service") + func CheckTimeouts(timeouts *rpc.HTTPTimeouts) + func DefaultDataDir() string + func DefaultHTTPEndpoint() string + func DefaultIPCEndpoint(clientIdentifier string) string + func DefaultWSEndpoint() string + func NewHTTPHandlerStack(srv http.Handler, cors []string, vhosts []string, jwtSecret []byte) http.Handler + func NewJWTAuth(jwtsecret [32]byte) rpc.HTTPAuth + func NewWSHandlerStack(srv http.Handler, jwtSecret []byte) http.Handler + func RegisterApis(apis []rpc.API, modules []string, srv *rpc.Server) error + func StartHTTPEndpoint(endpoint string, timeouts rpc.HTTPTimeouts, handler http.Handler) (*http.Server, net.Addr, error) + type Config struct + AllowUnprotectedTxs bool + AuthAddr string + AuthPort int + AuthVirtualHosts []string + BatchRequestLimit int + BatchResponseMaxSize int + DBEngine string + DataDir string + EnablePersonal bool + ExternalSigner string + GraphQLCors []string + GraphQLVirtualHosts []string + HTTPCors []string + HTTPHost string + HTTPModules []string + HTTPPathPrefix string + HTTPPort int + HTTPTimeouts rpc.HTTPTimeouts + HTTPVirtualHosts []string + IPCPath string + InsecureUnlockAllowed bool + JWTSecret string + KeyStoreDir string + Logger log.Logger + Name string + NoUSB bool + P2P p2p.Config + SmartCardDaemonPath string + USB bool + UseLightweightKDF bool + UserIdent string + Version string + WSExposeAll bool + WSHost string + WSModules []string + WSOrigins []string + WSPathPrefix string + WSPort int + func (c *Config) ExtRPCEnabled() bool + func (c *Config) GetKeyStoreDir() (string, bool, error) + func (c *Config) HTTPEndpoint() string + func (c *Config) IPCEndpoint() string + func (c *Config) KeyDirConfig() (string, error) + func (c *Config) NodeDB() string + func (c *Config) NodeKey() *ecdsa.PrivateKey + func (c *Config) NodeName() string + func (c *Config) ResolvePath(path string) string + func (c *Config) WSEndpoint() string + type Lifecycle interface + Start func() error + Stop func() error + type Node struct + func New(conf *Config) (*Node, error) + func (n *Node) AccountManager() *accounts.Manager + func (n *Node) Attach() *rpc.Client + func (n *Node) Close() error + func (n *Node) Config() *Config + func (n *Node) DataDir() string + func (n *Node) EventMux() *event.TypeMux + func (n *Node) HTTPAuthEndpoint() string + func (n *Node) HTTPEndpoint() string + func (n *Node) IPCEndpoint() string + func (n *Node) InstanceDir() string + func (n *Node) KeyStoreDir() string + func (n *Node) OpenDatabase(name string, cache, handles int, namespace string, readonly bool) (ethdb.Database, error) + func (n *Node) OpenDatabaseWithFreezer(name string, cache, handles int, ancient string, namespace string, ...) (ethdb.Database, error) + func (n *Node) RPCHandler() (*rpc.Server, error) + func (n *Node) RegisterAPIs(apis []rpc.API) + func (n *Node) RegisterHandler(name, path string, handler http.Handler) + func (n *Node) RegisterLifecycle(lifecycle Lifecycle) + func (n *Node) RegisterProtocols(protocols []p2p.Protocol) + func (n *Node) ResolveAncient(name string, ancient string) string + func (n *Node) ResolvePath(x string) string + func (n *Node) Server() *p2p.Server + func (n *Node) Start() error + func (n *Node) WSAuthEndpoint() string + func (n *Node) WSEndpoint() string + func (n *Node) Wait() + type StopError struct + Server error + Services map[reflect.Type]error + func (e *StopError) Error() string