client

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: GPL-3.0 Imports: 11 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 {
	ethclient.Client
	// contains filtered or unexported fields
}

func New

func New(ep string) (*Client, error)

func (*Client) BatchTransfer

func (c *Client) BatchTransfer(ctxs []*TransferContext)

func (*Client) Deploy

func (c *Client) Deploy(
	key *ecdsa.PrivateKey, code string, ctors []string, amount *big.Int, nonce uint64) common.Address

func (*Client) PrepareTx

func (c *Client) PrepareTx(ctx *TransferContext) *types.Transaction

func (*Client) Transfer

func (c *Client) Transfer(ctx *TransferContext)

type TransferContext

type TransferContext struct {
	Key       *ecdsa.PrivateKey
	ToAddress common.Address
	Amount    *big.Int
	Data      []byte
	Nonce     uint64
	Gas       uint64
}

Jump to

Keyboard shortcuts

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