Package org.hyperledger.fabric.shim
Provides interfaces and classes required for chaincode development and state variable access.
It is possible to implement Java chaincode by extending the ChaincodeBase
class however new projects should should implement ContractInterface
and use the contract programming model instead.
- See Also:
org.hyperledger.fabric.contract
,ChaincodeBase
-
Interface Summary Interface Description Chaincode Defines methods that all chaincodes must implement.ChaincodeServer External chaincode server.ChaincodeStub An object which manages the transaction context, provides access to state variables, and supports calls to other chaincode implementations.GrpcServer Common interface for grpc server. -
Class Summary Class Description Chaincode.Response Wrapper around protobuf Response, contains status, message and payload.ChaincodeBase Abstract implementation ofChaincode
.ChaincodeServerProperties ChatChaincodeWithPeer NettyChaincodeServer NettyGrpcServer implementation grpc server with NettyGrpcServer.ResponseUtils -
Enum Summary Enum Description Chaincode.Response.Status Chaincode.Response
status enum.ChaincodeBase.CCState Chaincode State. -
Exception Summary Exception Description ChaincodeException Contracts should useChaincodeException
to indicate when an error occurs in Smart Contract logic.