Documentation
¶
Index ¶
Constants ¶
View Source
const ( QuerySystemChaincode = "qscc" GetBlockByNumber string = "GetBlockByNumber" GetTransactionByID string = "GetTransactionByID" GetBlockByTxID string = "GetBlockByTxID" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { *common.Block TransactionManager driver.TransactionManager }
Block wraps a Fabric block
func (*Block) ProcessedTransaction ¶
func (b *Block) ProcessedTransaction(i int) (driver.ProcessedTransaction, error)
ProcessedTransaction returns the ProcessedTransaction at passed index
type Ledger ¶
type Ledger struct { ChannelName string ChaincodeManager driver.ChaincodeManager LocalMembership driver.LocalMembership ConfigService driver.ConfigService TransactionManager driver.TransactionManager }
func New ¶
func New( channelName string, chaincodeManager driver.ChaincodeManager, localMembership driver.LocalMembership, configService driver.ConfigService, transactionManager driver.TransactionManager, ) *Ledger
func (*Ledger) GetBlockByNumber ¶
GetBlockByNumber fetches a block by number
func (*Ledger) GetBlockNumberByTxID ¶
func (*Ledger) GetTransactionByID ¶
func (c *Ledger) GetTransactionByID(txID string) (driver.ProcessedTransaction, error)
Click to show internal directories.
Click to hide internal directories.