Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, storeName string)
RegisterRoutes - Central function to define routes that get registered by the main application
Types ¶
type IngestDifficultyChangeReq ¶
type IngestDifficultyChangeReq struct { BaseReq rest.BaseReq `json:"base_req"` Start types.Hash256Digest `json:"prevEpochStart"` Headers []types.BitcoinHeader `json:"headers"` Sender string `json:"sender"` }
IngestDifficultyChangeReq is the request struct for ingest difficulty change
type IngestHeaderChainReq ¶
type IngestHeaderChainReq struct { BaseReq rest.BaseReq `json:"base_req"` Headers []types.BitcoinHeader `json:"headers"` Sender string `json:"sender"` }
IngestHeaderChainReq is the request struct for ingest header chain
type MarkNewHeaviestReq ¶
type MarkNewHeaviestReq struct { BaseReq rest.BaseReq `json:"base_req"` Ancestor types.Hash256Digest `json:"ancestor"` CurrentBest types.RawHeader `json:"currentBest"` NewBest types.RawHeader `json:"newBest"` Limit uint32 `json:"limit"` Sender string `json:"sender"` }
MarkNewHeaviestReq is the request struct for mark new heaviest
type NewRequestReq ¶
type NewRequestReq struct { BaseReq rest.BaseReq `json:"base_req"` Spends []byte `json:"spends"` Pays []byte `json:"pays"` PaysValue uint64 `json:"paysValue"` NumConfs uint8 `json:"numConfs"` Sender string `json:"sender"` }
NewRequestReq is the request struct for a new proof request
type ProvideProofReq ¶
type ProvideProofReq struct { BaseReq rest.BaseReq `json:"base_req"` Proof types.SPVProof `json:"proof"` Requests []types.FilledRequestInfo `json:"filled_requests"` Sender string `json:"sender"` }
ProvideProofReq is the request struct for a new provide proof message
Click to show internal directories.
Click to hide internal directories.