Documentation ¶
Index ¶
Constants ¶
View Source
const ( MainnetMagic wire.BitcoinNet = 0x012ce7b5 TestnetMagic wire.BitcoinNet = 0x1a2b3c4d )
Variables ¶
View Source
var ( MainNetParams chaincfg.Params TestNetParams chaincfg.Params )
Functions ¶
func GetChainParams ¶
GetChainParams contains network parameters for the main VIPSTARCOIN network, and the test VIPSTARCOIN network
func NewVIPSTARCOINRPC ¶
func NewVIPSTARCOINRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)
NewVIPSTARCOINRPC returns new VIPSTARCOINRPC instance.
Types ¶
type VIPSTARCOINParser ¶
type VIPSTARCOINParser struct {
*btc.BitcoinParser
}
VIPSTARCOINParser handle
func NewVIPSTARCOINParser ¶
func NewVIPSTARCOINParser(params *chaincfg.Params, c *btc.Configuration) *VIPSTARCOINParser
NewVIPSTARCOINParser returns new VIPSTARCOINParser instance
func (*VIPSTARCOINParser) ParseBlock ¶
func (p *VIPSTARCOINParser) ParseBlock(b []byte) (*bchain.Block, error)
func (*VIPSTARCOINParser) ParseTxFromJson ¶
func (p *VIPSTARCOINParser) ParseTxFromJson(msg json.RawMessage) (*bchain.Tx, error)
ParseTxFromJson parses JSON message containing transaction and returns Tx struct
type VIPSTARCOINRPC ¶
type VIPSTARCOINRPC struct {
*btc.BitcoinRPC
}
VIPSTARCOINRPC is an interface to JSON-RPC bitcoind service.
func (*VIPSTARCOINRPC) GetTransactionForMempool ¶
func (b *VIPSTARCOINRPC) 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 (*VIPSTARCOINRPC) Initialize ¶
func (b *VIPSTARCOINRPC) Initialize() error
Initialize initializes VIPSTARCOINRPC instance.
Click to show internal directories.
Click to hide internal directories.