langchain-x402bazaar
A LangChain tool for x402 Bazaar — a pre-trade token safety verdict for any Base ERC-20, for AI agents.
token_verdict returns one SAFE / CAUTION / AVOID / UNKNOWN answer with the
reasons behind it and a recommended max position size, distilling the full
pre-trade stack (honeypot, sell-tax, owner powers, exit-liquidity, deployer, B20
seize/freeze). Paid per call over x402 ($0.03 USDC on Base),
or 1 free call/day per IP — no wallet needed to start.
Install
pip install langchain-x402bazaar
# optional, to pay per call with your own wallet instead of the free tier:
pip install "langchain-x402bazaar[pay]"
Use
from langchain_x402bazaar import token_verdict
# Works with no wallet (free daily call):
print(token_verdict.invoke({"address": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed"}))
# In an agent:
from langchain.agents import create_tool_calling_agent
agent = create_tool_calling_agent(llm, [token_verdict, ...], prompt)
Paying per call
Set a funded EVM wallet (USDC on Base) and install the pay extra:
export X402_EVM_PRIVATE_KEY=0x...
When present, each call pays $0.03 USDC over x402; otherwise the tool uses the free daily call.
Output
{
"address": "0x4ed4…efed",
"verdict": "CAUTION",
"confidence": "high",
"headline": "Tradeable, but with real risks — size down and stay exit-ready.",
"reasons": ["[owner-powers] mutable owner controls remain: is_mintable", "…"],
"recommendedMaxSizeUsd": 3992,
"cardUrl": "https://402.com.tr/brand/verdict?v=CAUTION&…"
}
Part of x402 Bazaar — 230+ pay-per-call APIs for AI agents on Base + NEAR. MIT licensed.
Metadata
Release files for langchain-x402bazaar 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langchain_x402bazaar-0.1.0.tar.gz | 3.3 kB | With provenance | Details for langchain_x402bazaar-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_x402bazaar-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for langchain_x402bazaar-0.1.0-py3-none-any.whl |
Total release size: 7.4 kB
Release files / langchain_x402bazaar-0.1.0.tar.gz
| Download URL | langchain_x402bazaar-0.1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6ebb1fe7c44655b9e1ec5f3c95d3cf71e0e28e4461f5d82a6b6698ddd44ecbf
|
|
BLAKE2b-256 checksum How to use checksums |
241cd591eb1c5017a6a0ada036bce76231d9655ff43426241bd7d99a6fd21733
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / langchain_x402bazaar-0.1.0-py3-none-any.whl
| Download URL | langchain_x402bazaar-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
33cedb3c9fcf0f415b9160ab641130550567088f2806011f261098bde8a72d34
|
|
BLAKE2b-256 checksum How to use checksums |
e808065e3422e41be30ebbade98815055452676bedf99930a2384c0e02d2fd72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for langchain-x402bazaar 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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for langchain_x402bazaar-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA 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.