apinode

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: AGPL-3.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 ControlAddressAction

type ControlAddressAction struct {
	Address string `json:"address"`
	*bc.AssetAmount
}

func (*ControlAddressAction) MarshalJSON

func (c *ControlAddressAction) MarshalJSON() ([]byte, error)

type Node

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

Node can invoke the api which provide by the full node server

func NewNode

func NewNode(hostPort string) *Node

NewNode create a api client with target server

func (*Node) BatchSendBTM

func (n *Node) BatchSendBTM(accountID, password string, outputs map[string]uint64) (string, error)

func (*Node) GetBlockByHash

func (n *Node) GetBlockByHash(hash string) (*types.Block, error)

func (*Node) GetBlockByHeight

func (n *Node) GetBlockByHeight(height uint64) (*types.Block, error)

func (*Node) GetVoteByHash

func (n *Node) GetVoteByHash(hash string) ([]*api.VoteInfo, error)

func (*Node) GetVoteByHeight

func (n *Node) GetVoteByHeight(height uint64) ([]*api.VoteInfo, error)

func (*Node) SubmitTx

func (n *Node) SubmitTx(tx *types.Tx) (string, error)

type SpendAccountAction

type SpendAccountAction struct {
	AccountID string `json:"account_id"`
	*bc.AssetAmount
}

func (*SpendAccountAction) MarshalJSON

func (s *SpendAccountAction) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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