Documentation
¶
Index ¶
Constants ¶
View Source
const (
MIMEJSON = "application/json"
)
Variables ¶
This section is empty.
Functions ¶
func StartHttpServer ¶
func StartHttpServer() error
func StartRpcServer ¶
func StartRpcServer() error
Types ¶
type HttpJsonBody ¶
type HttpJsonBody struct {
Method string `json:"method"`
Params interface{} `json:"params"`
}
type QueryBlockHashParam ¶
type QueryBlockHashParam struct {
QueryChainParam
StartHeight int `json:"startHeight"`
Count int `json:"count"`
}
type QueryBlockParam ¶
type QueryBlockParam struct {
QueryChainParam
BlockHash string `json:"blockHash"`
}
type QueryChainParam ¶
type QueryChainParam struct {
ChainId int `json:"chainId"`
}
type QueryTransParam ¶
type QueryTransParam struct {
QueryChainParam
TransHash string `json:"transHash"`
}
Click to show internal directories.
Click to hide internal directories.