fetchFungibleAssetMetadata
Function to fetch fungible asset metadata for a given asset address.
Usage
import { AptosJSProClient } from "@aptos-labs/js-pro";
const client = new AptosJSProClient({
/* ... */
});
const fungibleAssetMetadata = await client.fetchFungibleAssetMetadata({
address: "0xa",
});
Coin Type
import { AptosJSProClient } from "@aptos-labs/js-pro";
const client = new AptosJSProClient({
/* ... */
});
const fungibleAssetMetadata = await client.fetchFungibleAssetMetadata({
address: "0x1::aptos_coin::AptosCoin",
});
Parameters
Name | Type | Default |
---|---|---|
asset | string | |
network | NetworkInfo The network to use for the request. If not set, the network of the |
Return Type
Name | Type | Default |
---|---|---|
assetType | string | |
creatorAddress | string | |
decimals | number | |
iconUri | string | null | |
maximumV2 | number | null | |
name | string | |
projectUri | string | null | |
supplyV2 | number | null | |
symbol | string | |
tokenStandard | string |
Last updated on