Protocol

Bags
Pay

Network

Solana Mainnet
x402 Payment Protocol
Bags Fee Share V2

Status

Live on Devnet

x402 Payment Infrastructure for Solana

The
Stripe
of Bags

Payment rails where any app or AI agent can charge subscriptions on Solana. Automatic Bags fee sharing built in. Every payment grows the $BAGS ecosystem.

01
Request

Agent or user hits a paid API endpoint

02
402 Response

Server returns HTTP 402 with payment requirements and USDC price

03
Auto-Pay

Client SDK signs a Solana transaction and retries with X-PAYMENT header

04
Settled

Facilitator verifies, settles on-chain, fees split to $BAGS holders

Fee Architecture

Every Payment
Feeds the Ecosystem

Every transaction through BagsPay automatically splits fees via Bags Fee Share V2. $BAGS holders earn from all payment volume across every integrated app.

97% Merchant
2%
1%

2% to $BAGS vault (holder dividends) / 1% protocol treasury / Configurable in BPS

Token

$BAGS

Top 100 holders earn SOL dividends from all BagsPay transaction volume via Bags DividendsBot.

Bags Fee Share V2 Auto Dividends
Integration

10 Lines to
Accept Payments

import { Hono } from "hono"; import { bagspay } from "@bagspay/server"; const app = new Hono(); app.use("/api/premium/*", bagspay({ price: { amount: "0.01", asset: "USDC" }, payTo: "YOUR_WALLET", facilitatorUrl: "https://facilitator.bagspay.fun", })); app.get("/api/premium/data", (c) => c.json({ data: "premium content" }));
Bags Hackathon

Built for 4 Tracks

Bags API Fee Sharing Payments AI Agents