Versions in this module Expand all Collapse all v0 v0.3.1 Jun 11, 2019 v0.3.0 May 27, 2019 Changes in this version + const MainnetMagic + const TestnetMagic + var MainNetParams chaincfg.Params + var TestNetParams chaincfg.Params + func GetChainParams(chain string) *chaincfg.Params + func NewMonetaryUnitRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error) + type MonetaryUnitParser struct + BitcoinOutputScriptToAddressesFunc btc.OutputScriptToAddressesFunc + func NewMonetaryUnitParser(params *chaincfg.Params, c *btc.Configuration) *MonetaryUnitParser + func (p *MonetaryUnitParser) GetAddrDescForUnknownInput(tx *bchain.Tx, input int) bchain.AddressDescriptor + func (p *MonetaryUnitParser) PackTx(tx *bchain.Tx, height uint32, blockTime int64) ([]byte, error) + func (p *MonetaryUnitParser) ParseBlock(b []byte) (*bchain.Block, error) + func (p *MonetaryUnitParser) ParseTx(b []byte) (*bchain.Tx, error) + func (p *MonetaryUnitParser) ParseTxFromJson(msg json.RawMessage) (*bchain.Tx, error) + func (p *MonetaryUnitParser) UnpackTx(buf []byte) (*bchain.Tx, uint32, error) + type MonetaryUnitRPC struct + func (b *MonetaryUnitRPC) GetBlock(hash string, height uint32) (*bchain.Block, error) + func (b *MonetaryUnitRPC) Initialize() error