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)
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 { cfdErrors.HasInitializeError // contains filtered or unexported fields }
BlockApiImpl The bitcoin block utility.
func NewBlockApi ¶
func NewBlockApi(options ...config.CfdConfigOption) *BlockApiImpl
NewBlockApi returns an object that defines the API for Block.
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 ...
Click to show internal directories.
Click to hide internal directories.