litecoin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MainnetMagic wire.BitcoinNet = 0xdbb6c0fb
	TestnetMagic wire.BitcoinNet = 0xf1c8d2fd
	RegtestMagic wire.BitcoinNet = 0xdab5bffa
)

Variables

View Source
var (
	MainNetParams chaincfg.Params
	TestNetParams chaincfg.Params
)

Functions

func GetChainParams

func GetChainParams(chain string) *chaincfg.Params

GetChainParams contains network parameters for the main Litecoin network, and the test Litecoin network

func NewLitecoinRPC

func NewLitecoinRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)

NewLitecoinRPC returns new LitecoinRPC instance.

Types

type LitecoinParser

type LitecoinParser struct {
	*btc.BitcoinParser
}

LitecoinParser handle

func NewLitecoinParser

func NewLitecoinParser(params *chaincfg.Params, c *btc.Configuration) *LitecoinParser

NewLitecoinParser returns new LitecoinParser instance

type LitecoinRPC

type LitecoinRPC struct {
	*btc.BitcoinRPC
}

LitecoinRPC is an interface to JSON-RPC bitcoind service.

func (*LitecoinRPC) Initialize

func (b *LitecoinRPC) Initialize() error

Initialize initializes LitecoinRPC instance.

Jump to

Keyboard shortcuts

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