corda / / AttachmentStorage / getLatestContractAttachments


abstract fun getLatestContractAttachments(contractClassName: String, minContractVersion: Int = DEFAULT_CORDAPP_VERSION): List<AttachmentId>

Find the Attachment Id(s) of the contract attachments with the highest version for a given contract class name from trusted upload sources. Return highest version of both signed and unsigned attachment ids (signed first, unsigned second), otherwise return a single signed or unsigned version id, or an empty list if none meet the criteria.


contractClassName - The fully qualified name of the contract class.

minContractVersion - The minimum contract version that should be returned.

the AttachmentIds of the contract attachments (signed always first in list), or an empty list if none meet the criteria.