Known assets
Retrieve an asset’s configuration information from the network using the SDKs or goal
. Additional details are also added to the accounts that own the specific asset and can be listed with standard account information calls.
1 """Get information about an Algorand Standard Asset (ASA).2
3 - asset_id: The ID of the asset4 - creator: The address of the account that created the asset5 - total: The total amount of the smallest divisible units that were created of the asset6 - decimals: The amount of decimal places the asset was created with7 - default_frozen: Whether the asset was frozen by default for all accounts, defaults to None8 - manager: The address of the optional account that can manage the configuration of the asset and destroy it,9 defaults to None10 - reserve: The address of the optional account that holds the reserve (uncirculated supply) units of the asset,11 defaults to None12 - freeze: The address of the optional account that can be used to freeze or unfreeze holdings of this asset,13 defaults to None14 - clawback: The address of the optional account that can clawback holdings of this asset from any account,15 defaults to None16 - unit_name: The optional name of the unit of this asset (e.g. ticker name), defaults to None17 - unit_name_b64: The optional name of the unit of this asset as bytes, defaults to None18 - asset_name: The optional name of the asset, defaults to None19 - asset_name_b64: The optional name of the asset as bytes, defaults to None20 - url: Optional URL where more information about the asset can be retrieved, defaults to None21 - url_b64: Optional URL where more information about the asset can be retrieved as bytes, defaults to None22 - metadata_hash: 32-byte hash of some metadata that is relevant to the asset and/or asset holders,23 defaults to None24 """25 asset_info = algorand_client.asset.get_by_id(1234)26
27 print(asset_info.asset_name)28 print(asset_info.total)
const assetInfo = await algodClient.getAssetByID(assetIndex).do();console.log(`Asset Name: ${assetInfo.params.name}`);console.log(`Asset Params: ${assetInfo.params}`);
goal asset info --creator <creator-address> --asset unitname -d ~/node/data -w testwallAsset ID: <created-asset-id>Creator: <creator-address>Asset name: testtokenUnit name: unitnameMaximum issue: 12 unitnameReserve amount: 12 unitnameIssued: 0 unitnameDecimals: 0Default frozen: falseManager address: <creator-address>Reserve address: <reserve-address>Freeze address: <freeze-address>Clawback address: <clawback-address>