# 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`](https://github.com/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`, and `amountSmallest`.
* **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.

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><i class="fa-code">:code:</i></td><td><strong>WDK Utils Configuration</strong></td><td>Install the package, import the helpers, and review runtime notes.</td><td><a href="/pages/PMGqLHK2Vej4EarcbTqk">/pages/PMGqLHK2Vej4EarcbTqk</a></td></tr><tr><td><i class="fa-mobile-alt">:mobile-alt:</i></td><td><strong>WDK Utils API Reference</strong></td><td>Review the exported validators, parsers, and result types.</td><td><a href="/pages/4IHbmUnvdJJ32Xlzfwvo">/pages/4IHbmUnvdJJ32Xlzfwvo</a></td></tr></tbody></table>

***

## Need Help?

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><i class="fa-discord">:discord:</i></td><td><strong>Discord Community</strong></td><td>Connect with developers, ask questions, share your projects</td><td><a href="https://discord.gg/arYXDhHB2w" class="button primary">Join Community</a></td><td><a href="https://discord.gg/arYXDhHB2w">https://discord.gg/arYXDhHB2w</a></td></tr><tr><td><i class="fa-github">:github:</i></td><td><strong>GitHub Issues</strong></td><td>Report bugs, request features, and get technical help</td><td><a href="https://github.com/tetherto/wdk-core" class="button secondary">Open an Issue</a></td><td><a href="https://github.com/tetherto/wdk-core">https://github.com/tetherto/wdk-core</a></td></tr><tr><td><i class="fa-envelope">:envelope:</i></td><td><strong>Email Contact</strong></td><td>For sensitive or private matters, contact our team directly</td><td><a href="mailto:wallet-info.tether.io" class="button secondary">Send an email</a></td><td><a href="mailto:wallet-info.tether.io">mailto:wallet-info.tether.io</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wdk.tether.io/tools/wdk-utils.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
