Introduction

Chaincode is a program written in Go, Node.js, or Java that implements a prescribed interface. A chaincode program implements the business logic that members of the network have agreed to. Chaincode programs are also known as smart contracts. Chaincode initializes and manages the ledger state through transactions submitted by applications.

In this chapter, we will cover chaincode basics and demonstrate the use of Node.js chaincode API by implementing a simple chaincode that manages key-value states.

Last updated

Was this helpful?