{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package qscc\n\n## Constants\n\n```go\nconst (\n\tGetChainInfo       string = \"GetChainInfo\"\n\tGetBlockByNumber   string = \"GetBlockByNumber\"\n\tGetBlockByHash     string = \"GetBlockByHash\"\n\tGetTransactionByID string = \"GetTransactionByID\"\n\tGetBlockByTxID     string = \"GetBlockByTxID\"\n)\n```\nThese are function names from Invoke first parameter\n\n## Types\n\n```go\ntype LedgerQuerier struct {\n\t// contains filtered or unexported fields\n}\n```\nLedgerQuerier implements the ledger query functions, including: - GetChainInfo returns BlockchainInfo - GetBlockByNumber returns a block - GetBlockByHash returns a block - GetTransactionByID returns a transaction\n\n```go\nfunc New(aclProvider aclmgmt.ACLProvider) *LedgerQuerier\n```\nNew returns an instance of QSCC. Typically this is called once per peer.\n\n```go\nfunc (e *LedgerQuerier) Chaincode() shim.Chaincode\n```\n\n```go\nfunc (e *LedgerQuerier) Enabled() bool\n```\n\n```go\nfunc (e *LedgerQuerier) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit is called once per chain when the chain is created. This allows the chaincode to initialize any variables on the ledger prior to any transaction execution on the chain.\n\n```go\nfunc (e *LedgerQuerier) InitArgs() [][]byte\n```\n\n```go\nfunc (e *LedgerQuerier) InvokableCC2CC() bool\n```\n\n```go\nfunc (e *LedgerQuerier) InvokableExternal() bool\n```\n\n```go\nfunc (e *LedgerQuerier) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke is called with args\\[0] contains the query function name, args\\[1] contains the chain ID, which is temporary for now until it is part of stub. Each function requires additional parameters as described below: # GetChainInfo: Return a BlockchainInfo object marshalled in bytes # GetBlockByNumber: Return the block specified by block number in args\\[2] # GetBlockByHash: Return the block specified by block hash in args\\[2] # GetTransactionByID: Return the transaction specified by ID in args\\[2]\n\n```go\nfunc (e *LedgerQuerier) Name() string\n```\n\n```go\nfunc (e *LedgerQuerier) Path() string\n```\n\n","path":"github.com/eric-erki/https-hyperledger.org/core/scc/qscc","name":"qscc","synopsis":"","isRedistributable":true}
