WDK logoWDK documentation

Asset Registry

Standardized asset metadata and lookup helpers for @tetherto/wdk-asset-registry

Asset Registry provides in-memory registries for standardized asset metadata. Use @tetherto/wdk-asset-registry when a wallet, protocol, UI, or indexing flow needs consistent asset identifiers, symbols, decimals, chain IDs, and token contract addresses without adding an RPC dependency.

Powered by @tetherto/wdk-asset-registry.

Features

  • Base asset registry: Register and look up assets by id or by partial metadata filters.
  • Token asset registry: Work with token metadata including address, symbol, name, decimals, and isNative.
  • Bundled asset lists: Import predefined JSON metadata from @tetherto/wdk-asset-registry/assets/common-tokens.
  • Zod-backed schemas: Validate base and token asset records before registration.
  • Uniswap token-list helpers: Normalize Uniswap-style token entries into WDK TokenAsset records.
  • No RPC dependency: The package stores and searches metadata locally. It does not read balances, prices, or chain state.

Why this matters

  • Share one asset identity model across WDK wallet modules, pricing flows, protocol integrations, and UI surfaces.
  • Normalize token metadata before it reaches send, swap, bridge, or display logic.
  • Keep static metadata lookup separate from live providers that fetch balances, prices, quotes, or contract state.

Need Help?

On this page