Documentation ¶
Index ¶
- Constants
- func GetChainParams(chain string) *chaincfg.Params
- func NewZCashRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)
- type ZCashParser
- type ZCashRPC
- func (z *ZCashRPC) EstimateSmartFee(blocks int, conservative bool) (float64, error)
- func (z *ZCashRPC) GetBlock(hash string, height uint32) (*bchain.Block, error)
- func (z *ZCashRPC) GetMempoolEntry(txid string) (*bchain.MempoolEntry, error)
- func (z *ZCashRPC) GetTransactionForMempool(txid string) (*bchain.Tx, error)
- func (z *ZCashRPC) Initialize() error
Constants ¶
const ( MainnetMagic wire.BitcoinNet = 0x6427e924 TestnetMagic wire.BitcoinNet = 0xbff91afa RegtestMagic wire.BitcoinNet = 0x5f3fe8aa )
Variables ¶
This section is empty.
Functions ¶
func GetChainParams ¶
GetChainParams contains network parameters for the main ZCash network, the regression test ZCash network, the test ZCash network and the simulation test ZCash network, in this order
func NewZCashRPC ¶
func NewZCashRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)
Types ¶
type ZCashParser ¶
type ZCashParser struct {
*bchain.BaseParser
}
ZCashParser handle
func NewZCashParser ¶
func NewZCashParser(c *btc.Configuration) *ZCashParser
NewZCAshParser returns new ZCAshParser instance
func (*ZCashParser) GetAddrIDFromAddress ¶
func (p *ZCashParser) GetAddrIDFromAddress(address string) ([]byte, error)
GetAddrIDFromAddress returns internal address representation of given address
func (*ZCashParser) GetAddrIDFromVout ¶
func (p *ZCashParser) GetAddrIDFromVout(output *bchain.Vout) ([]byte, error)
GetAddrIDFromVout returns internal address representation of given transaction output
type ZCashRPC ¶
type ZCashRPC struct {
*btc.BitcoinRPC
}
func (*ZCashRPC) EstimateSmartFee ¶
EstimateSmartFee returns fee estimation.
func (*ZCashRPC) GetMempoolEntry ¶
func (z *ZCashRPC) GetMempoolEntry(txid string) (*bchain.MempoolEntry, error)
GetMempoolEntry returns mempool data for given transaction
func (*ZCashRPC) GetTransactionForMempool ¶
GetTransactionForMempool returns a transaction by the transaction ID. It could be optimized for mempool, i.e. without block time and confirmations
func (*ZCashRPC) Initialize ¶
Initialize initializes ZCashRPC instance.