useCalm() reads the active provider’s configuration — destination
chain, currency, and address. Throws when called outside a provider tree.
Import
Usage
app/page.tsx
Return Type
address
`0x${string}`
The wallet address the active provider is configured with.
apiUrl
string
The Calm API root (https://api.calmtreasury.xyz by default; the
provider’s apiUrl prop overrides).
chain
Chain (a chain id number)
Destination chain id for the USDC payout. Initialized from the
provider’s chain prop (default 1337, HyperCore, on the modality
shells).
setChain
(next: Chain) => void
Switch the destination chain at runtime. Initialized from the provider’s
chain prop on mount.
currency
"usd" | "gbp" | "eur"
Source fiat currency for the bank-deposit onramp.