---
title: Merchant Introduction
description: Learn how to monetize your APIs and services with x402 on bex.co
keywords:
  [x402, merchant, monetization, blockchain payments, API, bex.co]
last_updated: 2026-08-19
---

# Merchant Introduction

Learn how to sell services with x402 on bex.co

## Monetize Your API with x402

x402 enables you to monetize HTTP APIs and content with on-chain payments while maintaining your existing infrastructure. bex.co provides enterprise-grade x402 facilitator services with Sui-first, multi-network support.

### Key Benefits

- **Zero network fees** for merchants and customers
- **Sub-second payment settlement** on Sui blockchain
- **Multi-network support**: Sui, Ethereum, Base, Polygon, Avalanche, and more
- **Universal compatibility** with any HTTP-capable service
- **Enterprise reliability**: 99.9% uptime SLA

## Architecture Overview

The x402 protocol enables seamless HTTP-native payments with four key components:

### System Components

- **Client**: Initiates requests to protected resources and submits on-chain payments
- **Server (Merchant)**: Your application that defines payment requirements, validates payments, and delivers services
- **bex.co Facilitator**: Handles payment verification and settlement through standardized endpoints
- **Blockchain**: Executes and confirms all payment transactions (Sui, Ethereum, etc.)

### How It Works

1. **Request**: Client requests a protected resource from your server
2. **402 Response**: Your server returns HTTP 402 with payment details
3. **Payment Authorization**: Client signs a payment authorization
4. **Verification**: bex.co facilitator verifies and settles the payment on-chain
5. **Delivery**: Your server receives confirmation and delivers the requested resource

## Getting Started

### Prerequisites

Before implementing x402 on your server:

1. **Get a bex.co API Key**: [Sign up](https://bex.co/dash/) for a free account
2. **Choose your blockchain**: We recommend starting with Sui for fastest settlement
3. **Select your framework**: We provide SDKs for popular frameworks

### Quick Start Guides

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

<Tabs>
  <TabItem value="typescript" label="TypeScript" default>

#### Available Frameworks

- **[Express.js](./x402-express.md)** - Build an x402-enabled Express server with our step-by-step guide
- **[Hono](./x402-hono.md)** - Build an ultra-fast x402-enabled Hono server
- **[Next.js](./x402-nextjs.md)** - Build a full-stack x402-enabled Next.js application

See our [Quick Start Guide](./quickstart.md) for a framework-agnostic implementation.

  </TabItem>
  <TabItem value="python" label="Python">

#### Available Frameworks

- **[FastAPI](./x402-fastapi.md)** - Build a high-performance x402-enabled FastAPI server
- **[Flask](./x402-flask.md)** - Build a lightweight x402-enabled Flask server

See our [Quick Start Guide](./quickstart.md) for a framework-agnostic implementation.

  </TabItem>
  <TabItem value="other" label="Other Languages">

The x402 protocol is language-agnostic and works with any HTTP server. See our [Quick Start Guide](./quickstart.md) for implementation details.

  </TabItem>
</Tabs>

## bex.co Facilitator Configuration

### Production Endpoint

```
https://x402.bex.co
```

### Supported Networks

| Network   | Status      | Settlement Time |
| --------- | ----------- | --------------- |
| Sui       | Coming Soon | &lt;200ms       |
| Ethereum  | Coming Soon | ~12s            |
| Base      | Coming Soon | ~2s             |
| Polygon   | Coming Soon | ~2s             |
| Avalanche | Coming Soon | ~2s             |

### SDK Installation

```bash
# Node.js / TypeScript
npm install x402

# Python
pip install x402
```

## Quick Example

Here's a simple example of protecting an endpoint with x402 using Express.js:

```typescript
import { paymentMiddleware } from "x402-express";

app.use(
  paymentMiddleware(
    process.env.ADDRESS as `0x${string}`,
    {
      "GET /api/premium/data": {
        price: "$0.01",
        network: "sui",
      },
    },
    {
      url: "https://x402.bex.co",
      apiKey: process.env.BEX_API_KEY,
    },
  ),
);

app.get("/api/premium/data", (req, res) => {
  res.json({ data: "Premium content" });
});
```

<div style={{padding: '1rem', background: '#f3f4f6', borderRadius: '0.5rem', marginTop: '1rem'}}>
  <ion-icon name="information-circle" style={{fontSize: '1.25rem', verticalAlign: 'middle', marginRight: '0.5rem'}}></ion-icon>
  <strong>Want the complete implementation?</strong> See our detailed <a href="./x402-express.md">Express.js Integration guide</a> for step-by-step instructions, advanced features, and production deployment tips.
</div>

## Next Steps

1. **[Quick Start Guide](./quickstart.md)** - Get started with x402 in minutes
2. **[Implement a Crypto Paywall](./implement-a-crypto-paywall-with-x402.md)** - Build a complete paywall system
3. **[Join the Waitlist](/x402)** - Get early access to bex.co x402 facilitator

## Additional Resources

- **API Documentation**: Detailed x402 protocol specification (coming soon)
- **SDKs**: TypeScript, Python, Rust, and Go client libraries (coming soon)
- **Dashboard**: Monitor transactions and manage your x402 endpoints at [bex.co/dash](https://bex.co/dash)
- **Support**: Get help on our [Discord](https://discord.gg/4Yfvs2HWey) or [GitHub](https://github.com/BlockEdenHQ)

## Pricing

bex.co charges a small facilitator fee per transaction:

- **Free Tier**: First 1,000 transactions/month free
- **Pro Tier**: \$0.001 per transaction after free tier
- **Enterprise**: Custom pricing for high-volume merchants

[View full pricing details →](https://bex.co/pricing)
