Documentation ¶
Index ¶
Constants ¶
View Source
const ( MainnetMagic wire.BitcoinNet = 0x2e6d7472 TestnetMagic wire.BitcoinNet = 0x6d747274 )
magic numbers
Variables ¶
View Source
var ( MainNetParams chaincfg.Params TestNetParams chaincfg.Params )
chain parameters
Functions ¶
func GetChainParams ¶
GetChainParams contains network parameters
func NewRaptoreumRPC ¶
func NewRaptoreumRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)
NewRaptoreumRPC returns new RaptoreumRPC instance.
Types ¶
type RaptoreumParser ¶
type RaptoreumParser struct { *btc.BitcoinLikeParser // contains filtered or unexported fields }
RaptoreumParser handle
func NewRaptoreumParser ¶
func NewRaptoreumParser(params *chaincfg.Params, c *btc.Configuration) *RaptoreumParser
NewRaptoreumParser returns new RaptoreumParser instance
type RaptoreumRPC ¶
type RaptoreumRPC struct {
*btc.BitcoinRPC
}
RaptoreumRPC is an interface to JSON-RPC bitcoind service.
func (*RaptoreumRPC) GetTransactionForMempool ¶
func (b *RaptoreumRPC) 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 (*RaptoreumRPC) Initialize ¶
func (b *RaptoreumRPC) Initialize() error
Initialize initializes RaptoreumRPC instance.
Click to show internal directories.
Click to hide internal directories.