Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MainnetMagic is mainnet network constant MainnetMagic wire.BitcoinNet = 0x6427c824 // TestnetMagic is testnet network constant TestnetMagic wire.BitcoinNet = 0xbff91afa // RegtestMagic is regtest network constant RegtestMagic wire.BitcoinNet = 0x5f3fe8aa )
Variables ¶
Functions ¶
func GetChainParams ¶
GetChainParams contains network parameters for the main SnowGem network, the regression test SnowGem network, the test SnowGem network and the simulation test SnowGem network, in this order
func NewSnowGemRPC ¶
func NewSnowGemRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)
NewSnowGemRPC returns new SnowGemRPC instance
Types ¶
type SnowGemParser ¶
type SnowGemParser struct { *btc.BitcoinParser // contains filtered or unexported fields }
SnowGemParser handle
func NewSnowGemParser ¶
func NewSnowGemParser(params *chaincfg.Params, c *btc.Configuration) *SnowGemParser
NewSnowGemParser returns new SnowGemParser instance
type SnowGemRPC ¶
type SnowGemRPC struct {
*btc.BitcoinRPC
}
SnowGemRPC is an interface to JSON-RPC bitcoind service
func (*SnowGemRPC) GetMempoolEntry ¶
func (z *SnowGemRPC) GetMempoolEntry(txid string) (*bchain.MempoolEntry, error)
GetMempoolEntry returns mempool data for given transaction
func (*SnowGemRPC) GetTransactionForMempool ¶
func (z *SnowGemRPC) 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 (*SnowGemRPC) Initialize ¶
func (z *SnowGemRPC) Initialize() error
Initialize initializes SnowGemRPC instance
Click to show internal directories.
Click to hide internal directories.