1
Add the contract
Use the proxy address. Never use the implementation address behind it.
usdh.ts
2
Read a balance
USDh has 6 decimals, so
1000000 base units is 1 USDh. Read decimals() rather than hard-coding it.balance.ts
3
Send USDh
A transfer works like any ERC-20 transfer.
transfer.ts
4
Handle the two USDh-specific cases
A transfer can fail if the whole system is paused, or if the sender or receiver is frozen. Check before you send, and show a clear message if either is true. See Handle pauses, freezes and limits.
Next
- Accepting USDh in a product: Accept and hold USDh
- Minting and redeeming as a Mint User or approved route: Mint and redeem from code