rest

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: LGPL-3.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package rest privides functions to for restful server call

Index

Constants

View Source
const TLS_PORT int = 443

Variables

This section is empty.

Functions

func GetBlockByHash

func GetBlockByHash(cmd map[string]interface{}) map[string]interface{}

get block by hash

func GetBlockByHeight

func GetBlockByHeight(cmd map[string]interface{}) map[string]interface{}

get block by height

func GetBlockHash

func GetBlockHash(cmd map[string]interface{}) map[string]interface{}

get block hash by height

func GetBlockHeight

func GetBlockHeight(cmd map[string]interface{}) map[string]interface{}

get block height

func GetBlockHeightByTxHash

func GetBlockHeightByTxHash(cmd map[string]interface{}) map[string]interface{}

get block height by transaction hash

func GetBlockTxsByHeight

func GetBlockTxsByHeight(cmd map[string]interface{}) map[string]interface{}

get block transaction hashes by height

func GetConnectionCount

func GetConnectionCount(cmd map[string]interface{}) map[string]interface{}

get connection node count

func GetMemPoolTxCount

func GetMemPoolTxCount(cmd map[string]interface{}) map[string]interface{}

get memory pool transaction count

func GetMemPoolTxState

func GetMemPoolTxState(cmd map[string]interface{}) map[string]interface{}

get memory poll transaction state

func GetMerkleProof

func GetMerkleProof(cmd map[string]interface{}) map[string]interface{}

get merkle proof by transaction hash

func GetNetworkId added in v1.0.1

func GetNetworkId(cmd map[string]interface{}) map[string]interface{}

get networkid

func GetNodeVersion added in v0.9.2

func GetNodeVersion(cmd map[string]interface{}) map[string]interface{}

get node verison

func GetSmartCodeEventByTxHash

func GetSmartCodeEventByTxHash(cmd map[string]interface{}) map[string]interface{}

get smartcontract event by transaction hash

func GetSmartCodeEventTxsByHeight

func GetSmartCodeEventTxsByHeight(cmd map[string]interface{}) map[string]interface{}

get smartcontract event by height

func GetStorage

func GetStorage(cmd map[string]interface{}) map[string]interface{}

get storage from contract

func GetTransactionByHash

func GetTransactionByHash(cmd map[string]interface{}) map[string]interface{}

get transaction by hash

func ResponsePack

func ResponsePack(errCode int64) map[string]interface{}

func SendRawTransaction

func SendRawTransaction(cmd map[string]interface{}) map[string]interface{}

send raw transaction

Types

type ApiServer

type ApiServer interface {
	Start() error
	Stop()
}

Jump to

Keyboard shortcuts

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