WDK Utils
Address validation helpers and EIP-681 request parsers for @tetherto/wdk-utils
WDK Utils provides validation helpers for Bitcoin, EVM, Lightning, Spark, and UMA identifiers, 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, and UMA inputs before you hand them to a wallet flow.
- 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.
WDK Utils Configuration
Install the package, import the helpers, and review runtime notes.
WDK Utils API Reference
Review the exported validators, parsers, and result types.