server live on railway
x402 protocol · agentic commerce

Reservations Bali's beach clubs, booked by agents, paid in stablecoins.

Bali Bar x402 is a machine-payable reservation server. Any AI agent — no account, no card, no human in the loop — can request a table at Bali's top venues and settle instantly over USDC on Base or Solana via the x402 protocol.

HTTP/1.1 402
chain: base
Table for two
Finns Beach Club
$4.00
Sunset row · 18:00USDC
agent_id0xC93f…0081
facilitatorx402/base
402 REQUIRED awaiting payment…

Four venues, machine-bookable today

Each reservation is a priced HTTP resource. An agent requests it, receives a 402 with payment terms, pays, and receives the confirmed booking — no forms, no human ops.

01 / BASE
Potato Head
Beach Club · Seminyak. Cliffside pool deck, sunset DJ sets, high-demand weekend slots.
$5per reservation
02 / BASE
Finns Beach Club
Canggu. Infinity pool over the reef, day-bed reservations, peak sunset traffic.
$4per reservation
03 / BASE
La Brisa
Canggu. Driftwood-shack aesthetic, live music, casual beachfront tables.
$3per reservation
04 / BASE
Sky Garden
Seminyak. Multi-floor rooftop club, late-night tables, high table turnover.
$3per reservation

A four-step handshake, end to end

Built on @x402/express, with payment verification routed through a wrapped facilitator client for Base and Solana settlement.

01

Request

Agent GETs a reservation endpoint, e.g. /venues/finns/book.

02

402 Required

Server replies with price, chain, and asset — no booking held yet.

03

Pay

Agent signs a USDC transfer from its wallet, no card or checkout form.

04

Confirmed

Facilitator verifies on-chain, server returns the booking, 200 OK.

agent → bali-bar-x402
# 1. agent requests a table
curl bali-bar-x402-production.up.railway.app/venues/finns/book

← 402 Payment Required
{ "price": "$4.00", "asset": "USDC", "chain": "base" }

# 2. agent pays via x402 facilitator, retries with proof
curl -H "X-PAYMENT: ‹signed-proof›" …/venues/finns/book

← 200 OK — table confirmed, sunset row, 18:00
4
LIVE VENUES ON BASE
$3–5
PER-RESERVATION PRICE, USDC
2
CHAINS SUPPORTED — BASE + SOLANA