'How to get cw20 token details from terra.js

I can get cw20 token balance using this code snippet

const response = await terraConfig.wasm.contractQuery(tokenAddress, {
  balance: { address: walletAddress },
});

how can I get the token details like name, symbol and decimals details using terra.js



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source