service

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: AGPL-3.0 Imports: 4 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)

Jump to

Keyboard shortcuts

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