> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xenarch.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Python SDK

> Changelog for the xenarch package on PyPI: agent payments, merchant client, webhook verification and FastAPI middleware.

Install with `pip install xenarch`. Source: [xenarch-sdks/python](https://github.com/xenarch-ai/xenarch-sdks/tree/main/python). See the [Python SDK guide](https://docs.xenarch.com/sdks/python.md).

**v1.3.0**

2026-11-25

* Choose which networks and coins a pay link takes: `links.networks()`, `links.set_networks()`. Besides USDC on Base, a link can take USDC and USDT on Ethereum, BNB Chain and Monad, and USDT on Tron. `links.available_networks()` lists them all. XEN-719
* `links.wallet_scan()` shows a payer's balances and network fees on each network a link takes.
* Each payment from `payments.list()` carries `network`, `token`, `chain_id` and `explorer_url`.

**v1.2.1**

2026-11-23

* README and package docs: the seller pays Xenarch 1% of each payment. Gasless applies to agent (x402) payments; people paying a pay link send an ordinary USDC transfer and pay Base's network fee. XEN-675 XEN-673

**v1.2.0**

2026-11-20

* The FastAPI middleware accepts plain x402 `X-PAYMENT` payments from any x402 client, not only Xenarch agents. XEN-457
* The default API host is `api.xenarch.dev`.

**v1.1.0**

2026-06-05

* `xenarch.webhooks.verify()` checks the timestamped `X-Xenarch-Signature: t=…,v1=…` scheme and rejects replayed deliveries. XEN-431

**v1.0.1**

2026-06-04

* Packaging cleanup: development scripts are no longer shipped in the source distribution.

**v1.0.0**

2026-06-04

* `xenarch.merchant.MerchantClient`: create, validate, list and revoke pay links, and read payments, subscribers and your merchant profile. `from_config()` reuses the CLI's session and wallet. XEN-417
* `xenarch.webhooks.verify()` for incoming webhooks.
* `xenarch.x402` holds the buyer-side protocol tools.
* Agents report receipts to the agent control plane and honour its spend caps and scope rules. A payment the caps refuse is not sent, and a reserved cap is refunded if settlement fails. XEN-372 XEN-373 XEN-374

**v0.2.2**

2026-05-10

* Adapters for LangGraph (`XenarchLangGraphPay`) and CrewAI (`XenarchCrewaiPay`).
* Listing copy refreshed in 0.2.3 and 0.2.4 (2026-05-13).

**v0.2.1**

2026-04-28

* AutoGen `FunctionTool` adapter for `XenarchPayer`. XEN-173
* Fixed: framework extras now install the x402 dependency. XEN-192

**v0.2.0**

2026-04-27

* `XenarchPayer`: pays x402 gates directly to the seller's wallet. Payments no longer go through a splitter contract. XEN-182
* Budget guardrails, pay.json pre-discovery and early refusal when a price exceeds the budget. XEN-148 XEN-164
* Signed receipts and an opt-in reputation check. XEN-165

**v0.1.0**

2026-04-10

* First PyPI release: agent payment tools for LangChain and CrewAI, a zero-config local wallet, and FastAPI middleware with bot detection.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.