Skip to main content

avm.getAssetDescription RPC Method

Get information about an asset.

Updated on
Nov 2, 2023

avm.getAssetDescription RPC Method

Parameters

assetID
string
REQUIRED
The id of the asset for which the information is requested.

Returns

assetID
string
The id of the asset for which the information is requested.
name
string
The asset's human-readable, not necessarily unique name.
symbol
string
The asset's symbol.
denomination
int
Used to determine how the balances of this asset are displayed by user interfaces. If the denomination is 0, 100 units of this asset are displayed as 100. If the denomination is 1, 100 units of this asset are displayed as 10.0. If the denomination is 2, 100 units of this asset are displayed as .100, etc.
Request
1
curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro/ext/bc/C/rpc/ext/bc/X \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jsonrpc":"2.0",
5
"id" :1,
6
"method" :"avm.getAssetDescription",
7
"params" :{
8
"assetID" :"AVAX"
9
}
10
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free