Documentation ¶
Index ¶
- Variables
- func ACL(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Account(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func AccountTxs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Accounts(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func AllBlockTxs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func AllParams(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func App(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func AppParams(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Apps(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Balance(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Block(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func BlockTxs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Chains(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func Challenge(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func DAOOwner(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Dispatch(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func FreeMemory(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func Height(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func LocalNodes(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func MemStats(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func Node(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func NodeClaim(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func NodeClaims(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func NodeParams(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Nodes(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Param(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func PocketParams(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func PopModel(_ http.ResponseWriter, r *http.Request, _ httprouter.Params, model interface{}) error
- func QueryValidatorsByChain(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Relay(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Router(routes Routes) *httprouter.Router
- func SecondUpgrade(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func SendRawTx(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func SigningInfo(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func SimRequest(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func StartRPC(port string, timeout int64, ...)
- func State(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Stop(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Supply(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func SupportedChains(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Tx(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func UnconfirmedTx(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func UnconfirmedTxs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func UpdateChains(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Upgrade(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func Version(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func WriteErrorResponse(w http.ResponseWriter, errorCode int, errorMsg string)
- func WriteJSONResponse(w http.ResponseWriter, jsn, path, ip string)
- func WriteJSONResponseWithCode(w http.ResponseWriter, jsn, path, ip string, code int)
- func WriteRaw(w http.ResponseWriter, jsn, path, ip string)
- func WriteResponse(w http.ResponseWriter, jsn, path, ip string)
- type HashAndProveParams
- type HeightAndAddrParams
- type HeightAndApplicaitonOptsParams
- type HeightAndKeyParams
- type HeightAndValidatorOptsParams
- type HeightParams
- type PaginateAddrParams
- type PaginatedHeightAndAddrParams
- type PaginatedHeightParams
- type QueryNodeReceiptParam
- type RPCRelayErrorResponse
- type RPCRelayResponse
- type RPCResponseDeliverTx
- type RPCResultTx
- type RPCResultTxSearch
- type RPCResultUnconfirmedTx
- type RPCResultUnconfirmedTxSearch
- type RPCStdSignature
- type RPCStdTx
- type Route
- type Routes
- type SendRawTxParams
Constants ¶
This section is empty.
Variables ¶
View Source
var APIVersion = app.AppVersion
Functions ¶
func ACL ¶
func ACL(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Account ¶
func Account(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func AccountTxs ¶
func AccountTxs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Accounts ¶
func Accounts(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func AllBlockTxs ¶
func AllBlockTxs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func AllParams ¶
func AllParams(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func App ¶
func App(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func AppParams ¶
func AppParams(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Apps ¶
func Apps(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Balance ¶
func Balance(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Block ¶
func Block(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func BlockTxs ¶
func BlockTxs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Chains ¶
func Chains(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func Challenge ¶
func Challenge(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
Challenge supports CORS functionality
func DAOOwner ¶
func DAOOwner(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Dispatch ¶
func Dispatch(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
Dispatch supports CORS functionality
func FreeMemory ¶
func FreeMemory(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func Height ¶
func Height(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func LocalNodes ¶
func LocalNodes(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func MemStats ¶
func MemStats(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func Node ¶
func Node(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func NodeClaim ¶
func NodeClaim(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func NodeClaims ¶
func NodeClaims(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func NodeParams ¶
func NodeParams(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Nodes ¶
func Nodes(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Param ¶
func Param(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func PocketParams ¶
func PocketParams(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func PopModel ¶
func PopModel(_ http.ResponseWriter, r *http.Request, _ httprouter.Params, model interface{}) error
func QueryValidatorsByChain ¶
func QueryValidatorsByChain(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Relay ¶
func Relay(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
Relay supports CORS functionality
func Router ¶
func Router(routes Routes) *httprouter.Router
func SecondUpgrade ¶
func SecondUpgrade(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func SendRawTx ¶
func SendRawTx(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func SigningInfo ¶
func SigningInfo(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func SimRequest ¶
func SimRequest(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func State ¶
func State(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Supply ¶
func Supply(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func SupportedChains ¶
func SupportedChains(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Tx ¶
func Tx(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func UnconfirmedTx ¶
func UnconfirmedTx(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func UnconfirmedTxs ¶
func UnconfirmedTxs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func UpdateChains ¶
func UpdateChains(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
UpdateChains
func Upgrade ¶
func Upgrade(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func Version ¶
func Version(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func WriteErrorResponse ¶
func WriteErrorResponse(w http.ResponseWriter, errorCode int, errorMsg string)
func WriteJSONResponse ¶
func WriteJSONResponse(w http.ResponseWriter, jsn, path, ip string)
func WriteJSONResponseWithCode ¶
func WriteJSONResponseWithCode(w http.ResponseWriter, jsn, path, ip string, code int)
func WriteRaw ¶
func WriteRaw(w http.ResponseWriter, jsn, path, ip string)
func WriteResponse ¶
func WriteResponse(w http.ResponseWriter, jsn, path, ip string)
Types ¶
type HashAndProveParams ¶
type HeightAndAddrParams ¶
type HeightAndApplicaitonOptsParams ¶
type HeightAndApplicaitonOptsParams struct { Height int64 `json:"height"` Opts appTypes.QueryApplicationsWithOpts `json:"opts"` }
type HeightAndKeyParams ¶
type HeightAndValidatorOptsParams ¶
type HeightAndValidatorOptsParams struct { Height int64 `json:"height"` Opts nodeTypes.QueryValidatorsParams `json:"opts"` }
type HeightParams ¶
type HeightParams struct {
Height int64 `json:"height"`
}
type PaginateAddrParams ¶
type PaginatedHeightParams ¶
type QueryNodeReceiptParam ¶
type RPCRelayErrorResponse ¶
type RPCRelayErrorResponse struct { Error error `json:"error"` Dispatch *types.DispatchResponse `json:"dispatch"` }
type RPCRelayResponse ¶
type RPCResponseDeliverTx ¶
type RPCResponseDeliverTx struct { Code uint32 `json:"code"` Data []byte `json:"data"` Log string `json:"log"` Info string `json:"info"` Events []abci.Event `json:"events"` Codespace string `json:"codespace"` Signer types.Address `json:"signer"` Recipient types.Address `json:"recipient"` MessageType string `json:"message_type"` }
type RPCResultTx ¶
type RPCResultTx struct { Hash bytes.HexBytes `json:"hash"` Height int64 `json:"height"` Index uint32 `json:"index"` TxResult RPCResponseDeliverTx `json:"tx_result"` Tx types.Tx `json:"tx"` Proof types.TxProof `json:"proof,omitempty"` StdTx RPCStdTx `json:"stdTx,omitempty"` }
Result of querying for a tx
func ResultTxToRPC ¶
func ResultTxToRPC(res *core_types.ResultTx) *RPCResultTx
type RPCResultTxSearch ¶
type RPCResultTxSearch struct { Txs []*RPCResultTx `json:"txs"` PageCount int `json:"page_count"` TotalTxs int `json:"total_txs"` }
Result of searching for txs
func ResultTxSearchToRPC ¶
func ResultTxSearchToRPC(res *core_types.ResultTxSearch) RPCResultTxSearch
type RPCResultUnconfirmedTx ¶
type RPCResultUnconfirmedTx struct { Hash bytes.HexBytes `json:"hash"` MessageType string `json:"message_type"` StdTx RPCStdTx `json:"stdTx,omitempty"` }
Result of querying for a tx
func ResultUnconfirmedTxToRPC ¶
func ResultUnconfirmedTxToRPC(res types.Tx, height int64) *RPCResultUnconfirmedTx
type RPCResultUnconfirmedTxSearch ¶
type RPCResultUnconfirmedTxSearch struct { Txs []*RPCResultUnconfirmedTx `json:"txs"` PageCount int `json:"page_count"` TotalTxs int `json:"total_txs"` }
Result of search unconfirmed txs
func ResultUnconfirmedTxsToRPC ¶
func ResultUnconfirmedTxsToRPC(res *core_types.ResultUnconfirmedTxs, height int64) RPCResultUnconfirmedTxSearch
type RPCStdSignature ¶
type RPCStdTx ¶
func (RPCStdTx) MarshalJSON ¶
type Route ¶
type Route struct { Name string Method string Path string HandlerFunc httprouter.Handle }
type SendRawTxParams ¶
Click to show internal directories.
Click to hide internal directories.