bellcoin

package
v0.0.0-...-c91c12c Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MainnetMagic wire.BitcoinNet = 0xbebacefa
	TestnetMagic wire.BitcoinNet = 0x0709110b
)

magic numbers

Variables

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

chain parameters

Functions

func GetChainParams

func GetChainParams(chain string) *chaincfg.Params

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

func NewBellcoinRPC

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

NewBellcoinRPC returns new BellcoinRPC instance.

Types

type BellcoinParser

type BellcoinParser struct {
	*btc.BitcoinParser
}

BellcoinParser handle

func NewBellcoinParser

func NewBellcoinParser(params *chaincfg.Params, c *btc.Configuration) *BellcoinParser

NewBellcoinParser returns new BellcoinParser instance

type BellcoinRPC

type BellcoinRPC struct {
	*btc.BitcoinRPC
}

BellcoinRPC is an interface to JSON-RPC bitcoind service.

func (*BellcoinRPC) Initialize

func (b *BellcoinRPC) Initialize() error

Initialize initializes BellcoinRPC instance.

Jump to

Keyboard shortcuts

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