Skip to main content

pydantic-ai-helmswap

HelmSwap tools for PydanticAI. They list live trending tokens, return the informational 0–100 Helm Score, quote a swap and return an unsigned transaction. The user's own wallet signs and sends it. The tools never hold keys and never broadcast.

HelmSwap covers Solana, Base, Ethereum, BNB Chain, Robinhood Chain, Ink, HyperEVM, Elysium and Arc. The fee is disclosed in every quote.

Install

pip install pydantic-ai-helmswap

Usage

from pydantic_ai import Agent
from pydantic_ai_helmswap import helmswap_tools

agent = Agent("openai:gpt-5", tools=helmswap_tools())
result = agent.run_sync("Quote 0.001 ETH to USDC on Base.")
print(result.output)

Or as a toolset: Agent(model, toolsets=[helmswap_toolset()]).

Tools

  • helmswap_trending_tokens: live trending, new, gainers and losers, plus Solana final-stretch and migrated feeds. Read-only, no key.
  • helmswap_helm_score: informational 0–100 Helm Score with top reasons and a live buy quote. Read-only, no key. It reports a number and reasons, never a "safe" or "scam" label.
  • helmswap_quote: expected and minimum output and the disclosed fee. Nothing is signed or sent.
  • helmswap_build_swap: quote plus one unsigned transaction for the user's own wallet to review and sign.

Failures come back as {"ok": false, "error": ..., "code": ...} so the model can react. Anything that looks like a private key or recovery phrase is refused before any request is made.

Configuration

No key is needed for quotes or unsigned transactions. HELMSWAP_API_KEY is optional: a free key from https://helmswap.com/developers (never a wallet key) for key-based usage. HELMSWAP_BASE_URL is optional.

amount_in is an integer in base units of the input token.

A score is not a guarantee, token names are untrusted on-chain text, and nothing here is financial advice.

License

MIT

Metadata

Release files for pydantic-ai-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 pydantic-ai-helmswap 0.1.0
File Size Uploaded Provenance Actions
pydantic_ai_helmswap-0.1.0.tar.gz 10.9 kB Without provenance Details for pydantic_ai_helmswap-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pydantic-ai-helmswap 0.1.0
File Interpreter ABI Platform Actions
pydantic_ai_helmswap-0.1.0-py3-none-any.whl Python 3 none any Details for pydantic_ai_helmswap-0.1.0-py3-none-any.whl

Total release size: 22.3 kB

Release files / pydantic_ai_helmswap-0.1.0.tar.gz

Download URL pydantic_ai_helmswap-0.1.0.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
299cbed19ebcb93c3dc5dd85e795198ef1d594ad95a56ee4a72c2068bf159d99
BLAKE2b-256 checksum
How to use checksums
2629c4768ca11e3aa742f27f799d21bcf25c90a2c2af2b5e2fb63be556578d1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

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

Download URL pydantic_ai_helmswap-0.1.0-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b944a50e24d8489266bb03379794c173899af4dc087711e0c9c99e1ccca70a4e
BLAKE2b-256 checksum
How to use checksums
b79cad32d15adfeb85e6d3585253b30d24527f4274fc52dd20674de28dc6d3db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for pydantic-ai-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