apinode

package
v2.0.5-0...-4ab6f21 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: AGPL-3.0 Imports: 9 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, memo []byte) 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) GetFinalizedHeight

func (n *Node) GetFinalizedHeight() (uint64, error)

GetFinalizedHeight return the finalized block height of connected node

func (*Node) SubmitTx

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

type RetireAction

type RetireAction struct {
	*bc.AssetAmount
	Arbitrary []byte
}

func (*RetireAction) MarshalJSON

func (r *RetireAction) MarshalJSON() ([]byte, 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