Documentation ¶
Index ¶
Constants ¶
View Source
const ( MainnetMagic wire.BitcoinNet = 0x39393939 //dummy. Correct value is 0xdbb6c0fb TestnetMagic wire.BitcoinNet = 0x69696969 //dummy. Correct value is 0xf1c8d2fd MonaMainMagic monacoinWire.BitcoinNet = 0xdbb6c0fb MonaTestMagic monacoinWire.BitcoinNet = 0xf1c8d2fd )
Variables ¶
View Source
var ( MainNetParams chaincfg.Params TestNetParams chaincfg.Params MonaMainParams monacoinCfg.Params MonaTestParams monacoinCfg.Params )
Functions ¶
func GetChainParams ¶
GetChainParams contains network parameters for the main Monacoin network, and the test Monacoin network
func GetMonaChainParams ¶
func GetMonaChainParams(chain string) *monacoinCfg.Params
GetMonaChainParams 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
func (*MonacoinParser) AddressToOutputScript ¶
func (p *MonacoinParser) AddressToOutputScript(address string) ([]byte, error)
AddressToOutputScript converts monacoin address to ScriptPubKey
func (*MonacoinParser) GetAddrIDFromAddress ¶
func (p *MonacoinParser) GetAddrIDFromAddress(address string) ([]byte, error)
GetAddrIDFromAddress returns internal address representation of given address
type MonacoinRPC ¶
type MonacoinRPC struct {
*btc.BitcoinRPC
}
MonacoinRPC is an interface to JSON-RPC bitcoind service.
func (*MonacoinRPC) EstimateFee ¶
func (b *MonacoinRPC) EstimateFee(blocks int) (float64, error)
EstimateFee returns fee estimation.
func (*MonacoinRPC) Initialize ¶
func (b *MonacoinRPC) Initialize() error
Initialize initializes MonacoinRPC instance.
Click to show internal directories.
Click to hide internal directories.