bitzeny

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MainnetMagic wire.BitcoinNet = 0xf9bea5da
	TestnetMagic wire.BitcoinNet = 0x594e4559
)

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 BitZeny network, and the test BitZeny network

func NewBitZenyRPC

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

NewBitZenyRPC returns new BitZenyRPC instance.

Types

type BitZenyParser

type BitZenyParser struct {
	*btc.BitcoinParser
}

BitZenyParser handle

func NewBitZenyParser

func NewBitZenyParser(params *chaincfg.Params, c *btc.Configuration) *BitZenyParser

NewBitZenyParser returns new BitZenyParser instance

type BitZenyRPC

type BitZenyRPC struct {
	*btc.BitcoinRPC
}

BitZenyRPC is an interface to JSON-RPC bitcoind service.

func (*BitZenyRPC) Initialize

func (b *BitZenyRPC) Initialize() error

Initialize initializes BitZenyRPC instance.

Jump to

Keyboard shortcuts

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