Versions in this module Expand all Collapse all v1 v1.0.0 Mar 3, 2023 Changes in this version + type Ledger struct + func NewLedger(chName string) (*Ledger, error) + func (c *Ledger) QueryBlock(reqCtx reqContext.Context, blockNumber uint64, targets []fab.ProposalProcessor, ...) ([]*common.Block, error) + func (c *Ledger) QueryBlockByHash(reqCtx reqContext.Context, blockHash []byte, targets []fab.ProposalProcessor, ...) ([]*common.Block, error) + func (c *Ledger) QueryBlockByTxID(reqCtx reqContext.Context, txID fab.TransactionID, ...) ([]*common.Block, error) + func (c *Ledger) QueryCollectionsConfig(reqCtx reqContext.Context, chaincodeName string, ...) ([]*pb.CollectionConfigPackage, error) + func (c *Ledger) QueryConfigBlock(reqCtx reqContext.Context, targets []fab.ProposalProcessor, ...) (*common.Block, error) + func (c *Ledger) QueryInfo(reqCtx reqContext.Context, targets []fab.ProposalProcessor, ...) ([]*fab.BlockchainInfoResponse, error) + func (c *Ledger) QueryInstantiatedChaincodes(reqCtx reqContext.Context, targets []fab.ProposalProcessor, ...) ([]*pb.ChaincodeQueryResponse, error) + func (c *Ledger) QueryTransaction(reqCtx reqContext.Context, transactionID fab.TransactionID, ...) ([]*pb.ProcessedTransaction, error) + type ResponseVerifier interface + Match func(response []*fab.TransactionProposalResponse) error + Verify func(response *fab.TransactionProposalResponse) error + type TransactionProposalResponseVerifier struct + MinResponses int + func (tprv *TransactionProposalResponseVerifier) Match(transactionProposalResponses []*fab.TransactionProposalResponse) error + func (tprv *TransactionProposalResponseVerifier) Verify(response *fab.TransactionProposalResponse) error + type Transactor struct + ChannelID string + func NewTransactor(reqCtx reqContext.Context, cfg fab.ChannelCfg) (*Transactor, error) + func (t *Transactor) CreateTransaction(request fab.TransactionRequest) (*fab.Transaction, error) + func (t *Transactor) CreateTransactionHeader(opts ...fab.TxnHeaderOpt) (fab.TransactionHeader, error) + func (t *Transactor) SendTransaction(tx *fab.Transaction) (*fab.TransactionResponse, error) + func (t *Transactor) SendTransactionProposal(proposal *fab.TransactionProposal, targets []fab.ProposalProcessor) ([]*fab.TransactionProposalResponse, error)