ANTVersions
Overview
The ANTVersions
class provides functionality to manage ANT versions and track updates through the ANT Registry. This feature was added in SDK version 3.9.0.
The ANTVersions
class in the AR.IO SDK contains several methods:
getANTVersions
which retrieves all versions for an ANTgetLatestANTVersion
which retrieves the latest version for an ANTaddVersion
which adds a new version to an ANT (requires signer)
Initialization
The ANTVersions
class can be initialized in different ways depending on your needs:
Read-only Access
Read/Write Access
Parameters
The initialization accepts the following configuration:
processId
(string, optional): The process ID of the ANT Registry. Defaults to the main ANT Registry ID if not provided.signer
(AoSigner, optional): Signer instance for write operations. Required foraddVersion
method.
Note
Write operations like addVersion
require a signer to be provided during
initialization. Read operations can be performed without a signer.