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 CoinbaseTypeStr + const RevTypeStr + const TicketTypeStr + const VoteAffirm + const VoteMissing + const VoteReject + const VoteTypeStr + func UnspentOutputIndices(vouts []Vout) (unspents []int) + type AddrPrefix struct + Description string + Name string + Prefix string + func AddressPrefixes(params *chaincfg.Params) []AddrPrefix + type BlockBasic struct + BlockTime TimeDef + FormattedBytes string + FreshStake uint8 + Hash string + Height int64 + IndexVal int64 + MainChain bool + Revocations uint32 + Size int32 + Total float64 + Transactions int + TxCount uint32 + Valid bool + Version int32 + Voters uint16 + type BlockID struct + Hash string + Height int64 + Time int64 + type BlockInfo struct + Bits string + Confirmations int64 + Difficulty float64 + ExtraData string + FinalState string + MerkleRoot string + MiningFee float64 + Misses []string + NextHash string + Nonce uint32 + PoolSize uint32 + PreviousHash string + Revs []*TrimmedTxInfo + SBits float64 + StakeRoot string + StakeValidationHeight int64 + StakeVersion uint32 + Subsidy *chainjson.GetBlockSubsidyResult + Tickets []*TrimmedTxInfo + TotalMixed int64 + TotalSent float64 + Tx []*TrimmedTxInfo + TxAvailable bool + VoteBits uint16 + Votes []*TrimmedTxInfo + type BlockSubsidy struct + Dev int64 + PoS int64 + PoW int64 + Total int64 + type BlockValidation struct + Hash string + Height int64 + Validity bool + func (v *BlockValidation) ForBlock(blockHash string) bool + type BlockValidatorIndex map[string]TicketIndex + type ChainParams struct + BlockTime int64 + MeanVotingBlocks int64 + RewardWindowSize int64 + TargetPoolSize int64 + WindowSize int64 + type HomeInfo struct + ASR float64 + CoinSupply int64 + DevAddress string + DevFund int64 + Difficulty float64 + ExchangeRate *exchanges.Conversion + HashRate float64 + HashRateChangeDay float64 + HashRateChangeMonth float64 + IdxBlockInWindow int + IdxInRewardWindow int + NBlockSubsidy BlockSubsidy + NextExpectedBoundsMax float64 + NextExpectedBoundsMin float64 + NextExpectedStakeDiff float64 + Params ChainParams + PoolInfo TicketPoolInfo + RewardPeriod string + StakeDiff float64 + TicketReward float64 + TotalLockedDCR float64 + type LikelyMineable struct + Count int + FormattedSize string + RegularTotal float64 + RevokeTotal float64 + Size int32 + TicketTotal float64 + Total float64 + VoteTotal float64 + type MPTxsByHeight []MempoolTx + func (votes MPTxsByHeight) Len() int + func (votes MPTxsByHeight) Less(i, j int) bool + func (votes MPTxsByHeight) Swap(i, j int) + type MPTxsByTime []MempoolTx + func (txs MPTxsByTime) Len() int + func (txs MPTxsByTime) Less(i, j int) bool + func (txs MPTxsByTime) Swap(i, j int) + type MempoolInfo struct + Ident uint64 + Revocations []MempoolTx + Tickets []MempoolTx + Transactions []MempoolTx + Votes []MempoolTx + func (mpi *MempoolInfo) DeepCopy() *MempoolInfo + func (mpi *MempoolInfo) ID() uint64 + func (mpi *MempoolInfo) Trim() *TrimmedMempoolInfo + func (mpi *MempoolInfo) Tx(txid string) (MempoolTx, bool) + type MempoolInput struct + Index uint32 + Outdex uint32 + TxId string + func MsgTxMempoolInputs(msgTx *wire.MsgTx) (inputs []MempoolInput) + type MempoolShort struct + FormattedBlockTime string + FormattedTotalSize string + InvRegular map[string]struct{} + InvStake map[string]struct{} + LastBlockHash string + LastBlockHeight int64 + LastBlockTime int64 + LatestTransactions []MempoolTx + LikelyMineable LikelyMineable + NumAll int + NumRegular int + NumRevokes int + NumTickets int + NumVotes int + TicketIndexes BlockValidatorIndex + Time int64 + TotalOut float64 + TotalSize int32 + VotingInfo VotingInfo + func (mps *MempoolShort) DeepCopy() *MempoolShort + type MempoolTx struct + Coinbase bool + FeeRate float64 + Fees float64 + Hash string + Size int32 + Time int64 + TotalOut float64 + TxID string + Type string + Vin []MempoolInput + VinCount int + VoteInfo *VoteInfo + VoutCount int + func CopyMempoolTxSlice(s []MempoolTx) []MempoolTx + func (mpt *MempoolTx) DeepCopy() *MempoolTx + type MempoolVin struct + Inputs []MempoolInput + TxId string + type NewMempoolTx struct + Hex string + Time int64 + type StatsInfo struct + APR float64 + ASR float64 + BlockReward int64 + BlockTime int64 + HashRate float64 + IdxBlockInWindow int + IdxInRewardWindow int + NextBlockReward int64 + NextEstimatedTicketPrice float64 + PoSReward int64 + PoWDiff float64 + PoWReward int64 + ProjectAddress string + ProjectFundReward int64 + ProjectFunds int64 + RewardPeriod string + RewardWindowSize int64 + TPVOfTotalSupplyPeecentage float64 + TicketPoolSize uint32 + TicketPoolSizePerToTarget float64 + TicketPoolValue float64 + TicketPrice float64 + TicketsInMempool int + TicketsROI float64 + TotalSupply int64 + TotalSupplyPercentage float64 + UltimateSupply int64 + VotesInMempool int + WindowSize int64 + type TicketIndex map[string]int + type TicketInfo struct + AvgLuck int64 + BestLuck int64 + LotteryBlock string + LuckStatus string + PoolStatus string + Probability float64 + SpendStatus string + TicketExpiry int64 + TicketExpiryDaysLeft float64 + TicketLiveBlocks int64 + TicketMaturity int64 + TicketPoolSize int64 + TimeTillMaturity float64 + VoteLuck float64 + type TicketPoolInfo struct + PercentTarget float64 + Percentage float64 + Size uint32 + Target uint32 + ValAvg float64 + Value float64 + type TimeDef struct + T time.Time + func NewTimeDef(t time.Time) TimeDef + func NewTimeDefFromUNIX(t int64) TimeDef + func (t *TimeDef) DatetimeWithoutTZ() string + func (t *TimeDef) HMSTZ() string + func (t *TimeDef) MarshalJSON() ([]byte, error) + func (t *TimeDef) PrettyMDY() string + func (t *TimeDef) UnmarshalJSON(data []byte) error + func (t TimeDef) Format(layout string) string + func (t TimeDef) RFC3339() string + func (t TimeDef) String() string + func (t TimeDef) UNIX() int64 + type TrimmedBlockInfo struct + Fees float64 + Height int64 + Revocations []*TrimmedTxInfo + Subsidy *chainjson.GetBlockSubsidyResult + Tickets []*TrimmedTxInfo + Time TimeDef + Total float64 + Transactions []*TrimmedTxInfo + Votes []*TrimmedTxInfo + type TrimmedMempoolInfo struct + Fees float64 + Revocations []*TrimmedTxInfo + Subsidy BlockSubsidy + Tickets []*TrimmedTxInfo + Time int64 + Total float64 + Transactions []*TrimmedTxInfo + Votes []*TrimmedTxInfo + type TrimmedTxInfo struct + Fees float64 + VinCount int + VoteValid bool + VoutCount int + func FilterRegularTx(txs []*TrimmedTxInfo) (transactions []*TrimmedTxInfo) + func FilterUniqueLastBlockVotes(txs []*TrimmedTxInfo) (votes []*TrimmedTxInfo) + func TrimMempoolTx(txs []MempoolTx) (trimmedTxs []*TrimmedTxInfo) + type TxBasic struct + Coinbase bool + Fee dcrutil.Amount + FeeRate dcrutil.Amount + FormattedSize string + MixCount uint32 + MixDenom int64 + Total float64 + TxID string + VoteInfo *VoteInfo + type TxInID struct + Hash string + Index uint32 + type TxInfo struct + BlockHash string + BlockHeight int64 + BlockIndex uint32 + BlockMiningFee int64 + Confirmations int64 + Mature string + Maturity int64 + MaturityTimeTill float64 + SpendingTxns []TxInID + Time TimeDef + Type string + Vin []Vin + VoteFundsLocked string + Vout []Vout + func (t *TxInfo) BlocksToTicketMaturity() (blocks int64) + func (t *TxInfo) IsExpiredTicket() bool + func (t *TxInfo) IsImmatureCoinbase() bool + func (t *TxInfo) IsImmatureRevocation() bool + func (t *TxInfo) IsImmatureTicket() bool + func (t *TxInfo) IsImmatureVote() bool + func (t *TxInfo) IsLiveTicket() bool + func (t *TxInfo) IsRevocation() bool + func (t *TxInfo) IsTicket() bool + func (t *TxInfo) IsVote() bool + type Vin struct + Addresses []string + DisplayText string + FormattedAmount string + Index uint32 + Link string + TextIsHash bool + type VoteInfo struct + Bits uint16 + Choices []*txhelpers.VoteChoice + ForLastBlock bool + MempoolTicketIndex int + TicketSpent string + Validation BlockValidation + Version uint32 + func (vi *VoteInfo) DeepCopy() *VoteInfo + func (vi *VoteInfo) SetTicketIndex(ticketSpendInds BlockValidatorIndex) + func (vi *VoteInfo) VotesOnBlock(blockHash string) bool + type VoteTally struct + Marks []bool + TicketsPerBlock int + func (tally *VoteTally) Affirmations() (c int) + func (tally *VoteTally) Mark(vote bool) + func (tally *VoteTally) Status() ([]int, int) + func (tally *VoteTally) VoteCount() int + type VotingInfo struct + MaxVotesPerBlock uint16 + TicketsVoted uint16 + VoteTallys map[string]*VoteTally + VotedTickets map[string]bool + func NewVotingInfo(votesPerBlock uint16) VotingInfo + func (vi *VotingInfo) BlockStatus(hash string) ([]int, int) + func (vi *VotingInfo) Tally(vinfo *VoteInfo) + type Vout struct + Addresses []string + Amount float64 + FormattedAmount string + Index uint32 + OP_RETURN string + Spent bool + Type string + type WebBasicBlock struct + Difficulty float64 + Hash string + Height uint32 + NumTx uint32 + PoolSize uint32 + PoolValAvg float64 + PoolValue float64 + PoolWinners []string + Size uint32 + StakeDiff float64 + Time int64 + type WebsocketBlock struct + Block *BlockInfo + Extra *HomeInfo Other modules containing this package github.com/Decred-Next/dcrndata/explorer/types/v8