Get assets balance in TEAL code - General - Algorand
Get assets balance in TEAL code
post by Olga on Jun 16, 2023
Hello! I’m wondering if it’s possible to get the balance of assets (USDT/USDC) by the wallet address in the TEAL code? Thank you!
post by ryanRfox on Jun 16, 2023
yes, please explore the use of the asset_holding_get f opcode:
post by Olga on Jun 16, 2023
Thanks for the answer! Perhaps there are TEAL code examples of how to use this opcode to check the balance? Thank you
Related topics
| Topic | Replies | Views | Activity |
|---|---|---|---|
| Read ASA from Smart contract | 9 | 820 | Oct 2021 |
| Asset_holding_get doesn’t recognize asset Id | 2 | 1.1k | Jul 2021 |
| Error: Need to check the asset balance of SmartContract | 1 | 307 | Jun 2022 |
| Using assets in Smart Contracts | 1 | 367 | Apr 2021 |
| Pass address as argument to TEAL | 1 | 797 | Jun 2023 |