WDK Utils
Address validation helpers and EIP-681 request parsers for @tetherto/wdk-utils
WDK Utils provides validation helpers for Bitcoin, EVM, Lightning, Spark, Tron, and UMA identifiers, Lightning decoding helpers, plus EIP-681 request parsing helpers for token transfer deep links. Powered by @tetherto/wdk-utils.
Features
Address validation helpers: Validate Bitcoin, EVM, Lightning invoice, LNURL, Lightning address, Spark, Tron, and UMA inputs before you hand them to a wallet flow.
Lightning decoding helpers: Decode BOLT11 invoices and LNURL strings before you display or route payment details.
EIP-681 request parsing: Detect request-shaped EIP-681 strings and parse transfer payloads into
recipient,tokenAddress,chainId, andamountSmallest.No runtime setup: Import the functions you need. The package has no constructor or runtime configuration.
TypeScript support: The published package ships typed exports for every validator and parser.
Bare runtime export: The package publishes a bare entrypoint in addition to the default module entrypoint.
Why this matters
Validate user input early and return machine-readable failure reasons before you attempt a transaction or resolution flow.
Normalize EIP-681 payment links into structured transfer data that wallet UIs can inspect before execution.
Reuse the same helpers across Node.js and Bare-based environments without adding a larger wallet module dependency.

