Skip to main content
Standalone fetchers work without DZapWidgetProvider. Hooks (useTokenList, useZapPools, useZapPositions) require a mounted provider and cache inside it.
fetchTokenList, fetchZapPools, and fetchZapPositions throw on network or API failure. An empty result means the request succeeded and there is no matching data.
fetchSupportedChains, fetchSwapBridgeProviders, and fetchZapProviders return an empty list on failure instead of throwing.

Chains and providers

Use provider IDs in config.providers:

Tokens

fetchTokenList returns identity metadata only (no balances). The widget loads balances after a wallet connects.

Pools and positions

fetchZapPositions also throws if account is not a valid address for that chainId.

Hooks (inside the provider)

These read the widget cache. Prefer them when you already have DZapWidgetProvider mounted and need the same lists the form is using.
Last modified on September 21, 2026