Versions in this module Expand all Collapse all v0 v0.1.0 Oct 10, 2018 Changes in this version + var MainNetParams chaincfg.Params + var RegtestParams chaincfg.Params + var TestNetParams chaincfg.Params type BCashParser + func (p *BCashParser) GetAddrDescFromAddress(address string) (bchain.AddressDescriptor, error) type BCashRPC + func (b *BCashRPC) GetBlockInfo(hash string) (*bchain.BlockInfo, error) v0.0.6 Sep 12, 2018 Changes in this version + const MainNetPrefix + const RegTestPrefix + const TestNetPrefix + func GetChainParams(chain string) *chaincfg.Params + func NewBCashRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error) + type AddressFormat = uint8 + const CashAddr + const Legacy + type BCashParser struct + AddressFormat AddressFormat + func NewBCashParser(params *chaincfg.Params, c *btc.Configuration) (*BCashParser, error) + func (p *BCashParser) AddressToOutputScript(address string) ([]byte, error) + func (p *BCashParser) GetAddrIDFromAddress(address string) ([]byte, error) + type BCashRPC struct + func (b *BCashRPC) EstimateSmartFee(blocks int, conservative bool) (float64, error) + func (b *BCashRPC) GetBlock(hash string, height uint32) (*bchain.Block, error) + func (b *BCashRPC) GetBlockFull(hash string) (*bchain.Block, error) + func (b *BCashRPC) GetBlockRaw(hash string) ([]byte, error) + func (b *BCashRPC) Initialize() error