@DoNotImplement public CordappProvider
Provides access to what the node knows about loaded applications.
@NotNull 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
IllegalStateException
- When called from a non-app contextinterface Cordapp
,
CordappLoader@Nullable SecureHash getContractAttachmentID(@NotNull java.lang.String contractClassName)
Resolve an attachment ID for a given contract name
contractClassName
- The contract to find the attachment for