Versions in this module Expand all Collapse all v8 v8.0.2 Jun 27, 2022 v8.0.1 Jun 27, 2022 Changes in this version + const APIVersion + func AddressCommandCtx(next http.Handler) http.Handler + func BlockDateLimitQueryCtx(next http.Handler) http.Handler + func DisableLog() + func FromToPaginationCtx(next http.Handler) http.Handler + func GetAddressCommandCtx(r *http.Request) (string, bool) + func GetFromCtx(r *http.Request) int64 + func GetLimitCtx(r *http.Request) int + func GetNbBlocksCtx(r *http.Request) int + func GetNoAsmCtx(r *http.Request) bool + func GetNoScriptSigCtx(r *http.Request) bool + func GetNoSpentCtx(r *http.Request) bool + func GetNoTxListCtx(r *http.Request) int + func GetToCtx(r *http.Request) (int64, bool) + func NbBlocksCtx(next http.Handler) http.Handler + func NoTxListCtx(next http.Handler) http.Handler + func PostAddrsTxsCtx(next http.Handler) http.Handler + func PostAddrsUtxoCtx(next http.Handler) http.Handler + func UseLogger(logger slog.Logger) + type ApiMux struct + func NewInsightApiRouter(app *InsightApi, useRealIP, compression bool, maxAddrs int) ApiMux + type BlockDataSource interface + AddressBalance func(address string) (bal *dbtypes.AddressBalance, cacheUpdated bool, err error) + AddressIDsByOutpoint func(txHash string, voutIndex uint32) ([]uint64, []string, int64, error) + AddressUTXO func(address string) ([]*dbtypes.AddressTxnOutput, bool, error) + BlockSummaryTimeRange func(min, max int64, limit int) ([]dbtypes.BlockDataBasic, error) + GetBlockHash func(idx int64) (string, error) + GetBlockHeight func(hash string) (int64, error) + GetBlockVerboseByHash func(hash string, verboseTx bool) *chainjson.GetBlockVerboseResult + GetHeight func() (int64, error) + GetRawTransaction func(txid *chainhash.Hash) (*chainjson.TxRawResult, error) + GetTransactionHex func(txid *chainhash.Hash) string + Height func() int64 + InsightAddressTransactions func(addr []string, recentBlockHeight int64) (txs, recentTxs []chainhash.Hash, err error) + SendRawTransaction func(txhex string) (string, error) + SpendDetailsForFundingTx func(fundHash string) ([]*apitypes.SpendByFundingHash, error) + type InsightApi struct + BlockData BlockDataSource + JSONIndent string + ReqPerSecLimit float64 + func NewInsightApi(client *rpcclient.Client, blockData BlockDataSource, params *chaincfg.Params, ...) *InsightApi + func (iapi *InsightApi) BlockHashPathAndIndexCtx(next http.Handler) http.Handler + func (iapi *InsightApi) DcrToInsightBlock(inBlocks []*chainjson.GetBlockVerboseResult) ([]*apitypes.InsightBlockResult, error) + func (iapi *InsightApi) DcrToInsightTxns(txs []*chainjson.TxRawResult, noAsm, noScriptSig, noSpent bool) ([]apitypes.InsightTx, error) + func (iapi *InsightApi) GetPeerStatus(w http.ResponseWriter, r *http.Request) + func (iapi *InsightApi) SetReqRateLimit(reqPerSecLimit float64) + func (iapi *InsightApi) StatusInfoCtx(next http.Handler) http.Handler + func (iapi *InsightApi) TxConverter(txs []*chainjson.TxRawResult) ([]apitypes.InsightTx, error) + func (iapi *InsightApi) ValidatePostCtx(next http.Handler) http.Handler + type InsightSocketVin struct + Addresses []string + TxID string + Value *int64 + Vout *uint32 + type InsightSocketVout struct + Address string + Value int64 + func (v *InsightSocketVout) MarshalJSON() ([]byte, error) + type SocketServer struct + func NewSocketServer(params *chaincfg.Params, txGetter txhelpers.RawTransactionGetter) (*SocketServer, error) + func (soc *SocketServer) SendNewTx(rawTx *chainjson.TxRawResult) error + func (soc *SocketServer) Store(blockData *blockdata.BlockData, msgBlock *wire.MsgBlock) error + type WebSocketTx struct + Hash string + Size int + TotalOut int64 + Vins []InsightSocketVin + Vouts []InsightSocketVout Other modules containing this package github.com/Decred-Next/dcrndata