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