Skip to main content
This page gets you from nothing to a working USDh balance and transfer. The examples use viem. Any Ethereum library works the same way, because USDh is a standard ERC-20.
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

Last updated: 17 November 2026