Documentation
¶
Index ¶
Constants ¶
View Source
const (
MainnetMagic wire.BitcoinNet = 0x1dca5eb2
)
Variables ¶
View Source
var (
MainNetParams chaincfg.Params
)
Functions ¶
func GetChainParams ¶
func NewMasterwinRPC ¶
func NewMasterwinRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)
NewMasterwinRPC returns new MasterwinRPC instance
Types ¶
type MasterwinParser ¶
type MasterwinParser struct { *btc.BitcoinParser // contains filtered or unexported fields }
MasterwinParser handle
func NewMasterwinParser ¶
func NewMasterwinParser(params *chaincfg.Params, c *btc.Configuration) *MasterwinParser
NewMasterwinParser returns new MasterwinParser instance
type MasterwinRPC ¶
type MasterwinRPC struct {
*btc.BitcoinRPC
}
MasterwinRPC is an interface to JSON-RPC bitcoind service
func (*MasterwinRPC) GetMempoolEntry ¶
func (z *MasterwinRPC) GetMempoolEntry(txid string) (*bchain.MempoolEntry, error)
GetMempoolEntry returns mempool data for given transaction
func (*MasterwinRPC) GetTransactionForMempool ¶
func (z *MasterwinRPC) GetTransactionForMempool(txid string) (*bchain.Tx, error)
GetTransactionForMempool returns a transaction by the transaction ID. It could be optimized for mempool, i.e. without block time and confirmations
func (*MasterwinRPC) Initialize ¶
func (z *MasterwinRPC) Initialize() error
Initialize initializes MasterwinRPC instance
Click to show internal directories.
Click to hide internal directories.