# wallet-ton-gasless

A simple and secure package to manage gasless transactions on the TON blockchain. This package provides a clean API for creating, managing, and interacting with TON wallets using BIP-39 seed phrases and TON-specific derivation paths, with support for gasless transactions through a paymaster system.

## Features

* **BIP-39 Seed Phrase Support**: Generate and validate BIP-39 mnemonic seed phrases
* **TON Derivation Paths**: Support for BIP-44 standard derivation paths for TON (m/44'/607')
* **Multi-Account Management**: Create and manage multiple accounts from a single seed phrase
* **TON Address Support**: Generate and manage TON addresses using V5R1 wallet contracts
* **Message Signing**: Sign and verify messages using TON cryptography
* **Gasless Transactions**: Execute transactions without requiring TON for gas fees
* **Paymaster Integration**: Built-in support for paymaster-based fee delegation
* **Jetton Support**: Query native TON and Jetton token balances
* **TypeScript Support**: Full TypeScript definitions included
* **Memory Safety**: Secure private key management with automatic memory cleanup using sodium-universal
* **Provider Flexibility**: Support for both TON Center and TON API endpoints

## Supported Networks

This package works with the TON blockchain (The Open Network), including:

* **TON Mainnet**
* **TON Testnet**

## Next Steps

<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>Node.js Quickstart</strong></td><td>Get started with WDK in a Node.js environment</td><td><a href="/pages/oXt7HqvgiAEitW4bDjPO">/pages/oXt7HqvgiAEitW4bDjPO</a></td></tr><tr><td><i class="fa-code">:code:</i></td><td><strong>WDK TON Gasless Wallet Configuration</strong></td><td>Get started with WDK's TON Gasless Wallet configuration</td><td><a href="/pages/CPNekJftJvnjjpEJpj8I">/pages/CPNekJftJvnjjpEJpj8I</a></td></tr><tr><td><i class="fa-code">:code:</i></td><td><strong>WDK TON Gasless Wallet API</strong></td><td>Get started with WDK's TON Gasless Wallet API</td><td><a href="/pages/cZOyrjK7RCfvVTmxfOUK">/pages/cZOyrjK7RCfvVTmxfOUK</a></td></tr><tr><td><i class="fa-code">:code:</i></td><td><strong>WDK TON Gasless Wallet Usage</strong></td><td>Get started with WDK's with TON Gasless Wallet usage</td><td><a href="/pages/46MFrmtbbXeLi9cJ5N4U">/pages/46MFrmtbbXeLi9cJ5N4U</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/sdk/wallet-modules/wallet-ton-gasless.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.
