Get a balance and a list of tokens and Cryptos, How could I do this? For HTML and a Movil App

Hello! I have a really great question! I would like to check if a user has NFT's in their wallet or if the user has some specific cryptocurrencies.
Now the balance only shows the amount of ETH in your account, but it is sure to be able to! We work at HTML, and in Unity we make a version for the iOS and Android cell phone. Can you help us?

This is the code for Get ETH in HTML. We dont have the code to do something in Unity

const getBalance = async (provider) => {
const web3 = new Web3(provider);

// Get user's Ethereum public address
const address = (await web3.eth.getAccounts())[0];

// Get user's balance in ether
const balance = web3.utils.fromWei(
  await web3.eth.getBalance(address) // Balance is in wei
);

return balance;

};

https://d318hu5thvz0lz.cloudfront.net/



Originally posted by: Androser

Check the discussion at: https://github.com/orgs/Web3Auth/discussions/611

Hey, You can use covalent api to retrieve the custom tokens, custom nfts. And also opensea api to retrieve nft held by specific account address.
https://docs.opensea.io/reference/api-overview
https://www.covalenthq.com/docs/api/#/0/0/USD/1



Originally posted by: rinzler99

Okay okay Ihave ask the XapiKey to OpenSea. They will contact me in max 2 days. But even I dont have the api Key or HEADER, and I dont know what is that



Originally posted by: Androser

Yes! You can use torus wallet plugin along with web3auth sdk to fetch the balance of custom tokens held by address.

https://web3auth.io/docs/whitelabel/torus-wallet-plugin



Originally posted by: rinzler99