Fabric Contract APIs and Application APIs¶
Fabric Contract APIs¶
Hyperledger Fabric offers a number of APIs to support developing smart contracts (chaincode) in various programming languages. Smart contract APIs are available for Go, Node.js, and Java.
Fabric Application APIs¶
Hyperledger Fabric offers a Fabric Gateway client API to support developing applications in Go, Node.js, and Java. This API uses the Gateway peer capability introduced in Fabric v2.4 to interact with the Fabric network, and is an evolution of the new application programming model introduced in Fabric v1.4. The Fabric Gateway client API is the preferred API for developing applications for Fabric v2.4 onwards.
Legacy application SDKs also exist for various programming languages, and can be used with Fabric v2.4. These application SDKs support versions of Fabric prior to v2.4, and do not require the Gateway peer capability. They also include some functionality, such as administrative actions for managing enrollment of identities with a Certificate Authority (CA), that are not offered by the Fabric Gateway API. Application SDKs are available for Go, Node.js and Java.
- Node.js SDK and documentation.
- Java SDK and documentation.
- Go SDK and documentation.
Prerequisites for developing with the SDKs can be found in the Node.js SDK README, Java SDK README, and Go SDK README.
In addition, there is one other application SDK that has not yet been officially released for Python, but is still available for downloading and testing: