March 2019
Intermediate to advanced
636 pages
27h 50m
English
In this section, we provide an overview of the remaining API functions of shim available to chaincode.
// Returns an unique Id of the transaction proposal. func GetTxID() string // Returns an Id of the channel the transaction proposal was sent to. func GetChannelID() string // Calls an Invoke function on a specified chaincode, in the context of the current transaction. // If the invoked chaincode is on the same channel, the ReadSet and WriteSet will be added into the same transaction. // If the invoked chaincode is on a different channel, the invocation can be used only as a query. func InvokeChaincode(chaincodeName string, args [][]byte, channel string) pb.Response // Returns a list of historical states, timestamps ...
Read now
Unlock full access