ar.io Logoar.io Documentation
ar.io SDKANT Contracts

Upgrade

upgrade()

Migrates this ANT's on-chain state to the latest schema version (per- ANT data migration on Solana — no process forking, no name reassignment). Returns { id, needsMigration }.

const result = await ant.upgrade();
if (result.needsMigration) {
  console.log(`Migrated: ${result.id}`);
}

How is this guide?

On this page