Documentation ¶
Index ¶
Constants ¶
View Source
const ( MainnetMagic wire.BitcoinNet = 0x6f746f4b TestnetMagic wire.BitcoinNet = 0x6f6b6f54 RegtestMagic wire.BitcoinNet = 0x6f6b6552 )
Variables ¶
Functions ¶
func GetChainParams ¶
GetChainParams contains network parameters for the main Koto network, the regression test Koto network, the test Koto network and the simulation test Koto network, in this order
func NewKotoRPC ¶
func NewKotoRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)
Types ¶
type KotoParser ¶
type KotoParser struct { *btc.BitcoinParser // contains filtered or unexported fields }
KotoParser handle
func NewKotoParser ¶
func NewKotoParser(params *chaincfg.Params, c *btc.Configuration) *KotoParser
NewKotoParser returns new KotoParser instance
type KotoRPC ¶
type KotoRPC struct {
*btc.BitcoinRPC
}
func (*KotoRPC) GetMempoolEntry ¶
func (z *KotoRPC) GetMempoolEntry(txid string) (*bchain.MempoolEntry, error)
GetMempoolEntry returns mempool data for given transaction
func (*KotoRPC) GetTransactionForMempool ¶
GetTransactionForMempool returns a transaction by the transaction ID. It could be optimized for mempool, i.e. without block time and confirmations
func (*KotoRPC) Initialize ¶
Initialize initializes KotoRPC instance.
Click to show internal directories.
Click to hide internal directories.