service

package
v4.8.11+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: AGPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) GetBlockByHash

func (n *Node) GetBlockByHash(hash string) (string, *bc.TransactionStatus, error)

func (*Node) GetBlockByHeight

func (n *Node) GetBlockByHeight(height uint64) (string, *bc.TransactionStatus, error)

func (*Node) GetBlockCount

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

func (*Node) GetNetInfo added in v1.1.5

func (n *Node) GetNetInfo() (*api.NetInfo, error)

Jump to

Keyboard shortcuts

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