Skip to main content

LlamaIndex Tool: HelmSwap

HelmSwapToolSpec gives a LlamaIndex agent two tools for HelmSwap, a non-custodial swap terminal:

  • get_swap_quote: exact-input quote with the net output, minimum output after slippage, the disclosed fee and price impact. Read-only.
  • build_swap_transaction: the same quote, then an unsigned transaction (plus any ERC-20 approvals) for the user's own wallet to review and sign.

The tool spec never holds a private key, never signs and never broadcasts, and no tool argument accepts a key. Quotes expire in about 15 seconds. Building is live on Solana, Base, Ethereum, BNB Chain, Robinhood Chain, Ink, HyperEVM, Elysium and Arc; Arbitrum and Polygon are quote-only.

Install

pip install llama-index-tools-helmswap

Usage

from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
from llama_index.tools.helmswap import HelmSwapToolSpec

tool_spec = HelmSwapToolSpec()  # api_key only needed to build Solana swaps
agent = FunctionAgent(
    tools=tool_spec.to_tool_list(),
    llm=OpenAI(model="gpt-4.1"),
    system_prompt="Quote swaps and build unsigned transactions. Never ask for private keys.",
)
print(await agent.run("Quote 0.01 ETH to USDC on Base"))

Amounts are integers in the token's smallest unit (0.01 ETH is 10000000000000000).

Configuration

  • HELMSWAP_API_KEY (optional): free key from https://helmswap.com/developers, sent as the X-Helm-Key header. Required only to build Solana transactions. It is an API key, not a wallet key.
  • HELMSWAP_BASE_URL (optional): API host, default https://helmswap.com.

Metadata

Release files for llama-index-tools-helmswap 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-tools-helmswap 0.1.0
File Size Uploaded Provenance Actions
llama_index_tools_helmswap-0.1.0.tar.gz 5.3 kB Without provenance Details for llama_index_tools_helmswap-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-tools-helmswap 0.1.0
File Interpreter ABI Platform Actions
llama_index_tools_helmswap-0.1.0-py3-none-any.whl Python 3 none any Details for llama_index_tools_helmswap-0.1.0-py3-none-any.whl

Total release size: 11.8 kB

Release files / llama_index_tools_helmswap-0.1.0.tar.gz

Download URL llama_index_tools_helmswap-0.1.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
77fcf12a79cc9ed6c2f82eb04ece7ec932b53b3b4576f798496949cdece6e5f6
BLAKE2b-256 checksum
How to use checksums
ef49b4ee037bf0d94fd6ca2ab2c60872eb9e9763ed37f0bec845489a7df62cf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / llama_index_tools_helmswap-0.1.0-py3-none-any.whl

Download URL llama_index_tools_helmswap-0.1.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3413e329c07ffb2e2f33dced877a7ab63046a08650aa355ad193e63b26f5f771
BLAKE2b-256 checksum
How to use checksums
6d218a5d1b1dcaf35ddd8fe60dde55b4e8ef2fd94b6b440d448dbc1510d6bdf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for llama-index-tools-helmswap 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page