ethclient

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*ethclient.Client
}

Client defines typed wrappers for the Ethereum RPC API, it also implements additional methods like GetSenderPublicKey.

func Dial

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

Dial connects a client to the given URL.

func DialContext

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

DialContext connects a client to the given URL using provided context.

func NewClient

func NewClient(c *rpc.Client) *Client

NewClient creates a client that uses the given RPC client.

func (*Client) DecryptPayload

func (c *Client) DecryptPayload(ctx context.Context, tx *types.Transaction) ([]byte, error)

DecryptPayload decrypts transaction payload.

func (*Client) GetSenderPublicKey

func (c *Client) GetSenderPublicKey(t *types.Transaction) (*ecdsa.PublicKey, error)

GetSenderPublicKey retrieves public key of sender from transaction.

func (*Client) NewKeyedTransactor

func (c *Client) NewKeyedTransactor(key *ecdsa.PrivateKey) *bind.TransactOpts

NewKeyedTransactor is a utility method to easily create a transaction signer from a single private key.

Jump to

Keyboard shortcuts

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