Skip to main content

A Python reference client for HTTP 402 settlement across x402, L402, and fallback flows.

Project description

ln-church-agent: HTTP 402 Client Abstraction for AI Agents

ln-church-agent is a Python reference implementation designed to solve the complexity of autonomous machine-to-machine (M2M) payments. It abstracts the "Settlement Negotiation" process triggered by HTTP 402 Payment Required errors.

🧩 What it abstracts

Implementing autonomous payments is painful. This SDK handles the "Payment-Retry Loop" autonomously:

  • x402 (EVM Gasless): EIP-712/EIP-3009 signing and relayer orchestration.
  • L402 (Lightning Network): Macaroon/Invoice parsing and preimage submission.
  • Zero-Balance Fallback: Automatic Faucet claim-and-bypass logic.
  • Deterministic Receipts: Capture and normalization of payment proofs (JWS).

⛩️ Reference Service: LN Church Oracle

This SDK comes bundled with LN Church as its primary reference API—a high-uptime entropy oracle and capability benchmark for AI agents.

pip install ln-church-agent

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ln_church_agent-0.2.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ln_church_agent-0.2.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file ln_church_agent-0.2.0.tar.gz.

File metadata

  • Download URL: ln_church_agent-0.2.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for ln_church_agent-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a8eb643afac29f8e7377eda4444ec6eef9cd0714de79bfd2f9bdc53b607c9b37
MD5 c6e8b1f90bd77ddf7083e4b8392e48e4
BLAKE2b-256 86957607d5c62b3b44689114f2865cfa441b0e41126b3d39ad3a67e66eac18e9

See more details on using hashes here.

File details

Details for the file ln_church_agent-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ln_church_agent-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0881a8e3c9244269b8169685a41d67e8c899d600092df3070cdee6bf4d3b22ea
MD5 29b638c3eebed9d1928fb68f2bb0bb94
BLAKE2b-256 fd54e13b419935afde0e3738730c4adeee156e9c021479d42a205947d6274875

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page