Skip to main content

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.2.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 langchain-x402bazaar 0.2.0
File Size Uploaded Provenance Actions
langchain_x402bazaar-0.2.0.tar.gz 3.6 kB With provenance Details for langchain_x402bazaar-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-x402bazaar 0.2.0
File Interpreter ABI Platform Actions
langchain_x402bazaar-0.2.0-py3-none-any.whl Python 3 none any Details for langchain_x402bazaar-0.2.0-py3-none-any.whl

Total release size: 8.1 kB

Release files / langchain_x402bazaar-0.2.0.tar.gz

Download URL langchain_x402bazaar-0.2.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
87306c9a7c6b609246f832194b014efb92218f4210e8c2bafcda7b015c119aa0
BLAKE2b-256 checksum
How to use checksums
8c9b82a153621fd8fa98819b749af1008bf4ad14992fc7dd1ee7a5c54bb21663
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 20, 2026.

Transparency log

Release files / langchain_x402bazaar-0.2.0-py3-none-any.whl

Download URL langchain_x402bazaar-0.2.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1939b67abd5bfb602ea90d6e883e81cc93fd84c0606455b315d7740facdcb143
BLAKE2b-256 checksum
How to use checksums
e20bf2f972a6c3e00565bb5d2b9aed450b3dec4c0795a830cc14250fbe398090
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 20, 2026.

Transparency log

Security for langchain-x402bazaar 0.2.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.

Select from 2 files

Attestation for langchain_x402bazaar-0.2.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 20, 2026.

Transparency log

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.2.0 This release

2 release files Full 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