Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MainnetMagic is mainnet network constant MainnetMagic wire.BitcoinNet = 0xbd6b0cbf // TestnetMagic is testnet network constant TestnetMagic wire.BitcoinNet = 0xffcae2ce // RegtestMagic is regtest network constant RegtestMagic wire.BitcoinNet = 0xdcb7c1fc )
Variables ¶
Functions ¶
func GetChainParams ¶
GetChainParams contains network parameters for the main Dash network, the regression test Dash network, the test Dash network and the simulation test Dash network, in this order
func NewDashRPC ¶
func NewDashRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)
NewDashRPC returns new DashRPC instance
Types ¶
type DashParser ¶
type DashParser struct { *btc.BitcoinParser // contains filtered or unexported fields }
DashParser handle
func NewDashParser ¶
func NewDashParser(params *chaincfg.Params, c *btc.Configuration) *DashParser
NewDashParser returns new DashParser instance
type DashRPC ¶
type DashRPC struct {
*btc.BitcoinRPC
}
DashRPC is an interface to JSON-RPC bitcoind service
func (*DashRPC) GetTransactionForMempool ¶ added in v0.2.1
GetTransactionForMempool returns a transaction by the transaction ID. It could be optimized for mempool, i.e. without block time and confirmations
func (*DashRPC) Initialize ¶
Initialize initializes DashRPC instance.
Click to show internal directories.
Click to hide internal directories.