Private
constructorCreates an instance of Arc19.
The asset ID
The asset parameters from the Algorand blockchain
The Algorand network this asset exists on
The metadata associated with the asset
The asset parameters retrieved from the Algorand blockchain
The asset ID on the Algorand blockchain
The metadata associated with this ARC-19 asset
The Algorand network to use
Static
Private
calculateSHA256Static
Private
codeStatic
createCreates a new ARC-19 compliant NFT on the Algorand blockchain
The configuration options for creating the ARC-19 NFT
Optional
clawback?: stringThe clawback address
The creator of the asset, including address and signer
Optional
decimals?: numberThe decimals for the asset
Optional
defaultWhether the asset should be frozen by default
Optional
freeze?: stringThe freeze address
The path to the image file
The IPFS instance to use for uploading
Optional
manager?: stringThe manager address
The name of the asset
The Algorand network to use
Additional properties to include in the metadata
Optional
total?: numberThe total number of assets
The unit name for the asset
A promise resolving to an object containing the transaction ID and asset ID
Error if creation fails
Static
Private
createPrivate
Creates a reserve address from an IPFS CID for ARC-19 template resolution
The IPFS CID to convert
The Algorand address derived from the CID
Static
fetchFetches asset parameters from the Algorand blockchain
The asset ID to fetch
The Algorand network to use
A promise resolving to the asset parameters
Static
fromCreates an Arc19 instance from existing asset parameters
The asset ID
The asset parameters from the blockchain
The Algorand network to use
A promise resolving to an Arc19 instance
Static
fromStatic
getGets all metadata versions for an ARC-19 asset by examining transaction history
The asset ID to get metadata versions for
The Algorand network to search on
Promise resolving to array of metadata versions with timestamps
Error if unable to fetch transaction history
Static
hasStatic
isStatic
Private
resolveStatic
resolveResolves template-ipfs URLs to standard IPFS URLs using reserve address Handles the ARC-19 template format: template-ipfs://{ipfscid:1:raw:reserve:sha2-256}
The template-ipfs URL to resolve
The reserve address to use for CID generation
The resolved IPFS URL or empty string if invalid
Static
updateUpdates an existing ARC-19 NFT's metadata
The configuration options for updating the ARC-19 NFT
The asset ID of the NFT to update
Optional
image?: { The new image to upload and set
IPFS instance for uploading content
The manager account with address and transaction signer
The Algorand network the NFT exists on
Optional
properties?: anyThe new properties to set in the metadata
A promise resolving to the transaction confirmation
Error if update fails or manager doesn't have permission
Class representing an ARC-19 compliant NFT on Algorand. Extends CoreAsset with metadata handling for the ARC-19 standard.