Module: api

This module defines the APIs for the pluggable components of the node.js SDK.

Classes

CommitHandler
CryptoSuite
EndorsementHandler
Hash
Key
KeyValueStore

Type Definitions


CommitHandlerParameters

Type:
  • Object
Properties:
Name Type Description
request Object TransactionRequest
signed_envelope Object An object that will be sent to the orderer that contains the encoded endorsed proposals and the signature of the sender.
timeout Number the timeout setting passed on sendTransaction method.

EndorsementHandlerParameters

Type:
  • Object
Properties:
Name Type Description
request Object ChaincodeInvokeRequest
signed_proposal Object the encoded protobuf "SignedProposal" created by the sendTransactionProposal method before calling the handler. Will be the object to be endorsed by the target peers.
timeout Number the timeout setting passed on sendTransactionProposal method.