http

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

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 TM2 HTTP client

func NewClient

func NewClient(remote string) (*Client, error)

NewClient creates a new TM2 HTTP client

func (*Client) GetAccount

func (c *Client) GetAccount(address crypto.Address) (std.Account, error)

func (*Client) SendTransactionCommit

func (c *Client) SendTransactionCommit(tx *std.Tx) (*coreTypes.ResultBroadcastTxCommit, error)

func (*Client) SendTransactionSync

func (c *Client) SendTransactionSync(tx *std.Tx) (*coreTypes.ResultBroadcastTx, error)

Jump to

Keyboard shortcuts

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