Documentation ¶
Index ¶
Constants ¶
const ( // MainnetMagic is mainnet network constant MainnetMagic wire.BitcoinNet = 0xdab5bffa )
Variables ¶
var ( // MainNetParams are parser parameters for mainnet MainNetParams chaincfg.Params )
Functions ¶
func GetChainParams ¶
GetChainParams contains network parameters for the main GameCredits network, and the test GameCredits network
func NewLiquidRPC ¶
func NewLiquidRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)
NewLiquidRPC returns new LiquidRPC instance.
Types ¶
type LiquidParser ¶
type LiquidParser struct { *btc.BitcoinParser // contains filtered or unexported fields }
LiquidParser handle
func NewLiquidParser ¶
func NewLiquidParser(params *chaincfg.Params, c *btc.Configuration) *LiquidParser
NewLiquidParser returns new LiquidParser instance
func (*LiquidParser) GetAddrDescForUnknownInput ¶
func (p *LiquidParser) GetAddrDescForUnknownInput(tx *bchain.Tx, input int) bchain.AddressDescriptor
GetAddrDescForUnknownInput processes inputs that were not found in txAddresses - they are bitcoin transactions create a special script for the input in the form OP_INVALIDOPCODE <txid> <vout varint>
type LiquidRPC ¶
type LiquidRPC struct {
*btc.BitcoinRPC
}
LiquidRPC is an interface to JSON-RPC bitcoind service.
func (*LiquidRPC) GetMempoolEntry ¶
func (b *LiquidRPC) GetMempoolEntry(txid string) (*bchain.MempoolEntry, error)
GetMempoolEntry returns mempool data for given transaction
func (*LiquidRPC) GetTransactionForMempool ¶
GetTransactionForMempool returns a transaction by the transaction ID. It could be optimized for mempool, i.e. without block time and confirmations
func (*LiquidRPC) Initialize ¶
Initialize initializes GameCreditsRPC instance.