rest

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2018 License: LGPL-3.0 Imports: 12 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 GetAllowance

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

get allowance

func GetBalance

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

get balance of address

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 GetContractState

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

get contract state

func GetGasPrice

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

get avg gas price in block

func GetGenerateBlockTime

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

get generate block time

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 GetUnboundOng added in v0.9.2

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

get unbound ong

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