client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: BSD-3-Clause Imports: 8 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*client.Client // embed standard functionality
}

func New

func New(uri string) *Client

New creates a new client object.

func (*Client) Balance

func (cli *Client) Balance(ctx context.Context, addr string) (uint64, uint64, bool, error)

func (*Client) Content

func (cli *Client) Content(ctx context.Context, content ids.ID) (string, uint64, error)

func (*Client) GenerateTransaction

func (cli *Client) GenerateTransaction(
	ctx context.Context,
	action chain.Action,
	factory chain.AuthFactory,
	modifiers ...client.Modifier,
) (func(context.Context) error, *chain.Transaction, uint64, error)

func (*Client) Genesis

func (cli *Client) Genesis(ctx context.Context) (*genesis.Genesis, error)

func (*Client) GetTx

func (cli *Client) GetTx(ctx context.Context, id ids.ID) (int64, bool, error)

func (*Client) Parser

func (cli *Client) Parser(ctx context.Context) (chain.Parser, error)

func (*Client) WaitForBalance

func (cli *Client) WaitForBalance(ctx context.Context, addr string, min uint64) error

func (*Client) WaitForTransaction

func (cli *Client) WaitForTransaction(ctx context.Context, txID ids.ID) error

type Parser

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

func (*Parser) Registry

func (*Parser) Registry() (chain.ActionRegistry, chain.AuthRegistry)

func (*Parser) Rules

func (p *Parser) Rules(t int64) chain.Rules

Jump to

Keyboard shortcuts

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