Metadata-Version: 2.4
Name: langchain-helmswap
Version: 0.1.1
Summary: LangChain tools for HelmSwap: quote and build unsigned swap transactions. The agent's wallet signs and sends. Never holds keys.
Author: Summit Private Credit LLC
License: MIT
Project-URL: Homepage, https://helmswap.com/developers
Project-URL: Repository, https://github.com/gambrelcolby63/langchain-helmswap
Keywords: helmswap,langchain,swap,non-custodial
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: langchain-core>=0.3
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == "dev"
Dynamic: license-file

# langchain-helmswap

LangChain tools for [HelmSwap](https://helmswap.com/developers). They quote a swap and return an **unsigned** transaction. The agent's own wallet signs and sends it. The tools never hold, store, or accept private keys, and the HelmSwap API never signs or broadcasts.

## Install

```bash
pip install langchain-helmswap
```

```python
from langchain_helmswap import HelmswapQuoteTool, HelmswapBuildTool

tools = [HelmswapQuoteTool(), HelmswapBuildTool()]
```

## Settings

| Name | Required | Purpose |
| --- | --- | --- |
| `HELMSWAP_API_KEY` | For Solana builds | Free key from [helmswap.com/developers](https://helmswap.com/developers). Quotes work without it. Never a wallet key. |
| `HELMSWAP_BASE_URL` | No | API origin. Defaults to `https://helmswap.com`. |

`amount_in` is integer base units. `chain` accepts `solana`, `base`, `ethereum`, `bsc`, or a numeric chain id.

Arbitrum and Polygon can be quoted but cannot be built. Tokenized stocks are refused.

## License

MIT © Summit Private Credit LLC
