block

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) ExistTxid

func (b *BlockApiImpl) ExistTxid(block *types.Block, txid string) (exist bool, err error)

ExistTxid ...

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 ...

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL