A chain-agnostic AI-native payment infrastructure, authz layer for x402
ledgerflow is an early-stage Rust project in the AI payments / x402 ecosystem, focused on ap2, authz, circle, contract. It currently has 15 GitHub stars and 0 forks, and sits alongside related tools like x402-payment-gateway, solvela, ag402, moltspay, Agent402, APIMesh.
The Missing Authz Layer for x402 AI Payments.
LedgerFlow keeps x402 as the merchant and agent wire protocol, adds LedgerFlow authorization through x402 extensions, and routes verified payments to settlement rails through a small Facilitator layer.
flowchart LR
subgraph issuer["Human / Issuer"]
I["👤 Human"]
end
subgraph agent_layer["AI Agent"]
A["🤖 AI Agent"]
end
subgraph merchant_layer["Merchant Server"]
M["🏪 Merchant\nx402 + LedgerFlow Verifier"]
end
subgraph facilitator_layer["LedgerFlow Facilitator"]
F["⚡ Facilitator\nPayment Routing"]
end
subgraph settlement["Settlement Rails"]
EVM["EVM"]
SOL["Solana"]
EXC["Exchange"]
FIAT["Traditional Gateway"]
end
I -->|"issue warrant\n(signed, scoped, short-lived)"| A
A -->|"x402 PaymentRequired\n+ LedgerFlow extension"| M
M -->|"verify & forward\nx402 payload"| F
F -->|"route to rail"| EVM
F -->|"route to rail"| SOL
F -->|"route to rail"| EXC
F -->|"route to rail"| FIAT
style issuer fill:#e8f4fd,stroke:#4a90d9,stroke-width:2px,color:#1a1a2e
style agent_layer fill:#fef9e7,stroke:#f0b429,stroke-width:2px,color:#1a1a2e
style merchant_layer fill:#eafaf1,stroke:#27ae60,stroke-width:2px,color:#1a1a2e
style facilitator_layer fill:#f4ecf7,stroke:#8e44ad,stroke-width:2px,color:#1a1a2e
style settlement fill:#fdedec,stroke:#e74c3c,stroke-width:2px,color:#1a1a2e
style I fill:#d6eaf8,stroke:#2980b9,color:#1a1a2e
style A fill:#fdebd0,stroke:#e67e22,color:#1a1a2e
style M fill:#d5f5e3,stroke:#1e8449,color:#1a1a2e
style F fill:#e8daef,stroke:#7d3c98,color:#1a1a2e
style EVM fill:#fadbd8,stroke:#c0392b,color:#1a1a2e
style SOL fill:#fadbd8,stroke:#c0392b,color:#1a1a2e
style EXC fill:#fadbd8,stroke:#c0392b,color:#1a1a2e
style FIAT fill:#fadbd8,stroke:#c0392b,color:#1a1a2e
crates/ledgerflow-core: warrant, proof, digest, and constraint verification logiccrates/ledgerflow-x402: x402 challenge and payload extensions, merchant verification, replay protection, and warrant cachingcrates/ledgerflow-facilitator: payment-subject resolution and routing to EVM or exchange railsbin/ledgerflow-cli: development fixtures for sample warrants and payment payloadsjust test
cargo run -p ledgerflow-cli -- sample-warrant
cargo run -p ledgerflow-cli -- sample-payment
just test runs the workspace unit and property tests.just bench benchmarks the ledgerflow-core verification hot path with Criterion.just fuzz-check type-checks the cargo-fuzz targets for warrant decoding and x402 extension parsing.just fuzz-smoke runs one-second fuzzing smoke tests against the warrant and extension decoders.cargo test -p ledgerflow-core focuses on warrant and proof verification.cargo test -p ledgerflow-facilitator verifies rail routing.challenge_id + nonce fingerprinting with payment-identifier idempotency.Apache-2.0
HTTP 402 Payment Required middleware — monetize AI agent APIs with per-call USDC micropayments via x402 protocol (Stripe + Base)
Solana-native AI agent payment infrastructure. AI agents pay for LLM API calls with USDC-SPL on Solana via the x402 protocol.
Zero latency! Zero code change! Empower your AI agent with payment ability via x402 protocol! (Openclaw, Claude code, Cursor, Langchain, CrewAI, AutoGen...)
Blockchain payment infrastructure for AI Agents
500+ pay-per-call web tools + skill packs for AI agents — every one tested, priced, and settled on-chain. Paid in USDC over x402 on 8 chains, or free via proof-of-work on the pure-CPU tools. Self-hostable, MCP-native, deterministic. Plus the open x402 index (Find / Route / Leaderboard).
APIMesh — 23 pay-per-call web analysis APIs + 16-tool MCP server with autonomous API generation. Security audits, SEO, tech stack detection. x402 + Stripe MPP payments.
Lucid Agents Commerce SDK. Bootstrap AI agents in 60 seconds that can pay, sell, and participate in agentic commerce supply chains. Our protocol agnostic SDK provides CLI-generated templates and drop-in adapters for Hono, Express, Next.js, and TanStack, giving you instant access to crypto/fiat payment rails (AP2, A2A, x402, ERC8004).
Building blocks for Agentic payments (x402, MPP, AP2) for TypeScript, Rust, Go, Python, Ruby, PHP, Lua, Kotlin and Swift.
Building blocks for Agentic payments (x402, MPP, AP2) for TypeScript, Rust, Go, Python, Ruby, PHP, Lua, Kotlin and Swift.
Skills & plugins for agentic commerce : UCP, ACP, AP2, A2A, WebMCP, Magento 2, BigCommerce, WooCommerce
Trust infrastructure for million-agent economies on Solana - identity, reputation, and validation designed for continuous feedback at scale.
🚀 Curated resources for Google's Agent Payments Protocol (AP2), A2A & x402 — blogs, videos, repos & specs. Contributions welcome!