Versions in this module Expand all Collapse all v0 v0.3.0 May 23, 2024 Changes in this version + const MetricIdSize + func GetConfig() config.RpcConfig + func GetEmptyParent() [MetricIdSize]byte + func GetEmptyParentAny() []byte + func SaveBlockTxs(blockTxs BlockTxs) error + func SendNewTx(raw []byte) error + func SetConfig(config config.RpcConfig) + type Balance struct + Address string + Balance int64 + Outputs int + Spendable int64 + Spends int + Txs int + UTXOs int + UtxoCount int + func NewBalance() *Balance + func (b *Balance) GetByAddress(address string) error + func (b *Balance) GetByAddresses(addresses []string) error + type BlockHeight struct + Block []byte + Height int64 + type BlockHeightGetter struct + BlockHeights []*BlockHeight + func NewBlockHeight() *BlockHeightGetter + func (h *BlockHeightGetter) Get(startHeight int64) error + type BlockInfo struct + Hash []byte + Header []byte + Height int64 + Txs int64 + func (i BlockInfo) GetHashString() string + func (i BlockInfo) RawString() string + type BlockTx struct + BlockHash []byte + Raw []byte + TxHash []byte + type BlockTxs struct + Header []byte + RawTxs [][]byte + type Connection struct + Client network_pb.NetworkClient + func NewConnection() (*Connection, error) + func (c *Connection) Close() + func (c *Connection) GetDefaultContext() context.Context + func (c *Connection) GetTimeoutContext(d time.Duration) context.Context + type GetBlock struct + Block *BlockInfo + func NewGetBlock() *GetBlock + func (b *GetBlock) GetByHash(hash []byte) error + func (b *GetBlock) GetByHeight(height int64) error + type GetBlockInfos struct + Blocks []BlockInfo + func NewGetBlockInfos() *GetBlockInfos + func (t *GetBlockInfos) Get(startHeight int64, newestFirst bool) error + func (t GetBlockInfos) GetMaxHeight() int64 + func (t GetBlockInfos) GetMinHeight() int64 + type GetBlockTxs struct + BlockHash []byte + Txs []BlockTx + func NewGetBlockTxs() *GetBlockTxs + func (t *GetBlockTxs) Get(blockHash []byte, startTx []byte) error + func (t *GetBlockTxs) GetByHeight(height int64) error + type GetDoubleSpends struct + Txs []Tx + func NewGetDoubleSpends() *GetDoubleSpends + func (s *GetDoubleSpends) Get(startTx []byte) error + type GetMempoolTxs struct + Txs []Tx + func NewGetMempoolTxs() *GetMempoolTxs + func (t *GetMempoolTxs) Get(startTx []byte) error + type GetOutputInput struct + Inputs []In + func NewGetOutputInput() *GetOutputInput + func (g *GetOutputInput) Get(outs []Out) error + type GetTx struct + BlockHash []byte + Msg *wire.MsgTx + Raw []byte + func NewGetTx() *GetTx + func (t *GetTx) Get(hash []byte) error + type GetTxBlock struct + Txs []BlockTx + func NewGetTxBlock() *GetTxBlock + func (t *GetTxBlock) Get(txHashes [][]byte) error + type GetUtxos struct + Utxos []Utxo + func NewGetUtxos() *GetUtxos + func (u *GetUtxos) Get(pkHashes [][]byte) error + type In struct + Index uint32 + PrevHash []byte + PrevIndex uint32 + Script []byte + TxHash []byte + type MetricInfo struct + Action string + Children []*MetricInfo + Count int32 + Duration time.Duration + Id []byte + Order int32 + Parent []byte + Start time.Time + func (i *MetricInfo) SetChildren(tree bool) error + func (i MetricInfo) IdShort() string + func (i MetricInfo) IdString() string + func (i MetricInfo) ParentShort() string + func (i MetricInfo) ParentString() string + type MetricTime struct + Id []byte + Time time.Time + func (t MetricTime) IdShort() string + func (t MetricTime) IdString() string + type MetricTimeGetter struct + MetricTimes []*MetricTime + func NewMetricTimeGetter() *MetricTimeGetter + func (g *MetricTimeGetter) Get(start time.Time) error + type Metrics struct + Infos []*MetricInfo + func NewMetrics() *Metrics + func (m *Metrics) Get(id []byte, parentIds [][]byte) error + func (m *Metrics) GetById(id []byte) error + func (m *Metrics) GetByParentId(parentId []byte) error + func (m *Metrics) GetTree(parentId []byte) error + type Out struct + Index uint32 + Script []byte + TxHash []byte + Value int64 + type OutputMessenger struct + func NewOutputMessenger() *OutputMessenger + func (m *OutputMessenger) Output(message string) error + type SendTx struct + func NewSendTx() *SendTx + func (t *SendTx) Send(txs [][]byte) error + func (t *SendTx) SendWithBlock(txs [][]byte, block []byte) error + type Tx struct + TxHash []byte + type TxProcessed struct + Timestamp time.Time + TxHash []byte + func NewTxProcessed() *TxProcessed + func (t *TxProcessed) Get(txHash []byte) error + type Utxo struct + Index uint32 + PkHash []byte + TxHash []byte + Value int64 v0.2.0-alpha.0 Feb 23, 2023 v0.1.0 Dec 31, 2021