rpc

package
v0.11.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package rpc contains RPC handler methods and utilities to start Stratos Web3-compatibly JSON-RPC server.

Index

Constants

View Source
const (
	CosmosNamespace = "cosmos"

	Web3Namespace     = "web3"
	EthNamespace      = "eth"
	PersonalNamespace = "personal"
	NetNamespace      = "net"
	TxPoolNamespace   = "txpool"
	DebugNamespace    = "debug"
	MinerNamespace    = "miner"
)

RPC namespaces and API version

Variables

This section is empty.

Functions

func GetRPCAPIs

func GetRPCAPIs(ctx *server.Context, tmNode *node.Node, evmKeeper *evmkeeper.Keeper, ms storetypes.MultiStore, clientCtx client.Context, selectedAPIs []string) ([]rpc.API, error)

GetRPCAPIs returns the list of all APIs

Types

type Web3Server added in v0.10.0

type Web3Server struct {
	// contains filtered or unexported fields
}

func NewWeb3Server added in v0.10.0

func NewWeb3Server(cfg config.Config, logger log.Logger) *Web3Server

func (*Web3Server) StartHTTP added in v0.10.0

func (web3 *Web3Server) StartHTTP(apis []rpc.API) error

func (*Web3Server) StartWS added in v0.10.0

func (web3 *Web3Server) StartWS(apis []rpc.API) error

Directories

Path Synopsis
namespaces
NOTE: Legacy!!!
NOTE: Legacy!!!

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL