ethc

package
v0.0.0-...-b71db6f Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(c Config) (*Client, error)

func (*Client) AddCID

func (c *Client) AddCID(ipaddr, useraddr, cid string) error

func (*Client) AddUserToWhiteList

func (c *Client) AddUserToWhiteList(ipaddr, useraddr string) error

func (*Client) NetworkID

func (c *Client) NetworkID(ctx context.Context) (*big.Int, error)

func (*Client) NewKeyedTransactor

func (c *Client) NewKeyedTransactor(ctx context.Context) (*bind.TransactOpts, error)

func (*Client) NewPantheon

func (c *Client) NewPantheon(ipaddr string) error

type Config

type Config struct {
	RPCURL     string `json:"rpc_url"`
	PrivateKey string `json:"private_key"`
}

Jump to

Keyboard shortcuts

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