Documentation ¶
Index ¶
Constants ¶
View Source
const (
MainnetMagic wire.BitcoinNet = 0xb92b3a21
)
Variables ¶
View Source
var (
MainNetParams chaincfg.Params
)
Functions ¶
func GetChainParams ¶
func NewFYDCoinRPC ¶
func NewFYDCoinRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)
NewFYDCoinRPC returns new FYDCoinRPC instance
Types ¶
type FYDCoinParser ¶
type FYDCoinParser struct { *btc.BitcoinParser // contains filtered or unexported fields }
FYDCoinParser handle
func NewFYDCoinParser ¶
func NewFYDCoinParser(params *chaincfg.Params, c *btc.Configuration) *FYDCoinParser
NewFYDCoinParser returns new FYDCoinParser instance
type FYDCoinRPC ¶
type FYDCoinRPC struct {
*btc.BitcoinRPC
}
FYDCoinRPC is an interface to JSON-RPC bitcoind service
func (*FYDCoinRPC) GetMempoolEntry ¶
func (z *FYDCoinRPC) GetMempoolEntry(txid string) (*bchain.MempoolEntry, error)
GetMempoolEntry returns mempool data for given transaction
func (*FYDCoinRPC) GetTransactionForMempool ¶
func (z *FYDCoinRPC) 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 (*FYDCoinRPC) Initialize ¶
func (z *FYDCoinRPC) Initialize() error
Initialize initializes SnowGemRPC instance
Click to show internal directories.
Click to hide internal directories.