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