client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 8 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 the blockchain API client.

func New

func New(serverAddr string, insecure bool) (*Client, error)

New creates a new Client.

func (*Client) GetAccount

func (c *Client) GetAccount(ctx context.Context, addr string) (*iotexapi.GetAccountResponse, error)

GetAccount returns a given account.

func (*Client) SendAction

func (c *Client) SendAction(ctx context.Context, selp action.SealedEnvelope) error

SendAction sends an action to blockchain.

Jump to

Keyboard shortcuts

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