Documentation ¶
Index ¶
Constants ¶
View Source
const ( MainnetMagic wire.BitcoinNet = 0xf1cfa6d3 TestnetMagic wire.BitcoinNet = 0x0d221506 )
magic numbers
Variables ¶
View Source
var ( MainNetParams chaincfg.Params TestNetParams chaincfg.Params )
chain parameters
Functions ¶
func GetChainParams ¶
GetChainParams contains network parameters for the main Qtum network, the regression test Qtum network, the test Qtum network and the simulation test Qtum network, in this order
func NewQtumRPC ¶
func NewQtumRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)
NewQtumRPC returns new QtumRPC instance.
Types ¶
type QtumParser ¶
type QtumParser struct {
*btc.BitcoinParser
}
QtumParser handle
func NewQtumParser ¶
func NewQtumParser(params *chaincfg.Params, c *btc.Configuration) *QtumParser
NewQtumParser returns new DashParser instance
func (*QtumParser) ParseBlock ¶
func (p *QtumParser) ParseBlock(b []byte) (*bchain.Block, error)
func (*QtumParser) ParseTxFromJson ¶
func (p *QtumParser) ParseTxFromJson(msg json.RawMessage) (*bchain.Tx, error)
ParseTxFromJson parses JSON message containing transaction and returns Tx struct
type QtumRPC ¶
type QtumRPC struct { *btc.BitcoinRPC // contains filtered or unexported fields }
QtumRPC is an interface to JSON-RPC bitcoind service.
func (*QtumRPC) EstimateSmartFee ¶
EstimateSmartFee returns fee estimation
func (*QtumRPC) GetTransactionForMempool ¶
GetTransactionForMempool returns a transaction by the transaction ID It could be optimized for mempool, i.e. without block time and confirmations
func (*QtumRPC) Initialize ¶
Initialize initializes QtumRPC instance.
Click to show internal directories.
Click to hide internal directories.