client

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingTrieNode     = errors.New("Block too Old: Missing Trie Node")
	ErrContractNotDeployed = errors.New("Contract Not Deployed")
)

Functions

func RpcErrorCode

func RpcErrorCode(err error) (int, bool)

func WrapRpcError

func WrapRpcError(err error) error

Types

type CeloClient

type CeloClient struct {
	Rpc    *rpc.Client
	Eth    *ethclient.Client
	Debug  *debug.DebugClient
	Admin  *admin.AdminClient
	Net    *network.NetworkClient
	TxPool *txpool.TxPoolClient
}

func Dial

func Dial(rawurl string) (*CeloClient, error)

Dial connects a client to the given URL.

func DialContext

func DialContext(ctx context.Context, rawurl string) (*CeloClient, error)

func NewCeloClient

func NewCeloClient(rpcClient *rpc.Client) *CeloClient

func (*CeloClient) Close

func (c *CeloClient) Close()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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