Versions in this module Expand all Collapse all v0 v0.3.2 Mar 5, 2020 Changes in this version + const MainnetMagic + const RegtestMagic + const TestnetMagic + var MainNetParams chaincfg.Params + var TestNetParams chaincfg.Params + func GetChainParams(chain string) *chaincfg.Params + func NewBitcoreRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error) + type BitcoreParser struct + func NewBitcoreParser(params *chaincfg.Params, c *btc.Configuration) *BitcoreParser + func (p *BitcoreParser) PackTx(tx *bchain.Tx, height uint32, blockTime int64) ([]byte, error) + func (p *BitcoreParser) UnpackTx(buf []byte) (*bchain.Tx, uint32, error) + type BitcoreRPC struct + func (b *BitcoreRPC) Initialize() error + func (f *BitcoreRPC) GetBlock(hash string, height uint32) (*bchain.Block, error) + func (f *BitcoreRPC) GetBlockFull(hash string) (*bchain.Block, error) + func (f *BitcoreRPC) GetTransactionForMempool(txid string) (*bchain.Tx, error)