Documentation ¶
Index ¶
- type BlockApi
- type BlockApiImpl
- func (b *BlockApiImpl) ExistTxid(block *types.Block, txid string) (exist bool, err error)
- func (b *BlockApiImpl) GetHeaderData(block *types.Block) (blockHash string, header *types.BlockHeader, err error)
- func (b *BlockApiImpl) GetTransactionData(block *types.Block, txid string) (tx *types.Transaction, txoutProof *types.ByteData, err error)
- func (b *BlockApiImpl) GetTxCount(block *types.Block) (count uint32, err error)
- func (b *BlockApiImpl) GetTxidList(block *types.Block) (txidList []string, err error)
- func (p *BlockApiImpl) WithConfig(conf config.CfdConfig) (obj *BlockApiImpl, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockApi ¶
type BlockApi interface { GetHeaderData(block *types.Block) (blockHash string, header *types.BlockHeader, err error) GetTxCount(block *types.Block) (count uint32, err error) GetTxidList(block *types.Block) (txidList []string, err error) GetTransactionData(block *types.Block, txid string) (tx *types.Transaction, txoutProof *types.ByteData, err error) ExistTxid(block *types.Block, txid string) (exist bool, err error) }
type BlockApiImpl ¶
type BlockApiImpl struct {
// contains filtered or unexported fields
}
BlockApiImpl The bitcoin block utility.
func NewBlockApi ¶
func NewBlockApi() *BlockApiImpl
func (*BlockApiImpl) GetHeaderData ¶
func (b *BlockApiImpl) GetHeaderData(block *types.Block) (blockHash string, header *types.BlockHeader, err error)
GetHeaderData ...
func (*BlockApiImpl) GetTransactionData ¶
func (b *BlockApiImpl) GetTransactionData(block *types.Block, txid string) (tx *types.Transaction, txoutProof *types.ByteData, err error)
GetTransactionData ...
func (*BlockApiImpl) GetTxCount ¶
func (b *BlockApiImpl) GetTxCount(block *types.Block) (count uint32, err error)
GetTxCount ...
func (*BlockApiImpl) GetTxidList ¶
func (b *BlockApiImpl) GetTxidList(block *types.Block) (txidList []string, err error)
GetTxidList ...
func (*BlockApiImpl) WithConfig ¶
func (p *BlockApiImpl) WithConfig(conf config.CfdConfig) (obj *BlockApiImpl, err error)
WithConfig This function set a configuration.
Click to show internal directories.
Click to hide internal directories.