client

package
v0.5.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 4 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) (*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