client

package
v0.0.0-...-578671c Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 14 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
}

Client is tezos client.

func NewClient

func NewClient(cfg config.NodeClient) (*Client, error)

NewClient returns a new tezos client.

func (*Client) BroadcastTransaction

func (c *Client) BroadcastTransaction(ctx context.Context, rawTransaction string) error

func (*Client) GetBalances

func (c *Client) GetBalances(ctx context.Context, addresses []string, blockNumber uint64) ([]*model.Balance, error)

func (*Client) GetBlock

func (c *Client) GetBlock(ctx context.Context, blockNumber uint64) (*common_model.Block, error)

func (*Client) GetCounters

func (c *Client) GetCounters(ctx context.Context, addresses []string) ([]*model.Counter, error)

func (*Client) GetEstimatedFee

func (c *Client) GetEstimatedFee(ctx context.Context) (*model.Fees, error)

func (*Client) GetHeight

func (c *Client) GetHeight(ctx context.Context) (*model.Height, error)

func (*Client) GetRawTransactionHash

func (c *Client) GetRawTransactionHash(ctx context.Context, rawTransaction string) (string, error)

func (*Client) GetTransactions

func (c *Client) GetTransactions(ctx context.Context, blockNumber uint64) ([]*model.Transaction, error)

type ErrBroadcastRetryable

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

ErrBroadcastRetryable is a tempory error returned during transaction broadcast, e.g. mempool full.

func (*ErrBroadcastRetryable) Error

func (e *ErrBroadcastRetryable) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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