public CordappProvider
Provides access to what the node knows about loaded applications.
Modifier and Type | Method and Description |
---|---|
CordappContext |
getAppContext()
Exposes the current CorDapp context which will contain information and configuration of the CorDapp that
is currently running.
|
SecureHash |
getContractAttachmentID(java.lang.String contractClassName)
Resolve an attachment ID for a given contract name
|
CordappContext getAppContext()
Exposes the current CorDapp context which will contain information and configuration of the CorDapp that is currently running.
The calling application is found via stack walking and finding the first class on the stack that matches any class
contained within the automatically resolved interface Cordapp
s loaded by the CordappLoader
interface Cordapp
,
CordappLoaderSecureHash getContractAttachmentID(java.lang.String contractClassName)
Resolve an attachment ID for a given contract name
contractClassName
- The contract to find the attachment for