client

package
v0.0.0-...-7781947 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: BSD-3-Clause Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wait

func Wait(ctx context.Context, check func(ctx context.Context) (bool, error)) error

Types

type Client

type Client struct {
	Requester *requester.EndpointRequester
	// contains filtered or unexported fields
}

func New

func New(name string, uri string) *Client

New creates a new client object.

func (*Client) Accepted

func (cli *Client) Accepted(ctx context.Context) (ids.ID, uint64, int64, error)

func (*Client) BlocksPort

func (cli *Client) BlocksPort(ctx context.Context) (uint16, error)

func (*Client) DecisionsPort

func (cli *Client) DecisionsPort(ctx context.Context) (uint16, error)

func (*Client) GenerateAggregateWarpSignature

func (cli *Client) GenerateAggregateWarpSignature(
	ctx context.Context,
	txID ids.ID,
) (*warp.Message, uint64, uint64, error)

func (*Client) GenerateTransaction

func (cli *Client) GenerateTransaction(
	ctx context.Context,
	parser chain.Parser,
	wm *warp.Message,
	action chain.Action,
	authFactory chain.AuthFactory,
	modifiers ...Modifier,
) (func(context.Context) error, *chain.Transaction, uint64, error)

func (*Client) GetWarpSignatures

func (cli *Client) GetWarpSignatures(
	ctx context.Context,
	txID ids.ID,
) (*warp.UnsignedMessage, map[ids.NodeID]*validators.GetValidatorOutput, []*vm.WarpSignature, error)

func (*Client) Network

func (cli *Client) Network(ctx context.Context) (uint32, ids.ID, ids.ID, error)

func (*Client) Ping

func (cli *Client) Ping(ctx context.Context) (bool, error)

func (*Client) SubmitTx

func (cli *Client) SubmitTx(ctx context.Context, d []byte) (ids.ID, error)

func (*Client) SuggestedRawFee

func (cli *Client) SuggestedRawFee(ctx context.Context) (uint64, uint64, error)

type Modifier

type Modifier interface {
	Base(*chain.Base)
}

Jump to

Keyboard shortcuts

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