rest

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: LGPL-3.0 Imports: 11 Imported by: 0

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