Versions in this module Expand all Collapse all v0 v0.2.0 Jan 23, 2019 Changes in this version + const MainnetMagic + const RegtestMagic + const TestnetMagic + var MainNetParams chaincfg.Params + var RegtestParams chaincfg.Params + var TestNetParams chaincfg.Params + func GetChainParams(chain string) *chaincfg.Params + func NewKotoRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error) + type KotoParser struct + func NewKotoParser(params *chaincfg.Params, c *btc.Configuration) *KotoParser + func (p *KotoParser) PackTx(tx *bchain.Tx, height uint32, blockTime int64) ([]byte, error) + func (p *KotoParser) UnpackTx(buf []byte) (*bchain.Tx, uint32, error) + type KotoRPC struct + func (z *KotoRPC) GetBlock(hash string, height uint32) (*bchain.Block, error) + func (z *KotoRPC) GetMempoolEntry(txid string) (*bchain.MempoolEntry, error) + func (z *KotoRPC) GetTransactionForMempool(txid string) (*bchain.Tx, error) + func (z *KotoRPC) Initialize() error