clients

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clients

type Clients struct {
	L1Client     *ethclient.Client
	L2Client     *ethclient.Client
	L1RpcClient  *rpc.Client
	L2RpcClient  *rpc.Client
	L1GethClient *gethclient.Client
	L2GethClient *gethclient.Client
}

clients represents a set of initialized RPC clients

func NewClients

func NewClients(l1RpcURL, l2RpcURL string) (*Clients, error)

NewClients will create new RPC clients from given URLs.

func NewClientsFromContext

func NewClientsFromContext(ctx *cli.Context) (*Clients, error)

NewClientsFromContext will create new RPC clients from a CLI context

Jump to

Keyboard shortcuts

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