Skip to content
This new developer portal is under construction. For complete documentation, please refer to the old developer portal.

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 asset
4
- creator: The address of the account that created the asset
5
- total: The total amount of the smallest divisible units that were created of the asset
6
- decimals: The amount of decimal places the asset was created with
7
- default_frozen: Whether the asset was frozen by default for all accounts, defaults to None
8
- manager: The address of the optional account that can manage the configuration of the asset and destroy it,
9
defaults to None
10
- reserve: The address of the optional account that holds the reserve (uncirculated supply) units of the asset,
11
defaults to None
12
- freeze: The address of the optional account that can be used to freeze or unfreeze holdings of this asset,
13
defaults to None
14
- clawback: The address of the optional account that can clawback holdings of this asset from any account,
15
defaults to None
16
- unit_name: The optional name of the unit of this asset (e.g. ticker name), defaults to None
17
- unit_name_b64: The optional name of the unit of this asset as bytes, defaults to None
18
- asset_name: The optional name of the asset, defaults to None
19
- asset_name_b64: The optional name of the asset as bytes, defaults to None
20
- url: Optional URL where more information about the asset can be retrieved, defaults to None
21
- url_b64: Optional URL where more information about the asset can be retrieved as bytes, defaults to None
22
- metadata_hash: 32-byte hash of some metadata that is relevant to the asset and/or asset holders,
23
defaults to None
24
"""
25
asset_info = algorand_client.asset.get_by_id(1234)
26
27
print(asset_info.asset_name)
28
print(asset_info.total)