new ChaincodeRegistration(chaincode_id, event_name, event_reg, as_array)
Constructs a chaincode callback entry
Parameters:
Name | Type | Description |
---|---|---|
chaincode_id |
string | chaincode id |
event_name |
string | RegExp | The regex used to filter events |
event_reg |
EventRegistration | event registrations callbacks |
as_array |
as_array | should all the chaincode events found that match this definition be sent to the callback as an array or call the callback for each one individually. |