Documentation ¶
Index ¶
Constants ¶
View Source
const ( MainnetMagic wire.BitcoinNet = 0xf9beb4d9 TestnetMagic wire.BitcoinNet = 0xfdd2c8f1 RegtestMagic wire.BitcoinNet = 0xfabfb5da )
Variables ¶
View Source
var ( MainNetParams chaincfg.Params TestNetParams chaincfg.Params )
Functions ¶
func GetChainParams ¶
GetChainParams contains network parameters for the main Bitcore network, and the test Bitcore network
func NewBitcoreRPC ¶
func NewBitcoreRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)
NewBitcoreRPC returns new BitcoreRPC instance.
Types ¶
type BitcoreParser ¶
type BitcoreParser struct { *btc.BitcoinParser // contains filtered or unexported fields }
BitcoreParser handle
func NewBitcoreParser ¶
func NewBitcoreParser(params *chaincfg.Params, c *btc.Configuration) *BitcoreParser
NewBitcoreParser returns new BitcoreParser instance
type BitcoreRPC ¶
type BitcoreRPC struct {
*btc.BitcoinRPC
}
BitcoreRPC is an interface to JSON-RPC bitcoind service.
func (*BitcoreRPC) GetBlockFull ¶
func (f *BitcoreRPC) GetBlockFull(hash string) (*bchain.Block, error)
GetBlockFull returns block with given hash
func (*BitcoreRPC) GetTransactionForMempool ¶
func (f *BitcoreRPC) GetTransactionForMempool(txid string) (*bchain.Tx, error)
GetTransactionForMempool returns a transaction by the transaction ID. It could be optimized for mempool, i.e. without block time and confirmations
func (*BitcoreRPC) Initialize ¶
func (b *BitcoreRPC) Initialize() error
Initialize initializes BitcoreRPC instance.
Click to show internal directories.
Click to hide internal directories.