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