Installation
langchain>=0.3.0.
Tools
The SDK provides three LangChain tools:| Tool | Description |
|---|---|
CheckGateTool | Check if a URL has an x402 payment gate |
PayTool | Execute USDC payment and return access token |
GetHistoryTool | View past payments for this wallet |
Usage with LangGraph
Using with other LLMs
Wallet configuration
The tools use the same wallet configuration as the core SDK:XENARCH_PRIVATE_KEYenvironment variable~/.xenarch/config.json~/.xenarch/wallet.json- Auto-generate on first use