Versions in this module Expand all Collapse all v2 v2.3.2 May 8, 2024 v2.3.1 May 8, 2024 v2.3.0 May 8, 2024 v2.2.1 May 8, 2024 v2.1.0 Dec 22, 2021 Changes in this version + const DBOperateError + const DryRunOperation + const FailedOperation + const GetBlockByHash + const GetBlockByHeight + const GetBlockByTxKey + const GetBlockTotalNum + const GetCurrentBlockHeight + const GetLastBlock + const GetTransactionByTxKey + const GetTransactionTotalNum + const InternalError + const InvalidAction + const InvalidParameter + const InvalidParameterValue + const InvalidSecretId + const LimitExceeded + const MFAFailure + const MissingParameter + const NoSuchVersion + const Ok + const OperationDenied + const RecordNotFound + const RequestLimitExceeded + const ResourceInUse + const ResourceInsufficient + const ResourceNotFound + const ResourceUnavailable + const ResourcesSoldOut + const SecretIdNotFound + const SignatureExpire + const SignatureFailure + const TokenFailure + const UnauthorizedOperation + const UnknownParameter + const UnsupportedOperation + const UnsupportedRegion + const ValidTransaction + func JsonErrResponse(ctx *gin.Context, code string, err error) + func JsonOKResponse(ctx *gin.Context, data interface{}) + type Response struct + Code string + Data interface{} + Message string + type WebServer struct + func NewWebServer(spvSer *server.SPVServer) *WebServer + func (ws *WebServer) Start() error + func (ws *WebServer) Stop() error + type WithChainId struct + ChainId string + FromRemote bool + func (w *WithChainId) IsComplete() error + type WithChainIdAndHash struct + ChainId string + FromRemote bool + Hash string + func (w *WithChainIdAndHash) IsComplete() error + type WithChainIdAndHeight struct + ChainId string + FromRemote bool + Height uint64 + func (w *WithChainIdAndHeight) IsComplete() error + type WithChainIdAndTxKey struct + ChainId string + FromRemote bool + TxKey string + func (w *WithChainIdAndTxKey) IsComplete() error