Constructor
(protected) new EmbeddedContext(engine, identity, eventSink, installedBusinessNetwork, additionalConnectorOptionsopt)
Constructor.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
engine |
Engine | The owning engine. |
|
identity |
Object | The current identity. |
|
eventSink |
EventEmitter | The event emitter |
|
installedBusinessNetwork |
InstalledBusinessNetwork | The installed business network |
|
additionalConnectorOptions |
Object |
<optional> |
Additional connector specific options for this transaction. |
- Source:
Methods
getDataService() → {DataService}
Get the data service provided by the chaincode container.
- Source:
Returns:
The data service provided by the chaincode container.
- Type
- DataService
getEventService() → {EventService}
Get the event service provided by the chaincode container.
- Source:
Returns:
The event service provided by the chaincode container.
- Type
- EventService
getHTTPService() → {EventService}
Get the event service provided by the chaincode container.
- Source:
Returns:
The event service provided by the chaincode container.
- Type
- EventService
getIdentityService() → {IdentityService}
Get the identity service provided by the chaincode container.
- Source:
Returns:
The identity service provided by the chaincode container.
- Type
- IdentityService
getNativeAPI()
Get the native api
- Source:
getScriptCompiler() → {ScriptCompiler}
Get the script compiler.
- Source:
Returns:
scriptCompiler The script compiler.
- Type
- ScriptCompiler