puzzle-piece-simpleLayer 2: x402 Execution Fabric

The x402 Execution Fabric is the transaction backbone of Quack AI’s autonomy architecture. It unifies payments, settlements, and policy enforcement through a single sign-to-pay system.

At its core, x402 allows users and agents to complete any on-chain action — payments, distributions, upgrades, or votes — by signing once, without holding gas tokens or executing manual approvals.

This fabric is composed of two interoperable standards:

  • Q402: The multichain extension for all EVM-compatible networks, built on Permit2 for broad token compatibility.

  • x402 BNB: Optimized for BNB Chain, using EIP-712 witness signatures and delegated execution.

How It Works

Step

Action

Component

Output

1

User or agent signs an EIP-712 message

x402 Frontend + Wallet

Intent and parameters defined

2

Relayer or facilitator submits transaction

x402 Relay Layer

Gas sponsored and verified

3

Policy Engine validates compliance

Policy Module

Rule checks and limit enforcement

4

On-chain execution settles

Smart Contracts

Transfer, payout, or action finalized

5

Audit trail recorded

x402 Registry

Signature linked to transaction hash

Key Capabilities

  • Gasless Transactions — Users or agents can act even with zero native token balance.

  • Permit2 Mode — Works with any ERC-20 without needing ERC-3009 upgrades.

  • Programmable Policies — Limits, expiry, whitelists, and audit hooks built in.

  • Facilitator Network — Agents or relayers that pay gas and maintain receipts.

  • Verifiable Receipts — Each signature produces a traceable transaction hash for audits.

Example Use Cases

Scenario

Outcome

DAO payouts

Distributions settle instantly after governance approval

RWA redemptions

NAV-based withdrawals with audit-proof receipts

Merchant or affiliate payments

One-signature settlements under policy guardrails

Agent-to-agent transactions

Automated data or API payments between AI systems

x402 turns on-chain execution into a seamless experience — one that combines the simplicity of Web2 payments with the verifiability and decentralization of Web3.

Last updated