Documentation ¶
Index ¶
Constants ¶
View Source
const ( MainnetMagic wire.BitcoinNet = 0xf1a5c0fd TestnetMagic wire.BitcoinNet = 0xf25ac0fd RegtestMagic wire.BitcoinNet = 0xdab5bffa )
magic numbers
Variables ¶
View Source
var ( MainNetParams chaincfg.Params TestNetParams chaincfg.Params )
chain parameters
Functions ¶
func GetChainParams ¶
GetChainParams contains network parameters for the main Flo network, and the test Flo network
func NewFloRPC ¶
func NewFloRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)
NewFloRPC returns new FloRPC instance.
Types ¶
type FloParser ¶
type FloParser struct { *btc.BitcoinLikeParser // contains filtered or unexported fields }
FloParser handle
func NewFloParser ¶
func NewFloParser(params *chaincfg.Params, c *btc.Configuration) *FloParser
NewFloParser returns new FloParser instance
type FloRPC ¶
type FloRPC struct {
*btc.BitcoinRPC
}
FloRPC is an interface to JSON-RPC bitcoind service.
func (*FloRPC) GetBlockFull ¶
GetBlockFull returns block with given hash
func (*FloRPC) GetTransactionForMempool ¶
GetTransactionForMempool returns a transaction by the transaction ID. It could be optimized for mempool, i.e. without block time and confirmations
func (*FloRPC) Initialize ¶
Initialize initializes FloRPC instance.
Click to show internal directories.
Click to hide internal directories.