langchain-invar402
LangChain (Python) tools for Invar402.
This package never holds a wallet, API key, or facilitator secret, and it never pays automatically. Paid /verify returns the x402 quote unless you pass both pay_with_x402=True and a host-provided x402_fetch wrapper.
Website: https://invar402.com
Network: Base (eip155:8453)
Paid lookup: $0.002 USDC
Install
pip install langchain-invar402
Until the package is on PyPI:
git clone https://github.com/dumeinao441-ux/invar402-mcp.git
pip install ./invar402-mcp/packages/langchain-py
Usage
from langchain.agents import create_agent
from langchain_invar402 import get_invar402_tools
tools = get_invar402_tools() # never pays
agent = create_agent(model, tools)
Ask the agent: "Recommend an x402 service for bitcoin mempool fees, then preview the report shape."
Opt-in payment
tools = get_invar402_tools(
pay_with_x402=True,
x402_fetch=paid_fetch, # host-provided x402 wrapper; never a raw private key
)
Tools
Free: invar402_search, invar402_recommend, invar402_preview, invar402_leaderboard, invar402_check, invar402_trial.
Unpaid by default: invar402_verify.
License
MIT.
Metadata
Release files for langchain-invar402 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_invar402-0.1.0.tar.gz | 7.6 kB | With provenance | Details for langchain_invar402-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_invar402-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for langchain_invar402-0.1.0-py3-none-any.whl |
Total release size: 15.2 kB
Release files / langchain_invar402-0.1.0.tar.gz
| Download URL | langchain_invar402-0.1.0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
781dd39c231d92532182b780c5f3e3b1d953cedd0c163c670fd7ad476e992989
|
|
BLAKE2b-256 checksum How to use checksums |
51abbf5732d4251b3c37442e4404d802b184a7efa42d8bc67a85e6267027e6e0
|
| 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 30, 2026.
Transparency logRelease files / langchain_invar402-0.1.0-py3-none-any.whl
| Download URL | langchain_invar402-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a653a6d7b766b4094279fd8ecbe651e74e58dd8beab24634a3d7c5461b15029
|
|
BLAKE2b-256 checksum How to use checksums |
b91fdba9080516eb9bf2412407cefae3e56f928a49e508985cd9375472da6c22
|
| 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 30, 2026.
Transparency logSecurity for langchain-invar402 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_invar402-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 30, 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.