Marketplace has launched, further enabling blockchain developers! Learn more

Contents

avm.getAssetDescription RPC method

The API credit value for this method is 1 . To learn more about API credits and each method's value, visit the API Credits page.

Parameters:

  1. assetID - String - The id of the asset for which the information is requested.

Returns:

  1. assetID - string - The id of the asset for which the information is requested.
  2. name - string - The asset’s human-readable, not necessarily unique name.
  3. symbol - string - The asset’s symbol.
  4. denomination - int - determines how balances of this asset are displayed by user interfaces. If denomination is 0, 100 units of this asset are displayed as 100. If denomination is 1, 100 units of this asset are displayed as 10.0. If denomination is 2, 100 units of this asset are displays as .100, etc.

Code Examples:

from web3 import Web3, HTTPProvider
w3 = Web3(HTTPProvider('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ext/bc/X'))
params = {
    "assetID" :"AVAX"
}
request = w3.provider.make_request('avm.getAssetDescription', [params])
print(request)
Ready to get started? Create a free account