[PR #4028] docs: Add pr402 payment tools integration #4036

Open
opened 2026-06-05 18:53:58 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/4028
Author: @miralandlabs
Created: 5/15/2026
Status: 🔄 Open

Base: mainHead: add-pr402-integration


📝 Commits (2)

  • 56165fc docs: Add pr402 payment tools integration
  • 0617509 fix: remove spaces around em dash (vale lint)

📊 Changes

1 file changed (+41 additions, -0 deletions)

View changed files

src/oss/python/integrations/tools/pr402.mdx (+41 -0)

📄 Description

Adds an integration documentation page for langchain-pr402, a third-party package that gives LangChain agents the ability to autonomously pay for HTTP resources using the pr402/x402 protocol on Solana.

Package: pip install langchain-pr402 Source: https://github.com/miraland-labs/langchain-pr402 Requires: Python ≥ 3.10

What it does
X402GetTool / X402PostTool — Make HTTP requests that automatically handle 402 Payment Required responses by signing a Solana USDC micro-payment and retrying.
X402BalanceTool — Lets the agent check its own wallet address and SOL/USDC balance.
Why
AI agents currently cannot pay for premium APIs or compute without human intervention. These tools solve this by giving any LangChain agent a Solana wallet capable of sub-second USDC micro-payments via the open x402 protocol.

Checklist
Uses the official tools template from src/oss/python/integrations/tools/TEMPLATE.mdx
Package is published on PyPI
No Jupyter notebooks (uses .mdx as recommended)
Follows existing integration page patterns (Discord, DuckDuckGo)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/4028 **Author:** [@miralandlabs](https://github.com/miralandlabs) **Created:** 5/15/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `add-pr402-integration` --- ### 📝 Commits (2) - [`56165fc`](https://github.com/langchain-ai/docs/commit/56165fcaba61696e5502af7d1335e9d6f9864d5e) docs: Add pr402 payment tools integration - [`0617509`](https://github.com/langchain-ai/docs/commit/0617509b5c0c6f6534a127c72db4a04ef4a5ac3e) fix: remove spaces around em dash (vale lint) ### 📊 Changes **1 file changed** (+41 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `src/oss/python/integrations/tools/pr402.mdx` (+41 -0) </details> ### 📄 Description Adds an integration documentation page for langchain-pr402, a third-party package that gives LangChain agents the ability to autonomously pay for HTTP resources using the pr402/x402 protocol on Solana. Package: pip install langchain-pr402 Source: https://github.com/miraland-labs/langchain-pr402 Requires: Python ≥ 3.10 What it does X402GetTool / X402PostTool — Make HTTP requests that automatically handle 402 Payment Required responses by signing a Solana USDC micro-payment and retrying. X402BalanceTool — Lets the agent check its own wallet address and SOL/USDC balance. Why AI agents currently cannot pay for premium APIs or compute without human intervention. These tools solve this by giving any LangChain agent a Solana wallet capable of sub-second USDC micro-payments via the open x402 protocol. Checklist Uses the official tools template from src/oss/python/integrations/tools/TEMPLATE.mdx Package is published on PyPI No Jupyter notebooks (uses .mdx as recommended) Follows existing integration page patterns (Discord, DuckDuckGo) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 18:53:58 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#4036