CBDH practice question 23 of 25

When the________, ______________ or ________function of a chaincode is called, the fabric passes the stub *shim.ChaincodeStub parameter. (Select three.)

Full set: 195 questions
Answer options
A: Query Correct answer
B: List
C: Invoke Correct answer
D: Init Correct answer
E: Write
F: Delete
Correct Answer:
A. Query; C. Invoke; D. Init
Explanation

When the Init, Invoke or Query function of a chaincode is called, the fabric passes the stub *shim.ChaincodeStub parameter. This stub can be used to call APIs to access to the ledger services, transaction context, or to invoke other chaincodes.

References

:

Scroll to Top