Metadata-Version: 2.4
Name: m2mcent-langchain-x402
Version: 1.0.3
Summary: Official M2MCent x402 V2 Toolkit for LangChain & LangGraph (EIP-3009 Gasless USDC Settlement on Base Mainnet, 1,057 Deterministic Nodes, Vouch Grade A 100/100).
Author-email: M2MCent <hello@m2mcent.com>
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.28.0
Requires-Dist: eth-account>=0.10.0

# 🔗 m2mcent-langchain-x402 (v1.0.3)

Official **M2MCent x402 V2 Toolkit** for **LangChain & LangGraph** agents on **Base Mainnet (`eip155:8453`)**.

- **1,057 Deterministic Micro-Services** (`$0.010`–`$0.250` USDC, `<250ms` compute SLA)
- **Vouch Protocol Certified:** Grade A (`100/100`) · `did:web:m2mcent.com` · Post-Quantum `ML-DSA-65` (FIPS 204)
- **Smart Contract Escrow:** `0x5d47070A36A37DAf417e64FF27a1e5B3F1c84efa`
- **Institutional Treasury Safe:** `0x8aaBAB75bE8825d0f5D514a9a5cBa04B7bF84920`

## Installation

```bash
pip install m2mcent-langchain-x402
```

## Quickstart

```python
from m2mcent_langchain import M2MCentToolkit

toolkit = M2MCentToolkit(private_key="0xYOUR_BASE_WALLET_KEY")

# 1. Discover tools (/api/v1/tools)
tools = toolkit.fetch_tools(limit=10)

# 2. Free syntactic dry-run preview (/:slug/api/preview)
preview = toolkit.preview_tool("autonomous-trading-bot-mcp", {"symbol": "ETH"})

# 3. Paid execution with automatic HTTP 402 EIP-3009 signing (/:slug/api/process)
result = toolkit.call_tool("autonomous-trading-bot-mcp", {"symbol": "ETH"}, validate_preview=True)
print(result)
```
