Documentation ¶
Index ¶
Constants ¶
View Source
const ( MainnetMagic wire.BitcoinNet = 0xdbb6c0fb TestnetMagic wire.BitcoinNet = 0xf1c8d2fd )
magic numbers
Variables ¶
View Source
var ( MainNetParams chaincfg.Params TestNetParams chaincfg.Params )
chain parameters
Functions ¶
func GetChainParams ¶
GetChainParams contains network parameters for the main Monacoin network, and the test Monacoin network
func NewMonacoinRPC ¶
func NewMonacoinRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)
NewMonacoinRPC returns new MonacoinRPC instance.
Types ¶
type MonacoinParser ¶
type MonacoinParser struct {
*btc.BitcoinParser
}
MonacoinParser handle
func NewMonacoinParser ¶
func NewMonacoinParser(params *chaincfg.Params, c *btc.Configuration) *MonacoinParser
NewMonacoinParser returns new MonacoinParser instance
type MonacoinRPC ¶
type MonacoinRPC struct {
*btc.BitcoinRPC
}
MonacoinRPC is an interface to JSON-RPC bitcoind service.
func (*MonacoinRPC) Initialize ¶
func (b *MonacoinRPC) Initialize() error
Initialize initializes MonacoinRPC instance.
Click to show internal directories.
Click to hide internal directories.