service

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: AGPL-3.0 Imports: 4 Imported by: 0

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

Node 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