frontend

package
v0.1.1-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2022 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnspecified = errors.New("request for unspecified identifier")
)

Functions

func NewSQLiteStreamer

func NewSQLiteStreamer(client *rpcclient.Client, cache *common.BlockCache, log *logrus.Entry) (walletrpc.CompactTxStreamerServer, error)

func NewZRPCFromConf

func NewZRPCFromConf(confPath string) (*rpcclient.Client, error)

func NewZRPCFromCreds

func NewZRPCFromCreds(addr, username, password string) (*rpcclient.Client, error)

Types

type SqlStreamer

type SqlStreamer struct {
	// contains filtered or unexported fields
}

the service type

func (*SqlStreamer) GetAddressTxids

func (*SqlStreamer) GetBlock

func (*SqlStreamer) GetBlockRange

func (*SqlStreamer) GetCache

func (s *SqlStreamer) GetCache() *common.BlockCache

func (*SqlStreamer) GetCoinsupply

func (s *SqlStreamer) GetCoinsupply(ctx context.Context, in *walletrpc.Empty) (*walletrpc.Coinsupply, error)

GetCoinsupply gets the Coinsupply info

func (*SqlStreamer) GetLatestBlock

func (s *SqlStreamer) GetLatestBlock(ctx context.Context, placeholder *walletrpc.ChainSpec) (*walletrpc.BlockID, error)

func (*SqlStreamer) GetLightdInfo

func (s *SqlStreamer) GetLightdInfo(ctx context.Context, in *walletrpc.Empty) (*walletrpc.LightdInfo, error)

GetLightdInfo gets the LightWalletD (this server) info

func (*SqlStreamer) GetTransaction

func (s *SqlStreamer) GetTransaction(ctx context.Context, txf *walletrpc.TxFilter) (*walletrpc.RawTransaction, error)

func (*SqlStreamer) GracefulStop

func (s *SqlStreamer) GracefulStop() error

func (*SqlStreamer) SendTransaction

func (s *SqlStreamer) SendTransaction(ctx context.Context, rawtx *walletrpc.RawTransaction) (*walletrpc.SendResponse, error)

SendTransaction forwards raw transaction bytes to a hushd instance over JSON-RPC

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL