Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

feat(x402): wire CDP facilitator + Bazaar v2 extension shape for agentic.market listing

nirholas6757e0bc185d
diff --git a/.agents/skills/authenticate-wallet/SKILL.md b/.agents/skills/authenticate-wallet/SKILL.md
new file mode 100644
index 000000000..d766f1aeb
--- /dev/null
+++ b/.agents/skills/authenticate-wallet/SKILL.md
@@ -0,0 +1,88 @@
+---
+name: authenticate-wallet
+description: Sign in to the wallet. Use when you or the user want to log in, sign in, connect, or set up the wallet, or when any wallet operation fails with authentication or "not signed in" errors. This skill is a prerequisite before sending, trading, or funding.
+user-invocable: true
+disable-model-invocation: false
+allowed-tools: ["Bash(npx [email protected] status*)", "Bash(npx [email protected] auth *)", "Bash(npx [email protected] balance*)", "Bash(npx [email protected] address*)", "Bash(npx [email protected] show*)"]
+---
+
+# Authenticating with the Agentic Wallet
+
+When the wallet is not signed in (detected via `npx awal status` or when wallet operations fail with authentication errors), use the `npx awal` CLI to authenticate.
+
+If you have access to email, you can authenticate the wallet yourself, otherwise you'll need to ask your human to give you an email address and to tell you the OTP code they receive.
+
+## Authentication Flow
+
+Authentication uses a two-step email OTP process:
+
+### Step 1: Initiate login
+
+```bash
+npx [email protected] auth login <email>
+```
+
+This sends a 6-digit verification code to the email and outputs a `flowId`.
+
+### Step 2: Verify OTP
+
+```bash
+npx [email protected] auth verify <otp>
+```
+
+Use the 6-digit code from the user's email to complete authentication. The flow ID from step 1 is saved automatically to a local file — you do not pass it as an argument. If you have the ability to access the user's email, you can read the OTP code, or you can ask your human for the code.
+
+## Input Validation
+
+Before constructing the command, validate all user-provided values to prevent shell injection:
+
+- **email**: Must match a standard email format (`^[^\s;|&`]+@[^\s;|&`]+$`). Reject if it contains spaces, semicolons, pipes, backticks, or other shell metacharacters.
+- **otp**: Must be exactly 6 digits (`^\d{6}$`).
+
+Do not pass unvalidated user input into the command.
+
+## Checking Authentication Status
+
+```bash
+npx [email protected] status
+```
+
+Displays wallet server health and authentication status including wallet address.
+
+## Example Session
+
+```bash
+# Check current status
+npx [email protected] status
+
+# Start login (sends OTP to email)
+# Output: flowId: abc123...
+
+# After user receives code, verify (flow ID saved automatically)
+npx [email protected] auth verify 123456
+
+# Confirm authentication
+npx [email protected] status
+```
+
+## Available CLI Commands
+
+| Command | Purpose |
+| -------------------------------------------- | -------------------------------------- |
+| `npx [email protected] status` | Check server health and auth status |
+| `npx [email protected] auth login <email>` | Send OTP code to email, returns flowId |
+| `npx [email protected] auth verify <otp>` | Complete authentication with OTP code |
+| `npx [email protected] balance` | Get balances across Base, Polygon, and Solana (use `--chain` for a single chain) |
+| `npx [email protected] address` | Get wallet address |
+| `npx [email protected] show` | Open the wallet companion window |
+
+## JSON Output
+
+All commands support `--json` for machine-readable output:
+
+```bash
+npx [email protected] status --json
+npx [email protected] auth login [email protected] --json
+npx [email protected] auth verify <otp> --json
+```
diff --git a/.agents/skills/fund/SKILL.md b/.agents/skills/fund/SKILL.md
new file mode 100644
index 000000000..c5370963d
--- /dev/null
+++ b/.agents/skills/fund/SKILL.md
@@ -0,0 +1,75 @@
+---
+name: fund
+description: Add money to the wallet. Use when you or the user want to fund, deposit, top up, load, buy USDC, add funds, onramp, or get USDC. Also use when the wallet has insufficient balance for a send or trade operation, or when someone asks "how do I get USDC?"
+user-invocable: true
+disable-model-invocation: false
+allowed-tools: ["Bash(npx [email protected] status*)", "Bash(npx [email protected] show*)", "Bash(npx [email protected] address*)", "Bash(npx [email protected] balance*)"]
+---
+
+# Funding the Wallet
+
+Use the wallet companion app to fund the wallet with USDC via Coinbase Onramp. This supports multiple payment methods including Apple Pay, debit cards, bank transfers, and funding from a Coinbase account.
+
+## Confirm wallet is initialized and authed
+
+```bash
+npx [email protected] status
+```
+
+If the wallet is not authenticated, refer to the `authenticate-wallet` skill.
+
+## Opening the Funding Interface
+
+```bash
+```
+
+This opens the wallet companion window where users can:
+
+1. Select a preset amount ($10, $20, $50) or enter a custom amount
+2. Choose their preferred payment method
+3. Complete the purchase through Coinbase Pay
+
+## Payment Methods
+
+| Method | Description |
+| --------- | ---------------------------------------------- |
+| Apple Pay | Fast checkout with Apple Pay (where available) |
+| Coinbase | Transfer from existing Coinbase account |
+| Card | Debit card payment |
+| Bank | ACH bank transfer |
+
+## Alternative
+
+You can also ask your human to send usdc on Base to your wallet address. You can find your wallet address buy running the following:
+
+```bash
+npx [email protected] address
+```
+
+## Prerequisites
+
+- Must be authenticated (`npx [email protected] status` to check)
+- Coinbase Onramp is available in supported regions (US, etc.)
+
+## Flow
+
+1. Run `npx [email protected] show` to open the wallet UI
+2. Instruct the user to click the Fund button
+3. User selects amount and payment method in the UI
+4. User completes payment through Coinbase Pay (opens in browser)
+5. USDC is deposited to the wallet once payment confirms
+
+## Checking Balance After Funding
+
+```bash
+# Check updated balance
+npx [email protected] balance
+```
+
+## Notes
+
+- Funding goes through Coinbase's regulated onramp
+- Processing time varies by payment method (instant for card/Apple Pay, 1-3 days for bank)
+- Funds are deposited as USDC on Base network
+- If funding is not available, users can also send USDC on Base directly to the wallet address
diff --git a/.agents/skills/monetize-service/SKILL.md b/.agents/skills/monetize-service/SKILL.md
new file mode 100644
index 000000000..9fb0769a0
--- /dev/null
+++ b/.agents/skills/monetize-service/SKILL.md
@@ -0,0 +1,407 @@
+---
+name: monetize-service
+description: Build and deploy a paid API that other agents can pay to use via x402. Use when you or the user want to monetize an API, make money, earn money, offer a service, sell a service to other agents, charge for endpoints, create a paid endpoint, or set up a paid service. Covers "make money by offering an endpoint", "sell a service", "monetize your data", "create a paid API".
+user-invocable: true
+disable-model-invocation: false
+allowed-tools: ["Bash(npx [email protected] status*)", "Bash(npx [email protected] address*)", "Bash(npx [email protected] x402 details *)", "Bash(npx [email protected] x402 pay *)", "Bash(npm *)", "Bash(node *)", "Bash(curl *)", "Bash(mkdir *)"]
+---
+
+# Build an x402 Payment Server
+
+Create an Express server that charges USDC for API access using the x402 payment protocol. Callers pay per-request in USDC on Base — no accounts, API keys, or subscriptions needed. Your service is automatically discoverable by other agents via the x402 Bazaar.
+
+## How It Works
+
+x402 is an HTTP-native payment protocol. When a client hits a protected endpoint without paying, the server returns HTTP 402 with payment requirements. The client signs a USDC payment and retries with a payment header. The facilitator verifies and settles the payment, and the server returns the response. Services register with the x402 Bazaar so other agents can discover and pay for them automatically.
+
+## Confirm wallet is initialized and authed
+
+```bash
+npx [email protected] status
+```
+
+If the wallet is not authenticated, refer to the `authenticate-wallet` skill.
+
+## Step 1: Get the Payment Address
+
+Run this to get the wallet address that will receive payments:
+
+```bash
+npx [email protected] address
+```
+
+Use this address as the `payTo` value.
+
+## Step 2: Set Up the Project
+
+```bash
+mkdir x402-server && cd x402-server
+npm init -y
+npm install express @x402/express @x402/core @x402/evm @x402/extensions
+```
+
+Create `index.js`:
+
+```js
+const express = require("express");
+const { paymentMiddleware } = require("@x402/express");
+const { x402ResourceServer, HTTPFacilitatorClient } = require("@x402/core/server");
+const { ExactEvmScheme } = require("@x402/evm/exact/server");
+
+const app = express();
+app.use(express.json());
+
+const PAY_TO = "<address from step 1>";
+
+// Create facilitator client and x402 resource server
+const facilitator = new HTTPFacilitatorClient({ url: "https://x402.org/facilitator" });
+const server = new x402ResourceServer(facilitator);
+server.register("eip155:8453", new ExactEvmScheme());
+
+// x402 payment middleware — protects routes below
+app.use(
+ paymentMiddleware(
+ {
+ "GET /api/example": {
+ accepts: {
+ scheme: "exact",
+ price: "$0.01",
+ network: "eip155:8453",
+ payTo: PAY_TO,
+ },
+ description: "Description of what this endpoint returns",
+ mimeType: "application/json",
+ },
+ },
+ server,
+ ),
+);
+
+// Protected endpoint
+app.get("/api/example", (req, res) => {
+ res.json({ data: "This costs $0.01 per request" });
+});
+
+app.listen(3000, () => console.log("Server running on port 3000"));
+```
+
+## Step 3: Run It
+
+```bash
+node index.js
+```
+
+Test with curl — you should get a 402 response with payment requirements:
+
+```bash
+curl -i http://localhost:3000/api/example
+```
+
+## API Reference
+
+### paymentMiddleware(routes, server)
+
+Creates Express middleware that enforces x402 payments.
+
+| Parameter | Type | Description |
+| --------- | -------------------- | ---------------------------------------------------- |
+| `routes` | object | Route config mapping route patterns to payment config |
+| `server` | x402ResourceServer | Pre-configured x402 resource server instance |
+
+### x402ResourceServer
+
+Created with a facilitator client. Register payment schemes and extensions before passing to middleware.
+
+```js
+const { x402ResourceServer, HTTPFacilitatorClient } = require("@x402/core/server");
+const { ExactEvmScheme } = require("@x402/evm/exact/server");
+
+const facilitator = new HTTPFacilitatorClient({ url: "https://x402.org" });
+const server = new x402ResourceServer(facilitator);
+server.register("eip155:8453", new ExactEvmScheme());
+```
+
+| Method | Description |
+| --------------------------- | --------------------------------------------------------- |
+| `register(network, scheme)` | Register a payment scheme for a CAIP-2 network identifier |
+
+### Route Config
+
+Each key in the routes object is `"METHOD /path"`. The value is a config object:
+
+```js
+{
+ "GET /api/data": {
+ accepts: {
+ scheme: "exact",
+ price: "$0.05",
+ network: "eip155:8453",
+ payTo: "0x...",
+ },
+ description: "Human-readable description of the endpoint",
+ mimeType: "application/json",
+ extensions: {
+ ...declareDiscoveryExtension({
+ output: {
+ example: { result: "example response" },
+ schema: {
+ properties: {
+ result: { type: "string" },
+ },
+ },
+ },
+ }),
+ },
+ },
+}
+```
+
+### Accepts Config Fields
+
+The `accepts` field can be a single object or an array (for multiple payment options):
+
+| Field | Type | Description |
+| --------- | ------ | -------------------------------------------------- |
+| `scheme` | string | Payment scheme: `"exact"` |
+| `price` | string | USDC price (e.g. `"$0.01"`, `"$1.00"`) |
+| `network` | string | CAIP-2 network identifier (e.g. `"eip155:8453"`) |
+| `payTo` | string | Ethereum address (0x...) to receive USDC payments |
+
+### Route-Level Fields
+
+| Field | Type | Description |
+| ------------------ | ------- | -------------------------------------------------- |
+| `accepts` | object or array | Payment requirements (single or multiple) |
+| `description` | string? | What this endpoint does (shown to clients) |
+| `mimeType` | string? | MIME type of the response |
+| `extensions` | object? | Extensions config (e.g. Bazaar discovery) |
+
+### Discovery Extension
+
+The `declareDiscoveryExtension` function registers your endpoint with the x402 Bazaar so other agents can discover it:
+
+```js
+const { declareDiscoveryExtension } = require("@x402/extensions/bazaar");
+
+extensions: {
+ ...declareDiscoveryExtension({
+ output: {
+ example: { /* example response body */ },
+ schema: {
+ properties: {
+ /* JSON schema of the response */
+ },
+ },
+ },
+ }),
+}
+```
+
+| Field | Type | Description |
+| ---------------- | ------ | ---------------------------------------------- |
+| `output.example` | object | Example response body for the endpoint |
+| `output.schema` | object | JSON schema describing the response format |
+
+### Supported Networks
+
+| Network | Description |
+| ---------------- | -------------------------------- |
+| `eip155:8453` | Base mainnet (real USDC) |
+| `eip155:84532` | Base Sepolia testnet (test USDC) |
+
+## Patterns
+
+### Multiple endpoints with different prices
+
+```js
+app.use(
+ paymentMiddleware(
+ {
+ "GET /api/cheap": {
+ accepts: {
+ scheme: "exact",
+ price: "$0.001",
+ network: "eip155:8453",
+ payTo: PAY_TO,
+ },
+ description: "Inexpensive data lookup",
+ },
+ "GET /api/expensive": {
+ accepts: {
+ scheme: "exact",
+ price: "$1.00",
+ network: "eip155:8453",
+ payTo: PAY_TO,
+ },
+ description: "Premium data access",
+ },
+ "POST /api/query": {
+ accepts: {
+ scheme: "exact",
+ price: "$0.25",
+ network: "eip155:8453",
+ payTo: PAY_TO,
+ },
+ description: "Run a custom query",
+ },
+ },
+ server,
+ ),
+);
+
+app.get("/api/cheap", (req, res) => { /* ... */ });
+app.get("/api/expensive", (req, res) => { /* ... */ });
+app.post("/api/query", (req, res) => { /* ... */ });
+```
+
+### Wildcard routes
+
+```js
+app.use(
+ paymentMiddleware(
+ {
+ "GET /api/*": {
+ accepts: {
+ scheme: "exact",
+ price: "$0.05",
+ network: "eip155:8453",
+ payTo: PAY_TO,
+ },
+ description: "API access",
+ },
+ },
+ server,
+ ),
+);
+
+app.get("/api/users", (req, res) => { /* ... */ });
+app.get("/api/posts", (req, res) => { /* ... */ });
+```
+
+### Health check (no payment)
+
+Register free endpoints before the payment middleware:
+
+```js
+app.get("/health", (req, res) => res.json({ status: "ok" }));
+
+// Payment middleware only applies to routes registered after it
+app.use(paymentMiddleware({ /* ... */ }, server));
+app.get("/api/data", (req, res) => { /* ... */ });
+```
+
+### POST with body and discovery extension
+
+```js
+app.use(
+ paymentMiddleware(
+ {
+ "POST /api/analyze": {
+ accepts: {
+ scheme: "exact",
+ price: "$0.10",
+ network: "eip155:8453",
+ payTo: PAY_TO,
+ },
+ description: "Analyze text sentiment",
+ mimeType: "application/json",
+ extensions: {
+ ...declareDiscoveryExtension({
+ output: {
+ example: { sentiment: "positive", score: 0.95 },
+ schema: {
+ properties: {
+ sentiment: { type: "string" },
+ score: { type: "number" },
+ },
+ },
+ },
+ }),
+ },
+ },
+ },
+ server,
+ ),
+);
+
+app.post("/api/analyze", (req, res) => {
+ const { text } = req.body;
+ // ... your logic
+ res.json({ sentiment: "positive", score: 0.95 });
+});
+```
+
+### Multiple payment options per endpoint
+
+Accept payments on multiple networks for the same endpoint:
+
+```js
+"GET /api/data": {
+ accepts: [
+ {
+ scheme: "exact",
+ price: "$0.01",
+ network: "eip155:8453",
+ payTo: EVM_ADDRESS,
+ },
+ {
+ scheme: "exact",
+ price: "$0.01",
+ network: "eip155:84532",
+ payTo: EVM_ADDRESS,
+ },
+ ],
+ description: "Data endpoint accepting Base mainnet or testnet",
+}
+```
+
+### Using the CDP facilitator (authenticated)
+
+For production use with the Coinbase facilitator (supports mainnet):
+
+```bash
+npm install @coinbase/x402
+```
+
+```js
+const { facilitator } = require("@coinbase/x402");
+const { HTTPFacilitatorClient } = require("@x402/core/server");
+
+const facilitatorClient = new HTTPFacilitatorClient(facilitator);
+const server = new x402ResourceServer(facilitatorClient);
+server.register("eip155:8453", new ExactEvmScheme());
+```
+
+This requires `CDP_API_KEY_ID` and `CDP_API_KEY_SECRET` environment variables. Get these from https://portal.cdp.coinbase.com.
+
+## Testing with the pay-for-service Skill
+
+Once the server is running, use the `pay-for-service` skill to test payments:
+
+```bash
+# Check the endpoint's payment requirements
+npx [email protected] x402 details http://localhost:3000/api/example
+
+# Make a paid request
+npx [email protected] x402 pay http://localhost:3000/api/example
+```
+
+## Pricing Guidelines
+
+| Use Case | Suggested Price |
+| ---------------------- | --------------- |
+| Simple data lookup | $0.001 - $0.01 |
+| API proxy / enrichment | $0.01 - $0.10 |
+| Compute-heavy query | $0.10 - $0.50 |
+| AI inference | $0.05 - $1.00 |
+
+## Checklist
+
+- [ ] Get wallet address with `npx [email protected] address`
+- [ ] Install `express`, `@x402/express`, `@x402/core`, `@x402/evm`, and `@x402/extensions`
+- [ ] Create `x402ResourceServer` with facilitator client and register `ExactEvmScheme` for `eip155:8453`
+- [ ] Define routes with prices, descriptions, and discovery extensions (Bazaar auto-registers when routes declare it)
+- [ ] Register payment middleware before protected routes
+- [ ] Keep health/status endpoints before payment middleware
+- [ ] Test with `curl` (should get 402) and `npx [email protected] x402 pay` (should get 200)
+- [ ] Announce your service so other agents can find and use it
diff --git a/.agents/skills/pay-for-service/SKILL.md b/.agents/skills/pay-for-service/SKILL.md
new file mode 100644
index 000000000..d7c078d4b
--- /dev/null
+++ b/.agents/skills/pay-for-service/SKILL.md
@@ -0,0 +1,85 @@
+---
+name: pay-for-service
+description: Make a paid API request to an x402 endpoint with automatic USDC payment. Use when you or the user want to call a paid API, make an x402 request, use a paid service, or pay for an API call. Use after finding a service with search-for-service.
+user-invocable: true
+disable-model-invocation: false
+allowed-tools: ["Bash(npx [email protected] status*)", "Bash(npx [email protected] balance*)", "Bash(npx [email protected] x402 pay *)"]
+---
+
+# Making Paid x402 Requests
+
+Use the `npx [email protected] x402 pay` command to call paid API endpoints with automatic USDC payment on Base.
+
+## Confirm wallet is initialized and authed
+
+```bash
+npx [email protected] status
+```
+
+If the wallet is not authenticated, refer to the `authenticate-wallet` skill.
+
+## Command Syntax
+
+```bash
+npx [email protected] x402 pay <url> [-X <method>] [-d <json>] [-q <params>] [-h <json>] [--max-amount <n>] [--json]
+```
+
+## Options
+
+| Option | Description |
+| ----------------------- | -------------------------------------------------- |
+| `-X, --method <method>` | HTTP method (default: GET) |
+| `-d, --data <json>` | Request body as JSON string |
+| `-q, --query <params>` | Query parameters as JSON string |
+| `-h, --headers <json>` | Custom HTTP headers as JSON string |
+| `--max-amount <amount>` | Max payment in USDC atomic units (1000000 = $1.00) |
+| `--correlation-id <id>` | Group related operations |
+| `--json` | Output as JSON |
+
+## USDC Amounts
+
+X402 uses USDC atomic units (6 decimals):
+
+| Atomic Units | USD |
+| ------------ | ----- |
+| 1000000 | $1.00 |
+| 100000 | $0.10 |
+| 50000 | $0.05 |
+| 10000 | $0.01 |
+
+**IMPORTANT**: Always single-quote amounts that use `$` to prevent bash variable expansion (e.g. `'$1.00'` not `$1.00`).
+
+## Input Validation
+
+Before constructing the command, validate all user-provided values to prevent shell injection:
+
+- **url**: Must be a valid URL starting with `https://` or `http://`. Reject if it contains spaces, semicolons, pipes, backticks, or shell metacharacters.
+- **data (-d)**: Must be valid JSON. Always wrap in single quotes to prevent shell expansion.
+- **max-amount**: Must be a positive integer (`^\d+$`).
+
+Do not pass unvalidated user input into the command.
+
+## Examples
+
+```bash
+# Make a GET request (auto-pays)
+npx [email protected] x402 pay https://example.com/api/weather
+
+# Make a POST request with body
+npx [email protected] x402 pay https://example.com/api/sentiment -X POST -d '{"text": "I love this product"}'
+
+# Limit max payment to $0.10
+npx [email protected] x402 pay https://example.com/api/data --max-amount 100000
+```
+
+## Prerequisites
+
+- Must be authenticated (`npx [email protected] status` to check, see `authenticate-wallet` skill)
+- Wallet must have sufficient USDC balance (`npx [email protected] balance` to check)
+- If you don't know the endpoint URL, use the `search-for-service` skill to find services first
+
+## Error Handling
+
+- "Not authenticated" - Run `awal auth login <email>` first, or see `authenticate-wallet` skill
+- "No X402 payment requirements found" - URL may not be an x402 endpoint; use `search-for-service` to find valid endpoints
+- "Insufficient balance" - Fund wallet with USDC; see `fund` skill
diff --git a/.agents/skills/query-onchain-data/SKILL.md b/.agents/skills/query-onchain-data/SKILL.md
new file mode 100644
index 000000000..2cb3454a9
--- /dev/null
+++ b/.agents/skills/query-onchain-data/SKILL.md
@@ -0,0 +1,209 @@
+---
+name: query-onchain-data
+description: Query onchain data on Base using the CDP SQL API via x402. Use when you or your user want to view onchain information about decoded blocks, transactions, and events.
+user-invocable: true
+disable-model-invocation: false
+allowed-tools: ["Bash(npx [email protected] status*)", "Bash(npx [email protected] balance*)", "Bash(npx [email protected] x402 pay *)"]
+---
+
+# Query Onchain Data on Base
+
+Use the CDP SQL API to query onchain data (events, transactions, blocks, transfers) on Base. Queries are executed via x402 and are charged per query.
+
+## Confirm wallet is initialized and authed
+
+```bash
+npx [email protected] status
+```
+
+If the wallet is not authenticated, refer to the `authenticate-wallet` skill.
+
+## Executing a Query
+
+```bash
+npx [email protected] x402 pay https://x402.cdp.coinbase.com/platform/v2/data/query/run -X POST -d '{"sql": "<YOUR_QUERY>"}' --json
+```
+
+**IMPORTANT**: Always single-quote the `-d` JSON string to prevent bash variable expansion.
+
+## Input Validation
+
+Before constructing the command, validate inputs to prevent shell injection:
+
+- **SQL query**: Always embed the query inside a single-quoted JSON string (`-d '{"sql": "..."}'`). Never use double quotes for the outer `-d` wrapper, as this enables shell expansion of `$` and backticks within the query.
+- **Addresses**: Must be valid `0x` hex addresses (`^0x[0-9a-fA-F]{40}$`). Reject any value containing shell metacharacters.
+
+Do not pass unvalidated user input into the command.
+
+## CRITICAL: Indexed Fields
+
+Queries against `base.events` **MUST** filter on indexed fields to avoid full table scans. The indexed fields are:
+
+| Indexed Field | Use For |
+| --- | --- |
+| `event_signature` | Filter by event type. Use this instead of `event_name` for performance. |
+| `address` | Filter by contract address. |
+| `block_timestamp` | Filter by time range. |
+
+**Always include at least one indexed field in your WHERE clause.** Combining all three gives the best performance.
+
+## CoinbaseQL Syntax
+
+CoinbaseQL is a SQL dialect based on ClickHouse. Supported features:
+
+- **Clauses**: SELECT (DISTINCT), FROM, WHERE, GROUP BY, ORDER BY (ASC/DESC), LIMIT, WITH (CTEs), UNION (ALL/DISTINCT)
+- **Joins**: INNER, LEFT, RIGHT, FULL with ON
+- **Operators**: `=`, `!=`, `<>`, `<`, `>`, `<=`, `>=`, `+`, `-`, `*`, `/`, `%`, AND, OR, NOT, BETWEEN, IN, IS NULL, LIKE
+- **Expressions**: CASE/WHEN/THEN/ELSE, CAST (both `CAST()` and `::` syntax), subqueries, array/map indexing with `[]`, dot notation
+- **Literals**: Array `[...]`, Map `{...}`, Tuple `(...)`
+- **Functions**: Standard SQL functions, lambda functions with `->` syntax
+
+## Available Tables
+
+### base.events
+
+Decoded event logs from smart contract interactions. **This is the primary table for most queries.**
+
+| Column | Type | Description |
+| --- | --- | --- |
+| log_id | String | Unique log identifier |
+| block_number | UInt64 | Block number |
+| block_hash | FixedString(66) | Block hash |
+| block_timestamp | DateTime64(3, 'UTC') | Block timestamp (**INDEXED**) |
+| transaction_hash | FixedString(66) | Transaction hash |
+| transaction_to | FixedString(42) | Transaction recipient |
+| transaction_from | FixedString(42) | Transaction sender |
+| log_index | UInt32 | Log index within block |
+| address | FixedString(42) | Contract address (**INDEXED**) |
+| topics | Array(FixedString(66)) | Event topics |
+| event_name | LowCardinality(String) | Decoded event name |
+| event_signature | LowCardinality(String) | Event signature (**INDEXED** - prefer over event_name) |
+| parameters | Map(String, Variant(Bool, Int256, String, UInt256)) | Decoded event parameters |
+| parameter_types | Map(String, String) | ABI types for parameters |
+| action | Enum8('removed' = -1, 'added' = 1) | Added or removed (reorg) |
+
+### base.transactions
+
+Complete transaction data.
+
+| Column | Type | Description |
+| --- | --- | --- |
+| block_number | UInt64 | Block number |
+| block_hash | String | Block hash |
+| transaction_hash | String | Transaction hash |
+| transaction_index | UInt64 | Index in block |
+| from_address | String | Sender address |
+| to_address | String | Recipient address |
+| value | String | Value transferred (wei) |
+| gas | UInt64 | Gas limit |
+| gas_price | UInt64 | Gas price |
+| input | String | Input data |
+| nonce | UInt64 | Sender nonce |
+| type | UInt64 | Transaction type |
+| max_fee_per_gas | UInt64 | EIP-1559 max fee |
+| max_priority_fee_per_gas | UInt64 | EIP-1559 priority fee |
+| chain_id | UInt64 | Chain ID |
+| v | String | Signature v |
+| r | String | Signature r |
+| s | String | Signature s |
+| is_system_tx | Bool | System transaction flag |
+| max_fee_per_blob_gas | String | Blob gas fee |
+| blob_versioned_hashes | Array(String) | Blob hashes |
+| timestamp | DateTime | Block timestamp |
+| action | Int8 | Added (1) or removed (-1) |
+
+### base.blocks
+
+Block-level metadata.
+
+| Column | Type | Description |
+| --- | --- | --- |
+| block_number | UInt64 | Block number |
+| block_hash | String | Block hash |
+| parent_hash | String | Parent block hash |
+| timestamp | DateTime | Block timestamp |
+| miner | String | Block producer |
+| nonce | UInt64 | Block nonce |
+| sha3_uncles | String | Uncles hash |
+| transactions_root | String | Transactions merkle root |
+| state_root | String | State merkle root |
+| receipts_root | String | Receipts merkle root |
+| logs_bloom | String | Bloom filter |
+| gas_limit | UInt64 | Block gas limit |
+| gas_used | UInt64 | Gas used in block |
+| base_fee_per_gas | UInt64 | Base fee per gas |
+| total_difficulty | String | Total chain difficulty |
+| size | UInt64 | Block size in bytes |
+| extra_data | String | Extra data field |
+| mix_hash | String | Mix hash |
+| withdrawals_root | String | Withdrawals root |
+| parent_beacon_block_root | String | Beacon chain parent root |
+| blob_gas_used | UInt64 | Blob gas used |
+| excess_blob_gas | UInt64 | Excess blob gas |
+| transaction_count | UInt64 | Number of transactions |
+| action | Int8 | Added (1) or removed (-1) |
+
+## Example Queries
+
+### Get recent USDC Transfer events with decoded parameters
+
+```sql
+SELECT
+ parameters['from'] AS sender,
+ parameters['to'] AS to,
+ parameters['value'] AS amount,
+ address AS token_address
+FROM base.events
+WHERE
+ event_signature = 'Transfer(address,address,uint256)'
+ AND address = '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
+ AND block_timestamp >= now() - INTERVAL 7 DAY
+LIMIT 10
+```
+
+### Get transactions from a specific address
+
+```bash
+npx [email protected] x402 pay https://x402.cdp.coinbase.com/platform/v2/data/query/run -X POST -d '{"sql": "SELECT transaction_hash, to_address, value, gas, timestamp FROM base.transactions WHERE from_address = lower('\''0xYOUR_ADDRESS'\'') AND timestamp >= now() - INTERVAL 1 DAY LIMIT 10"}' --json
+```
+
+### Count events by type for a contract in the last hour
+
+```bash
+npx [email protected] x402 pay https://x402.cdp.coinbase.com/platform/v2/data/query/run -X POST -d '{"sql": "SELECT event_signature, count(*) as cnt FROM base.events WHERE address = lower('\''0xCONTRACT_ADDRESS'\'') AND block_timestamp >= now() - INTERVAL 1 HOUR GROUP BY event_signature ORDER BY cnt DESC LIMIT 20"}' --json
+```
+
+### Get latest block info
+
+```bash
+npx [email protected] x402 pay https://x402.cdp.coinbase.com/platform/v2/data/query/run -X POST -d '{"sql": "SELECT block_number, timestamp, transaction_count, gas_used FROM base.blocks ORDER BY block_number DESC LIMIT 1"}' --json
+```
+
+## Common Contract Addresses (Base)
+
+| Token | Address |
+| --- | --- |
+| USDC | `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913` |
+| WETH | `0x4200000000000000000000000000000000000006` |
+
+## Best Practices
+
+1. **Always filter on indexed fields** (`event_signature`, `address`, `block_timestamp`) in `base.events` queries.
+2. **Never use `SELECT *`** - specify only the columns you need.
+3. **Always include a `LIMIT`** clause to bound result size.
+4. **Use `event_signature` instead of `event_name`** for filtering - it is indexed and much faster.
+5. **Use time-bounded queries** with `block_timestamp` to narrow the scan range.
+6. **Always wrap address values in `lower()`** - the database stores lowercase addresses but users may provide checksummed (mixed-case) addresses. Use `address = lower('0xAbC...')` not `address = '0xAbC...'`.
+7. **Common event signatures**: `Transfer(address,address,uint256)`, `Approval(address,address,uint256)`, `Swap(address,uint256,uint256,uint256,uint256,address)`.
+
+## Prerequisites
+
+- Must be authenticated (`npx [email protected] status` to check, see `authenticate-wallet` skill)
+- Wallet must have sufficient USDC balance (`npx [email protected] balance` to check)
+- Each query costs $0.10 (100000 USDC atomic units)
+
+## Error Handling
+
+- "Not authenticated" - Run `awal auth login <email>` first, or see `authenticate-wallet` skill
+- "Insufficient balance" - Fund wallet with USDC; see `fund` skill
+- Query timeout or error - Ensure you are filtering on indexed fields and using a LIMIT
diff --git a/.agents/skills/search-for-service/SKILL.md b/.agents/skills/search-for-service/SKILL.md
new file mode 100644
index 000000000..f122234b8
--- /dev/null
+++ b/.agents/skills/search-for-service/SKILL.md
@@ -0,0 +1,86 @@
+---
+name: search-for-service
+description: Search and browse the x402 bazaar marketplace for paid API services. Use when you or the user want to find available services, see what's available, discover APIs, or need an external service to accomplish a task. Also use as a fallback when no other skill clearly matches — search the bazaar to see if a paid service exists. Covers "what can I do?", "find me an API for...", "what services are available?", "search for...", "browse the bazaar".
+user-invocable: true
+disable-model-invocation: false
+allowed-tools: ["Bash(npx [email protected] x402 bazaar *)", "Bash(npx [email protected] x402 details *)"]
+---
+
+# Searching the x402 Bazaar
+
+Use the `npx [email protected] x402` commands to discover and inspect paid API endpoints available on the x402 bazaar marketplace. No authentication or balance is required for searching.
+
+## Commands
+
+### Search the Bazaar
+
+Find paid services by keyword using CDP's vector search:
+
+```bash
+npx [email protected] x402 bazaar search <query> [-k <n>] [--network <network>] [--scheme <scheme>] [--max-price <price>] [--json]
+```
+
+| Option | Description |
+| ----------------------- | ------------------------------------------------------------------------ |
+| `-k, --top <n>` | Number of results, 1–20 (default: 20) |
+| `--network <name>` | Filter by chain (base, base-sepolia, polygon, solana, solana-devnet) |
+| `--scheme <scheme>` | Filter by payment scheme: `exact` or `upto` |
+| `--max-price <price>` | Maximum price in USD (e.g. `0.01`) |
+| `--asset <address>` | Filter by payment asset address |
+| `--pay-to <address>` | Filter by recipient wallet address |
+| `--extensions <type>` | Filter by extension type (e.g. `outputSchema`, `bazaar`) |
+| `--json` | Output as JSON |
+
+### List Bazaar Resources
+
+Browse all available resources:
+
+```bash
+npx [email protected] x402 bazaar list [--network <network>] [--full] [--refresh] [--json]
+```
+
+| Option | Description |
+| ------------------ | -------------------------------------------------------------------- |
+| `--network <name>` | Filter by chain (base, base-sepolia, polygon, solana, solana-devnet) |
+| `--full` | Show complete details including schemas |
+| `--refresh` | Re-fetch resource index from CDP API |
+| `--json` | Output as JSON |
+
+### Discover Payment Requirements
+
+Inspect an endpoint's x402 payment requirements without paying:
+
+```bash
+npx [email protected] x402 details <url> [--json]
+```
+
+Auto-detects the correct HTTP method (GET, POST, PUT, DELETE, PATCH) by trying each until it gets a 402 response, then displays price, accepted payment schemes, network, and input/output schemas.
+
+## Examples
+
+```bash
+# Search for weather-related paid APIs
+npx [email protected] x402 bazaar search "weather"
+
+# Search with more results
+npx [email protected] x402 bazaar search "sentiment analysis" -k 10
+
+# Browse all bazaar resources with full details
+npx [email protected] x402 bazaar list --full
+
+# Check what an endpoint costs
+npx [email protected] x402 details https://example.com/api/weather
+```
+
+## Prerequisites
+
+- No authentication needed for search, list, or details commands
+
+## Next Steps
+
+Once you've found a service you want to use, use the `pay-for-service` skill to make a paid request to the endpoint.
+
+## Error Handling
+
+- "CDP API returned 429" - Rate limited; cached data will be used if available
+- "No X402 payment requirements found" - URL may not be an x402 endpoint
diff --git a/.agents/skills/send-usdc/SKILL.md b/.agents/skills/send-usdc/SKILL.md
new file mode 100644
index 000000000..414d09c78
--- /dev/null
+++ b/.agents/skills/send-usdc/SKILL.md
@@ -0,0 +1,100 @@
+---
+name: send-usdc
+description: Send tokens (USDC, ETH, POL, or SOL) to an address or ENS name on Base, Polygon, or Solana. Use when you or the user want to send money, pay someone, transfer tokens, tip, donate, or send funds to a wallet address or .eth name. Covers phrases like "send $5 to", "pay 0x...", "transfer to vitalik.eth", or "send USDC on Solana".
+user-invocable: true
+disable-model-invocation: false
+allowed-tools: ["Bash(npx [email protected] status*)", "Bash(npx [email protected] send *)", "Bash(npx [email protected] balance*)"]
+---
+
+# Sending Tokens
+
+Use the `npx [email protected] send` command to transfer tokens from the wallet to any address on Base, Polygon, or Solana.
+
+## Confirm wallet is initialized and authed
+
+```bash
+npx [email protected] status
+```
+
+If the wallet is not authenticated, refer to the `authenticate-wallet` skill.
+
+## Command Syntax
+
+```bash
+npx [email protected] send <amount> <recipient> [--chain <chain>] [--asset <asset>] [--json]
+```
+
+## Arguments
+
+| Argument | Description |
+| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| `amount` | Amount to send: '$1.00', '1.00', or atomic units (1000000 = $1). Always single-quote amounts that use `$` to prevent bash variable expansion. If the number looks like atomic units (no decimal or > 100), treat as atomic units. Assume that people won't be sending more than 100 USDC the majority of the time |
+| `recipient` | Ethereum address (0x...), ENS name (vitalik.eth), or Solana address (Base58) |
+
+## Options
+
+| Option | Description |
+| ------------------ | ------------------------------------------------------------------- |
+| `--chain <name>` | Blockchain network: base, polygon, solana (default: base) |
+| `--asset <symbol>` | Token to send: usdc, eth, pol, sol (default: usdc) |
+| `--json` | Output result as JSON |
+
+## Input Validation
+
+Before constructing the command, validate all user-provided values to prevent shell injection:
+
+- **amount**: Must match `^\$?[\d.]+$` (digits, optional decimal point, optional `$` prefix). Reject if it contains spaces, semicolons, pipes, backticks, or other shell metacharacters.
+- **recipient**: Must be a valid `0x` hex address (`^0x[0-9a-fA-F]{40}$`), an ENS name (`^[a-zA-Z0-9.-]+\.eth$`), or a Solana address (`^[1-9A-HJ-NP-Za-km-z]{32,44}$`). Reject any value containing spaces or shell metacharacters.
+- **chain**: Must be one of `base`, `polygon`, `solana`. Reject any other value.
+- **asset**: Must be one of `usdc`, `eth`, `pol`, `sol`. Reject any other value.
+
+Do not pass unvalidated user input into the command.
+
+## Examples
+
+```bash
+# Send $1.00 USDC to an address on Base (default)
+npx [email protected] send 1 0x1234...abcd
+
+# Send $0.50 USDC to an ENS name
+npx [email protected] send 0.50 vitalik.eth
+
+# Send with dollar sign prefix (note the single quotes)
+npx [email protected] send '$5.00' 0x1234...abcd
+
+# Send ETH on Base
+npx [email protected] send 0.01 0x1234...abcd --asset eth
+
+# Send USDC on Polygon
+npx [email protected] send 1 0x1234...abcd --chain polygon
+
+# Send USDC to a Solana address
+npx [email protected] send 1 AxW7...5fGz --chain solana
+
+# Get JSON output
+npx [email protected] send 1 vitalik.eth --json
+```
+
+## ENS Resolution
+
+ENS names are automatically resolved to addresses via Ethereum mainnet. The command will:
+
+1. Detect ENS names (any string containing a dot that isn't a hex address)
+2. Resolve the name to an address
+3. Display both the ENS name and resolved address in the output
+
+## Prerequisites
+
+- Must be authenticated (`npx [email protected] status` to check, `npx [email protected] auth login` to sign in, see skill `authenticate-wallet` for more information)
+- Wallet must have sufficient USDC balance (`npx awal balance` to check)
+
+## Error Handling
+
+Common errors:
+
+- "Not authenticated" - Run `awal auth login <email>` first
+- "Insufficient balance" - Check balance with `awal balance`
+- "Could not resolve ENS name" - Verify the ENS name exists
+- "Invalid recipient" - Must be valid 0x address, ENS name, or Solana Base58 address
+- "SOL only supported on Solana chains" - Use `--chain solana` when sending SOL
+- "ETH/POL only supported on EVM chains" - ETH on base, POL on polygon
diff --git a/.agents/skills/trade/SKILL.md b/.agents/skills/trade/SKILL.md
new file mode 100644
index 000000000..5e5ff59d1
--- /dev/null
+++ b/.agents/skills/trade/SKILL.md
@@ -0,0 +1,123 @@
+---
+name: trade
+description: Swap or trade tokens on Base or Polygon. Use when you or the user want to trade, swap, exchange, buy, sell, or convert between tokens like USDC, ETH, and POL. Covers phrases like "buy ETH", "sell ETH for USDC", "convert USDC to ETH", "get some ETH", "buy POL".
+user-invocable: true
+disable-model-invocation: false
+allowed-tools: ["Bash(npx [email protected] status*)", "Bash(npx [email protected] trade *)", "Bash(npx [email protected] balance*)"]
+---
+
+# Trading Tokens
+
+Use the `npx [email protected] trade` command to swap tokens on Base or Polygon via the CDP Swap API. You must be authenticated to trade.
+
+## Confirm wallet is initialized and authed
+
+```bash
+npx [email protected] status
+```
+
+If the wallet is not authenticated, refer to the `authenticate-wallet` skill.
+
+## Command Syntax
+
+```bash
+npx [email protected] trade <amount> <from> <to> [options]
+```
+
+The command is also available as `npx [email protected] swap` (alias).
+
+## Arguments
+
+| Argument | Description |
+| -------- | ----------------------------------------------------------------------- |
+| `amount` | Amount to swap (see Amount Formats below) |
+| `from` | Source token: alias (usdc, eth, pol) or contract address (0x...) |
+| `to` | Destination token: alias (usdc, eth, pol) or contract address (0x...) |
+
+## Amount Formats
+
+The amount can be specified in multiple formats:
+
+| Format | Example | Description |
+| ------------- | ---------------------- | -------------------------------------- |
+| Dollar prefix | `'$1.00'`, `'$0.50'` | USD notation (decimals based on token) |
+| Decimal | `1.0`, `0.50`, `0.001` | Human-readable with decimal point |
+| Whole number | `5`, `100` | Interpreted as whole tokens |
+| Atomic units | `500000` | Large integers treated as atomic units |
+
+**Auto-detection**: Large integers without a decimal point are treated as atomic units. For example, `500000` for USDC (6 decimals) = $0.50.
+
+**Decimals**: For known tokens (usdc=6, eth=18, pol=18), decimals are automatic. For arbitrary contract addresses, decimals are read from the token contract.
+
+## Options
+
+| Option | Description |
+| -------------------- | --------------------------------------------- |
+| `-c, --chain <name>` | Blockchain network: base, polygon (default: base) |
+| `-s, --slippage <n>` | Slippage tolerance in basis points (100 = 1%) |
+| `--json` | Output result as JSON |
+
+## Token Aliases
+
+| Alias | Token | Decimals | Chain |
+| ----- | ----- | -------- | ------- |
+| usdc | USDC | 6 | base |
+| eth | ETH | 18 | base |
+| pol | POL | 18 | polygon |
+
+**IMPORTANT**: Always single-quote amounts that use `$` to prevent bash variable expansion (e.g. `'$1.00'` not `$1.00`).
+
+## Input Validation
+
+Before constructing the command, validate all user-provided values to prevent shell injection:
+
+- **amount**: Must match `^\$?[\d.]+$` (digits, optional decimal point, optional `$` prefix). Reject if it contains spaces, semicolons, pipes, backticks, or other shell metacharacters.
+- **from / to**: Must be a known alias (`usdc`, `eth`, `pol`) or a valid `0x` hex address (`^0x[0-9a-fA-F]{40}$`). Reject any other value.
+- **slippage**: Must be a positive integer (`^\d+$`).
+
+Do not pass unvalidated user input into the command.
+
+## Examples
+
+```bash
+# Swap $1 USDC for ETH (dollar prefix — note the single quotes)
+npx [email protected] trade '$1' usdc eth
+
+# Swap 0.50 USDC for ETH (decimal format)
+npx [email protected] trade 0.50 usdc eth
+
+# Swap 500000 atomic units of USDC for ETH
+npx [email protected] trade 500000 usdc eth
+
+# Swap 0.01 ETH for USDC
+npx [email protected] trade 0.01 eth usdc
+
+# Swap with custom slippage (2%)
+npx [email protected] trade '$5' usdc eth --slippage 200
+
+# Swap using contract addresses (decimals read from chain)
+npx [email protected] trade 100 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 0x4200000000000000000000000000000000000006
+
+# Get JSON output
+npx [email protected] trade '$1' usdc eth --json
+
+# Swap USDC for POL on Polygon
+npx [email protected] trade '$1' usdc pol --chain polygon
+```
+
+## Prerequisites
+
+- Must be authenticated (`awal status` to check)
+- Wallet must have sufficient balance of the source token
+
+## Error Handling
+
+Common errors:
+
+- "Not authenticated" - Run `awal auth login <email>` first
+- "Invalid token" - Use a valid alias (usdc, eth, pol) or 0x address
+- "POL only supported on polygon chain" - Use `--chain polygon` when trading POL
+- "Cannot swap a token to itself" - From and to must be different
+- "Swap failed: TRANSFER_FROM_FAILED" - Insufficient balance or approval issue
+- "No liquidity" - Try a smaller amount or different token pair
+- "Amount has X decimals but token only supports Y" - Too many decimal places
diff --git a/.agents/skills/x402/SKILL.md b/.agents/skills/x402/SKILL.md
new file mode 100644
index 000000000..2e0f9b83a
--- /dev/null
+++ b/.agents/skills/x402/SKILL.md
@@ -0,0 +1,130 @@
+---
+name: x402
+description: Search for new services and make paid API requests using the x402 payment protocol. Use when you don't have a clear tool to choose, search the bazaar. You can also use this tool if you or the user want to call an x402 endpoint, discover payment requirements, browse the bazaar, or search for paid services.
+user-invocable: true
+disable-model-invocation: false
+---
+
+# x402 Payment Protocol
+
+Use the `npx [email protected] x402` commands to discover, inspect, and call paid API endpoints using the X402 payment protocol. Payments are made in USDC on Base.
+
+## Workflow
+
+The typical x402 workflow is:
+
+1. **Find a service** - Search the bazaar or get details for a known endpoint
+2. **Check requirements** - Inspect price, method, and input schema
+3. **Make the request** - Call the endpoint with automatic USDC payment
+
+## Commands
+
+### Search the Bazaar
+
+Find paid services by keyword using CDP's vector search:
+
+```bash
+npx [email protected] x402 bazaar search <query> [-k <n>] [--network <network>] [--scheme <scheme>] [--max-price <price>] [--json]
+```
+
+| Option | Description |
+| ----------------------- | ------------------------------------------------------------------------ |
+| `-k, --top <n>` | Number of results, 1–20 (default: 20) |
+| `--network <name>` | Filter by chain (base, base-sepolia, polygon, solana, solana-devnet) |
+| `--scheme <scheme>` | Filter by payment scheme: `exact` or `upto` |
+| `--max-price <price>` | Maximum price in USD (e.g. `0.01`) |
+| `--asset <address>` | Filter by payment asset address |
+| `--pay-to <address>` | Filter by recipient wallet address |
+| `--extensions <type>` | Filter by extension type (e.g. `outputSchema`, `bazaar`) |
+| `--json` | Output as JSON |
+
+### List Bazaar Resources
+
+Browse all available resources:
+
+```bash
+npx [email protected] x402 bazaar list [--network <network>] [--full] [--refresh] [--json]
+```
+
+| Option | Description |
+| ------------------ | -------------------------------------------------------------------- |
+| `--network <name>` | Filter by chain (base, base-sepolia, polygon, solana, solana-devnet) |
+| `--full` | Show complete details including schemas |
+| `--refresh` | Re-fetch resource index from CDP API |
+| `--json` | Output as JSON |
+
+### Discover Payment Requirements
+
+Inspect an endpoint's x402 payment requirements without paying:
+
+```bash
+npx [email protected] x402 details <url> [--json]
+```
+
+Auto-detects the correct HTTP method (GET, POST, PUT, DELETE, PATCH) by trying each until it gets a 402 response, then displays price, accepted payment schemes, network, and input/output schemas.
+
+### Make a Paid Request
+
+Call an x402 endpoint with automatic USDC payment:
+
+```bash
+npx [email protected] x402 pay <url> [-X <method>] [-d <json>] [-q <params>] [-h <json>] [--max-amount <n>] [--json]
+```
+
+| Option | Description |
+| ----------------------- | -------------------------------------------------- |
+| `-X, --method <method>` | HTTP method (default: GET) |
+| `-d, --data <json>` | Request body as JSON string |
+| `-q, --query <params>` | Query parameters as JSON string |
+| `-h, --headers <json>` | Custom HTTP headers as JSON string |
+| `--max-amount <amount>` | Max payment in USDC atomic units (1000000 = $1.00) |
+| `--correlation-id <id>` | Group related operations |
+| `--json` | Output as JSON |
+
+## Examples
+
+```bash
+# Search for weather-related paid APIs
+npx [email protected] x402 bazaar search "weather"
+
+# Search with more results
+npx [email protected] x402 bazaar search "sentiment analysis" -k 10
+
+# Check what an endpoint costs
+npx [email protected] x402 details https://example.com/api/weather
+
+# Make a GET request (auto-pays)
+npx [email protected] x402 pay https://example.com/api/weather
+
+# Make a POST request with body
+npx [email protected] x402 pay https://example.com/api/sentiment -X POST -d '{"text": "I love this product"}'
+
+# Limit max payment to $0.10
+npx [email protected] x402 pay https://example.com/api/data --max-amount 100000
+
+# Browse all bazaar resources with full details
+npx [email protected] x402 bazaar list --full
+```
+
+## USDC Amounts
+
+X402 uses USDC atomic units (6 decimals):
+
+| Atomic Units | USD |
+| ------------ | ----- |
+| 1000000 | $1.00 |
+| 100000 | $0.10 |
+| 50000 | $0.05 |
+| 10000 | $0.01 |
+
+## Prerequisites
+
+- **Search/Details**: No authentication needed
+- **Pay**: Must be authenticated (`npx [email protected] auth login <email>`) with sufficient USDC balance (`npx [email protected] balance`)
+
+## Error Handling
+
+- "Not authenticated" - Run `npx [email protected] auth login <email>` first
+- "No X402 payment requirements found" - URL may not be an x402 endpoint
+- "CDP API returned 429" - Rate limited; cached data will be used if available
+- "Insufficient balance" - Fund wallet with USDC (`npx [email protected] balance` to check)
diff --git a/.claude/skills/authenticate-wallet b/.claude/skills/authenticate-wallet
new file mode 120000
index 000000000..2bbd49dd3
--- /dev/null
+++ b/.claude/skills/authenticate-wallet
@@ -0,0 +1 @@
+../../.agents/skills/authenticate-wallet
\ No newline at end of file
diff --git a/.claude/skills/fund b/.claude/skills/fund
new file mode 120000
index 000000000..6949bb137
--- /dev/null
+++ b/.claude/skills/fund
@@ -0,0 +1 @@
+../../.agents/skills/fund
\ No newline at end of file
diff --git a/.claude/skills/monetize-service b/.claude/skills/monetize-service
new file mode 120000
index 000000000..02e00766f
--- /dev/null
+++ b/.claude/skills/monetize-service
@@ -0,0 +1 @@
+../../.agents/skills/monetize-service
\ No newline at end of file
diff --git a/.claude/skills/pay-for-service b/.claude/skills/pay-for-service
new file mode 120000
index 000000000..36162ad3e
--- /dev/null
+++ b/.claude/skills/pay-for-service
@@ -0,0 +1 @@
+../../.agents/skills/pay-for-service
\ No newline at end of file
diff --git a/.claude/skills/query-onchain-data b/.claude/skills/query-onchain-data
new file mode 120000
index 000000000..4dea70575
--- /dev/null
+++ b/.claude/skills/query-onchain-data
@@ -0,0 +1 @@
+../../.agents/skills/query-onchain-data
\ No newline at end of file
diff --git a/.claude/skills/search-for-service b/.claude/skills/search-for-service
new file mode 120000
index 000000000..3e036644e
--- /dev/null
+++ b/.claude/skills/search-for-service
@@ -0,0 +1 @@
+../../.agents/skills/search-for-service
\ No newline at end of file
diff --git a/.claude/skills/send-usdc b/.claude/skills/send-usdc
new file mode 120000
index 000000000..17e434f36
--- /dev/null
+++ b/.claude/skills/send-usdc
@@ -0,0 +1 @@
+../../.agents/skills/send-usdc
\ No newline at end of file
diff --git a/.claude/skills/trade b/.claude/skills/trade
new file mode 120000
index 000000000..a8665ceee
--- /dev/null
+++ b/.claude/skills/trade
@@ -0,0 +1 @@
+../../.agents/skills/trade
\ No newline at end of file
diff --git a/.claude/skills/x402 b/.claude/skills/x402
new file mode 120000
index 000000000..cc17eba00
--- /dev/null
+++ b/.claude/skills/x402
@@ -0,0 +1 @@
+../../.agents/skills/x402
\ No newline at end of file
diff --git a/.env.example b/.env.example
index 3a6a97446..abe8a2b9b 100644
--- a/.env.example
+++ b/.env.example
@@ -187,6 +187,20 @@ X402_FACILITATOR_TOKEN_BASE=
# Solana fee payer advertised to clients (must match facilitator's /supported).
X402_FEE_PAYER_SOLANA=2wKupLR9q6wXYppw8Gr2NvWxKBUqm4PPJKkQfoxHDBg4
+# Coinbase Developer Platform (CDP) facilitator. REQUIRED for agentic.market /
+# CDP Bazaar listing — only endpoints whose first verify+settle is processed
+# by CDP get cataloged. PayAI is a fine fallback for non-Bazaar use.
+# When both keys are set, Base mainnet payments route to CDP automatically.
+# Sign up at https://cdp.coinbase.com → Project → API keys → Generate.
+X402_CDP_FACILITATOR_URL=https://api.cdp.coinbase.com/platform/v2/x402/facilitator
+CDP_API_KEY_ID=
+# Auto-detected. Either:
+# * Newer Ed25519: base64-encoded 32-byte seed or 64-byte (seed||pub).
+# * Legacy ECDSA P-256: PEM-encoded EC private key (paste the full
+# "-----BEGIN EC PRIVATE KEY----- ... -----END EC PRIVATE KEY-----"
+# value in Vercel; newlines are preserved).
+CDP_API_KEY_SECRET=
+
# zauthx402 — telemetry + monitoring for x402 endpoints. Optional; when unset
# the SDK is not invoked. Get a key at https://zauth.inc/provider-hub.
ZAUTH_API_KEY=
diff --git a/EULA.md b/EULA.md
new file mode 100644
index 000000000..2bd5f30f1
--- /dev/null
+++ b/EULA.md
@@ -0,0 +1,438 @@
+# End-User License Agreement
+
+**Last Updated: 09/05/2026**
+
+This End-User License Agreement (this "Agreement") is between the individual or entity accepting it (the "End User" or "you") and **Three Ws Pte. Ltd.**, a private limited company incorporated in the Republic of Singapore with registered address at 68 Circular Road, #02-01, Singapore 049422 ("Company"), and governs your acquisition of Company's product or services provided via Alibaba Cloud International Marketplace Platform (currently located at the URL: https://marketplace.alibabacloud.com/) and described in the Order Form (the "Company Products and/or Services") and your use of such Company Products and/or Services.
+
+Please read this Agreement carefully before downloading, installing, or using the Company Products and/or Services. By downloading, installing, or using the Company Products and/or Services, you are agreeing to be bound by the terms and conditions of this Agreement. This Agreement, together with the Order Form, represents the entire agreement concerning the Company Products and/or Services between you and Company and supersedes any prior understanding or agreement between the parties. If you do not agree to the terms of this Agreement, do not download, install, or use the Company Products and/or Services. You shall inform all users of the Company Products and/or Services of the terms and conditions of this Agreement. You agree that all updates, enhancements, maintenance releases, patches, bug-fixes or other modifications to the Company Products and/or Services provided to you, on a when and if available basis, shall be governed by the terms and conditions contained in this Agreement.
+
+Any pre-printed terms or conditions on a quote, purchase order, or similar document and/or written agreement, mutually executed by the parties, that incorporates by reference this Agreement ("Order Form") that conflict with this Agreement shall be null and void. This Agreement may be superseded only by a mutually signed amendment to this Agreement.
+
+## 1. Licenses
+
+### 1.1 Grant of License
+Subject to the terms and conditions of this Agreement, Company grants to End User a time-based, non-transferable, nonexclusive license during the Term, without the right to sublicense, to: a) use the Company Products and/or Services during the Term and subject to payment of the fees set forth in the Order Form; and b) use any Documentation solely in connection with the use of the Company Products and/or Services in accordance with this Agreement and make a reasonable number of copies of the Documentation for such purpose. "Documentation" means: (i) Company's user guide for the Company Products and/or Services, and (ii) Company's written specification documents for the Company Products and/or Services.
+
+Except as expressly set forth in this Section 1.1, End User shall have no right to use, install, reproduce or distribute the Company Products and/or Services or Documentation.
+
+### 1.2 License Restrictions
+Other than as expressly set forth herein, End User shall have no right to (i) modify or otherwise prepare derivative works of the Company Products and/or Services or Documentation, or any portion thereof, (ii) rent, lease, loan, sublicense, sell or otherwise distribute the Company Products and/or Services or Documentation, (iii) except as expressly permitted by applicable law, reverse engineer or decompile the Company Products and/or Services, or otherwise attempt to derive or modify the source code of, or any processes, techniques, methods, specifications, protocols, algorithms, interfaces, data structures, or other information embodied or used in, the Company Products and/or Services; (iv) transfer or assign your rights to use the Company Products and/or Services; (v) use the Company Products and/or Services in violation of applicable laws or regulations; (vi) use the Company Products and/or Services for any purpose other than as permitted in this Agreement; or, (vii) remove, destroy, erase, alter or otherwise modify Company's trademarks.
+
+### 1.3 Open-Source Software Licenses
+End User acknowledges that portions of the Company Products and/or Services are subject to additional licenses that you shall be obligated to obtain separately from this Agreement. A current list of open-source components included in the Company Products and/or Services, together with their respective licenses and copyright notices, is made available at https://three.ws/legal/open-source and is updated as components are added or removed. Nothing in this Agreement is intended to restrict, supersede, or modify the rights and obligations granted to End User under any such open-source license.
+
+### 1.4 End User Data
+"End User Data" means all of End User's information and data, including any software applications, application data, and other information, transferred to Company in connection with the use of the Company Products and/or Services. You represent and warrant that you own or have the right to use all End User Data that you provide to Company in connection with the use of the Company Products and/or Services. You hereby grant to Company a license to use any End User Data that you provide to Company in connection with the use of the Company Products and/or Services solely for the purposes of providing the services as set forth in this Agreement.
+
+## 2. Warranty
+
+### 2.1 Warranty
+Company warrants to End User that during the Term, the Company Products and/or Services will be free of Errors. Company's sole obligation for a breach of this warranty will be to use its commercially reasonable efforts to correct the Error identified in such notice, provided that if Company is unable to correct any emergency Error or high severity Error within thirty (30) days of receiving notice from End User reporting such Error, End User will have the right to terminate this Agreement, the Order Form, any Company's then-current support terms that govern Support Services, as set forth, if applicable, in the Order Form or other separate agreement ("Support Terms") and all other exhibits and amendments executed by the parties and attached to the Order Form for a refund of a pro-rated portion of any services fees and support and maintenance fees actually paid by End User for the remainder of the then-current Term. "Error" means a material failure of the Company Products and/or Services to operate in accordance with the functional specifications for the Company Products and/or Services set forth in the applicable Documentation.
+
+### 2.2 Limitations
+Notwithstanding the foregoing, the warranty in Section 2.1 and Company's obligations set forth in Section 2.1 will not apply: (i) to the extent that an Error is due to causes that are external to the Company Products and/or Services or otherwise beyond Company's reasonable control, including, without limitation, natural disasters, fire, smoke, water, earthquakes, lightening, electrical power fluctuations or failures, or hardware or software not provided by Company; (ii) if the Company Products and/or Services has been misused and/or not used in compliance with the Documentation or this Agreement; (iii) if there has been a modification or attempted modification of the Company Products and/or Services other than by Company; or (iv) if End User has refused or otherwise failed to implement corrections, updates, enhancements, new releases or other modifications provided by Company.
+
+### 2.3 Disclaimer
+EXCEPT FOR THE EXPRESS WARRANTIES SET FORTH IN SECTION 2.1, COMPANY MAKES NO OTHER REPRESENTATIONS, WARRANTIES OR CONDITIONS, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, WITH RESPECT TO THE COMPANY PRODUCTS AND/OR SERVICES, THE DOCUMENTATION, OR ANY OTHER PRODUCTS OR SERVICES PROVIDED BY COMPANY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR DELAYS OR INTERRUPTION IN SERVICE RESULTING FROM USE OF THE INTERNET AND/OR TELECOMMUNICATIONS SERVICES NOT UNDER THE CONTROL OF COMPANY. THE COMPANY PRODUCTS AND/OR SERVICES ARE NOT WARRANTED TO OPERATE WITHOUT INTERRUPTION OR FAILURE. THE COMPANY PRODUCTS AND/OR SERVICES SHOULD ONLY BE USED IN SYSTEMS DESIGNED WITH APPROPRIATE REDUNDANCY, FAULT TOLERANCE AND BACK-UP FEATURES.
+
+## 3. Support
+Company provides paid support and maintenance services purchased separately from this Agreement in connection with the Company Products and/or Services ("Support Services") pursuant to the Support Terms, for the period set forth in the Order Form and commencing on the date set forth in the Order Form.
+
+## 4. Limitations of Liability
+
+### 4.1 Maximum Liability
+To the maximum extent enforceable under applicable law, other than for payment of license and service fees pursuant to this Agreement, the entire liability of each party hereto and their respective affiliates to the other party and its affiliates for damages or other amounts arising out of or in connection with the Company Products and/or Services, the Documentation, any other products or services provided by Company, the use of any of the foregoing or any other aspect of this Agreement shall not exceed the total amount actually paid by End User for the Company Products and/or Services and any other products and services provided under this Agreement in the twelve (12) month period immediately preceding the event giving rise to such claim.
+
+### 4.2 Waiver of Consequential Damages
+TO THE MAXIMUM EXTENT ENFORCEABLE IN ACCORDANCE WITH APPLICABLE LAW, IN NO EVENT SHALL EITHER PARTY OR THEIR RESPECTIVE AFFILIATES BE LIABLE TO THE OTHER PARTY OR ITS AFFILIATES FOR ANY INCIDENTAL, INDIRECT, CONSEQUENTIAL, EXEMPLARY, PUNITIVE OR SPECIAL DAMAGES, OR ANY DAMAGES FOR LOST PROFITS OR REVENUE, LOST DATA OR LOST BUSINESS, EVEN IF SUCH PARTY HAS BEEN ADVISED AS TO THE POSSIBILITY OF SUCH DAMAGES.
+
+### 4.3 Loss of Use or Data
+IN ADDITION TO THE LIABILITY LIMITATIONS SET FORTH ABOVE, TO THE MAXIMUM EXTENT ENFORCEABLE IN ACCORDANCE WITH APPLICABLE LAW, UNDER NO CIRCUMSTANCES WILL COMPANY OR ITS AFFILIATES BE LIABLE TO END USER, ANY RESELLER, THEIR RESPECTIVE AFFILIATES OR ANY OTHER PERSON OR ENTITY FOR ANY CLAIM, LOSS OR LIABILITY FOR INTERRUPTION IN THE OPERATION OF THE COMPANY PRODUCTS AND/OR SERVICES OR FOR ANY LOSS OF DATA THAT OCCURS AS A RESULT OF OR IN CONNECTION WITH THE USE OF THE COMPANY PRODUCTS AND/OR SERVICES, REGARDLESS OF WHETHER SUCH CLAIM, LOSS OR LIABILITY WAS FORESEEABLE BY COMPANY OR COMPANY WAS INFORMED OF THE POSSIBILITY OF SUCH CLAIM, LOSS OR LIABILITY.
+
+### 4.4 Disclaimers
+THE LIMITATIONS IN THIS SECTION 4 SHALL APPLY NOTWITHSTANDING ANY FAILURE OF AN ESSENTIAL PURPOSE OF ANY LIMITED REMEDY PROVIDED HEREIN. THE PARTIES ACKNOWLEDGE THAT BUT FOR THE FOREGOING DISCLAIMER, THE FEES CHARGED FOR THE COMPANY PRODUCTS AND/OR SERVICES WOULD BE HIGHER AND COMPANY WOULD NOT HAVE ENTERED INTO THIS AGREEMENT. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES OR CERTAIN LIMITATIONS ON DAMAGES, SO A PORTION OF THE ABOVE EXCLUSIONS MAY NOT APPLY TO END USER. IN THE EVENT THAT IMPLIED WARRANTIES CANNOT BE EXCLUDED, ANY IMPLIED WARRANTIES ARE LIMITED IN DURATION TO THIRTY (30) DAYS FROM THE DATE OF DELIVERY OF THE COMPANY PRODUCTS AND/OR SERVICES. THIS AGREEMENT GIVES END USER SPECIFIC LEGAL RIGHTS. END USER MAY HAVE OTHER RIGHTS, WHICH VARY FROM JURISDICTION TO JURISDICTION.
+
+## 5. Third-Party Rights
+
+### 5.1 Indemnification by Company
+Subject to this Section 5, Company shall (i) defend End User from any claim asserted in a legal proceeding by a third party alleging that the then-current release of the Company Products and/or Services, in the form provided by Company to End User and used in compliance with Section 1 and the Documentation, infringes such third party's copyright, trade secret, patent or other intellectual property rights (a "Claim") and (ii) pay all liabilities, damages, losses, expenses, claims, demands, suits, fines, and judgments finally awarded against End User associated with such Claim ("Damages"), or any amount agreed to by Company in settlement of such Claim ("Settlement Payments"); provided that End User promptly notifies Company of any such Claim in writing, Company is given sole and exclusive control over the defense and settlement of such Claim, and End User provides all information and cooperation reasonably requested by Company in connection with the defense and settlement of such Claim. If Company assumes defense of the Claim, End User may retain its own counsel only at its own expense.
+
+### 5.2 Fixes
+If any portion of the Company Products and/or Services becomes, or in Company's opinion is likely to become, the subject of a claim of infringement, Company may, at its option, (i) procure for End User the right to continue using the Company Products and/or Services, (ii) replace or modify the Company Products and/or Services to make it non-infringing or reduce the likelihood of infringement, such that the replacement or modification provides substantially the functionality required of the Company Products and/or Services that is replaced or modified, or (iii) terminate this Agreement and, as Company's sole liability and End User's sole remedy for such termination, refund to End User a pro-rated portion of any license fees and support and maintenance fees actually paid by End User hereunder for the remainder of the then-current term or scope of the license.
+
+### 5.3 Indemnification by End User
+End User will defend Company against any claim, demand, suit or proceeding made or brought against Company by a third party alleging that End User Data or End User's use of the Company Products and/or Services in breach of this Agreement, infringes or misappropriates such third party's intellectual property rights or violates applicable law (a "Claim Against Company"), and will indemnify Company from any damages, attorney fees and costs awarded against Company as a result of, or for any amounts paid by Company in settlement of, a Claim Against Company, provided Company promptly notifies you of any such Claim Against Company in writing, End User is given sole and exclusive control over the defense and settlement of such Claim Against Company, and Company provides all information and cooperation reasonably requested by you in connection with the defense and settlement of such Claim Against Company. If End User assumes defense of the Claim, Company may retain its own counsel only at its own expense.
+
+### 5.4 Limitations
+Notwithstanding any of the foregoing, Company shall have no obligations under this Section 5 with respect to any Claim to the extent that the alleged infringement is based on or arises out of: (i) any third-party hardware, software, data or other materials not provided or recommended by Company and used with the Company Products and/or Services; (ii) use of the Company Products and/or Services other than in accordance with this Agreement and the Documentation; (iii) modifications or additions to the Company Products and/or Services not made by Company; or (iv) End User's continuation of an allegedly infringing activity after being notified thereof.
+
+### 5.5 No Other Liabilities
+This Section 5 states the entire liability of Company with respect to any claims of infringement or misappropriation of intellectual property rights.
+
+## 6. Proprietary Rights
+End User acknowledges that, other than open source software, Company has retained and shall retain all right, title and interest (including, without limitation, all intellectual property rights) in and to the Company Products and/or Services and Documentation, including all modifications, improvements and additions thereto and all derivative rights therein.
+
+End User acknowledges that Company shall remain exclusive owner of any and all developments and designs made in the course of this Agreement by use of the Company Products and/or Services, and Company shall own and retain all right, title, interest, and any intellectual property rights attached thereto.
+
+End User grants to Company a worldwide, limited-term license to host, copy, and transmit End User Data, and any non-Company applications and programs provided by you, as necessary for Company to provide the Company Products and/or Services and or support service in accordance with this Agreement. Subject to the foregoing limited license, Company acquires no right, title or interest from you under this Agreement in or to End User Data.
+
+## 7. Confidentiality
+"Information" means, subject to the exceptions set forth in Section 7.3 below, all financial and technical information, data, designs, specifications, know-how, non-public marketing strategies, business and marketing plans, price lists, inventions, processes, software programs, firmware, source code, algorithms, and other technical and business information and all documents and materials, supplied in connection with this Agreement or the Company Products and/or Services, which at the time of disclosure is designated as confidential (or similar designation), is disclosed in circumstances of confidence, or would be understood by the parties, exercising reasonable business judgment, to be confidential.
+
+### 7.1 Company Information
+Except as otherwise expressly provided in this Section 7.1, End User shall protect and keep confidential all Company Information. End User shall use Company Information only for the purposes contemplated by this Agreement. End User may disclose Company Information only (i) as necessary for its use of the Company Products and/or Services in accordance with this Agreement, (ii) to End User's employees or third-party contractors who have agreed in writing to maintain such information in confidence; or (iii) if required to do so by subpoena, court order or legal process, provided that Company is provided sufficient written notice to request a protective order.
+
+### 7.2 End User Information; Right to Disclose
+Except as otherwise expressly provided in this Section 7.2, Company shall protect and keep confidential all End User Information and shall use End User Information only for the purposes contemplated in this Agreement and for purposes of improving and enhancing the Company Products and/or Services. Company may disclose End User Information only (i) as necessary to support End User's use of the Company Products and/or Services in accordance with this Agreement, (ii) to Company's employees or third-party contractors who have agreed in writing to maintain such information in confidence; or (iii) if required to do so by subpoena, court order or legal process, provided that End User is provided sufficient written notice to request a protective order.
+
+### 7.3 Exceptions
+Sections 7.1 and 7.2 shall not apply to Information of the disclosing party that (i) is or becomes generally available to the public other than through a wrongful act of the receiving party; (ii) is or becomes available to the receiving party on a non-confidential basis from a source that is entitled to disclose it to the receiving party; or (iii) is independently developed by the receiving party, its employees or third-party contractors without access to or use of the disclosing party's Information.
+
+### 7.4 Company Products and/or Services; Documentation
+End User acknowledges that the Company Products and/or Services and Documentation constitute Company Information.
+
+### 7.5 Data Processing
+In respect of any personal data processed by Company in connection with the provision of the Company Products and/or Services, both parties shall comply with the provisions of Schedule 1 Data Processing Addendum, which are hereby incorporated by reference into this Agreement.
+
+## 8. Duration, Termination and Fees
+
+### 8.1 Duration
+"Term" shall commence on the earlier of the date this Agreement is accepted by End User or the start date set forth in the Order Form, and shall continue for the term set forth in the Order Form or for as long as you use the Company Products and/or Services. Company shall provide the services and the license rights granted herein for the Term. End User and Company may extend or renew the services upon written agreement.
+
+### 8.2 Fees & Charges
+End User shall pay all license fees, service fees and other charges set forth in an Order Form according to the terms of the Order Form and this Agreement. Any failure to pay such fees and charges shall constitute a material breach of this Agreement.
+
+### 8.3 Termination for Breach
+Either party shall be entitled to terminate this Agreement in the event the other party commits a material breach of this Agreement and fails to cure such breach within thirty (30) days of being notified in writing of such breach.
+
+### 8.4 Discontinued Use
+Upon any expiration or termination of this Agreement or the Order Form, End User shall immediately (i) discontinue use of the Company Products and/or Services and Documentation and (ii) remove, delete and otherwise destroy all copies (electronic or otherwise) of the Company Products and/or Services and Documentation.
+
+### 8.5 Effect of Termination
+Termination of this Agreement by either party shall not act as a waiver of any breach of this Agreement and shall not act as a release of either party from any liability for breach of such party's obligations under this Agreement.
+
+### 8.6 Survival
+Upon any expiration or termination of this Agreement, the rights and obligations of the parties shall terminate, except that Sections 1.2, 2.3, 4, 5, 6, 7, 8.4 and 9 shall survive such expiration or termination. End User's liability and obligation to pay any fees or other amounts that have accrued prior to such expiration or termination will also survive such expiration or termination.
+
+## 9. Miscellaneous
+
+### 9.1 Governing Law and Jurisdiction
+This Agreement will be governed by the laws of Singapore without regard to any rules governing conflicts of laws. The parties agree that any dispute or claim arising out of, in connection with or relating to this Agreement shall be referred to and finally resolved by arbitration administered by the Singapore International Arbitration Centre in accordance with its arbitration rules for the time being in force. The seat of arbitration shall be Singapore. The tribunal shall consist of one (1) arbitrator. The language of the arbitration shall be English.
+
+### 9.2 Acknowledgement
+Both parties acknowledge that the Company Products and/or Services on Alibaba Cloud International Website are provided and uploaded by the Company itself, and the Company is solely and fully responsible and liable for such Company Products and/or Services. Furthermore, the parties acknowledge that Alibaba Cloud International Marketplace Platform and its owner: (i) have no access to Information and End User Data; (ii) will not process any Information or End User Data; and (iii) are not liable to the parties, either directly or indirectly, with respect to the Company Products and/or Services.
+
+### 9.3 Notices
+All notices required or permitted under this Agreement shall be in writing and shall be deemed given when (i) delivered personally; (ii) sent by confirmed email to the email address designated by the receiving party on the Order Form; or (iii) three (3) business days after deposit with an internationally recognised courier service, postage prepaid, addressed to the party at the address set forth in the Order Form. Notices to Company shall be sent to **[email protected]** with a copy to the registered address above. Notices to End User shall be sent to the contact details on the Order Form.
+
+### 9.4 Assignment
+Neither party may assign this Agreement without the prior written consent of the other party, except that either party may assign this Agreement without consent to a successor in interest in connection with a merger, acquisition, reorganisation, or sale of all or substantially all of its assets. Any attempted assignment in violation of this Section is void.
+
+### 9.5 Force Majeure
+Neither party shall be liable for any failure or delay in performance under this Agreement (other than payment obligations) due to causes beyond its reasonable control, including acts of God, war, terrorism, riots, embargoes, acts of civil or military authorities, fire, floods, earthquakes, pandemics, accidents, strikes, or shortages of transportation, facilities, fuel, energy, labour, or materials.
+
+### 9.6 Severability
+If any provision of this Agreement is held to be unenforceable, that provision shall be reformed only to the extent necessary to make it enforceable, and the remaining provisions shall remain in full force and effect.
+
+### 9.7 No Waiver
+The failure of either party to enforce any right or provision of this Agreement shall not constitute a waiver of such right or provision.
+
+### 9.8 Independent Contractors
+The parties are independent contractors. Nothing in this Agreement creates a partnership, joint venture, agency, or employment relationship between the parties.
+
+### 9.9 Headings
+Section headings are for convenience only and shall not affect the interpretation of this Agreement.
+
+### 9.10 Counterparts; Electronic Signatures
+The Order Form may be executed in counterparts, each of which is deemed an original, and all of which together constitute one instrument. Signatures delivered electronically (including by PDF or qualified e-signature service) shall have the same legal effect as original wet-ink signatures.
+
+### 9.11 Export Control and Sanctions
+End User shall comply with all applicable export control and economic sanctions laws and regulations of Singapore, the United States, the European Union, the United Kingdom, and any other applicable jurisdiction. End User represents that it is not located in, organised under the laws of, or ordinarily resident in any country or territory subject to comprehensive sanctions, and is not a person designated on any restricted-party list maintained by such jurisdictions.
+
+### 9.12 Anti-Bribery
+Each party shall comply with all applicable anti-bribery and anti-corruption laws, including the Singapore Prevention of Corruption Act, the U.S. Foreign Corrupt Practices Act, and the U.K. Bribery Act 2010.
+
+### 9.13 Entire Agreement
+This Agreement, together with the Order Form and any schedules and addenda incorporated herein by reference, constitutes the entire agreement between the parties with respect to its subject matter and supersedes all prior or contemporaneous agreements, understandings, negotiations, and communications, whether oral or written.
+
+---
+
+# Schedule 1 — Data Processing Addendum
+
+This Data Processing Addendum ("DPA") is entered into between the End User identified on the Order Form ("Customer") on behalf of itself and its affiliates and **Three Ws Pte. Ltd.** ("Vendor") and shall be effective on the date both parties have executed the DPA ("Effective Date").
+
+## Recitals
+Vendor has entered into an End User Licence Agreement with Customer (the "Services Agreement") pursuant to which the Vendor has agreed to provide certain services to Customer as more particularly described in the Services Agreement ("Services"). In providing the Services, Vendor may Process Personal Data controlled by Customer or its customers.
+
+As part of its privacy notices and contractual arrangements, Customer has provided certain assurances to its customers, candidates, contacts, employees, and/or partners to ensure the appropriate protection of Personal Data when Customer engages third party vendors. Customer's engagement of Vendor is conditioned upon Vendor's agreement to this DPA.
+
+## IT IS AGREED:
+
+**Definitions:** The following terms shall have the following meanings:
+- "Applicable Privacy Laws" means any and all national, international, federal, state and other privacy and data protection laws that apply to the Processing of Personal Data that is the subject of this DPA;
+- "Controller" means an entity that determines the purposes and means of the Processing of Personal Data;
+- "Data Subject" means an identified or identifiable individual;
+- "Personal Data" means any information relating to an identified or identifiable individual (including any information that falls within the scope of "Personal Data", "personal information", or "personally identifiable information", as defined under Applicable Privacy Laws);
+- "Processing" (and "Process") means any operation or set of operations performed on Personal Data; and
+- "Processor" means an entity that Processes Personal Data on behalf of a Controller.
+
+**Relationship of the parties:** Customer (either as a Controller, or as a Processor acting on behalf of a third party Controller, such as an enterprise customer of Customer) appoints Vendor (as a Processor or sub-Processor, as applicable) to Process the Personal Data described in Appendix 1 ("Customer Data") in order to provide Services pursuant to the Services Agreement.
+
+**Purpose limitation:** Vendor shall Process Customer Data as a Processor (or sub-Processor, as applicable) as necessary to perform its obligations under the Services Agreement, and as more particularly described in Appendix 1. In doing so, it shall Process Customer Data strictly in accordance with the documented instructions of Customer, except where and to the extent otherwise required by law(s) applicable to Vendor provided that such law(s) are not incompatible with Applicable Privacy Laws. In no event shall Vendor Process Customer Data for its own purposes or those of any third party. Vendor shall immediately inform Customer if in its opinion, an instruction of Customer infringes Applicable Privacy Laws or any other applicable laws.
+
+**International transfers:** Vendor shall not Process Customer Data (nor permit Customer Data to be Processed) in a territory that is different to the territory in which Vendor is established, unless it has obtained prior written authorisation from Customer and takes such measures as are necessary to ensure the transfer of Customer Data to, and Processing of Customer Data in, the recipient territory complies with Applicable Privacy Laws.
+
+**Security:** Vendor shall implement appropriate technical and organisational measures to protect Customer Data from and against (a) accidental unauthorised or unlawful destruction, and (ii) loss, unauthorised copying, alteration, unauthorised disclosure or disposal of, or access to Customer Data (a "Security Incident"). At a minimum, such measures shall include those identified in Appendix 2.
+
+**Security Incidents:** Vendor shall report any Security Incident (including suspected Security Incident) without undue delay to Customer and, at no additional cost, provide such assistance as Customer may reasonably require for the purposes of complying with its obligations under applicable law relating to the incident. Vendor shall further take all such measures and actions as are necessary to remedy or mitigate the effects of the Security Incident and shall keep Customer informed of all developments in connection with the Security Incident. Vendor shall not report any Security Incidents to any other third party, except where and to the extent required by law(s) applicable to Vendor (and, where so required, Vendor shall notify Customer prior to making such report, unless legally prohibited from doing so).
+
+**Sub-Processing:** Vendor shall not subcontract any Processing of Customer Data to a third party sub-Processor without the prior written consent of Customer. Notwithstanding this, Customer consents to Vendor engaging third party sub-Processors to Process Customer Data provided that: (i) Vendor provides at least 30 days' prior notice of the addition or removal of any sub-Processor (including details of the Processing it performs or will perform), which may be given by posting details of such addition or removal at the following URL: **https://three.ws/legal/sub-processors**; (ii) Vendor imposes data protection terms on any sub-Processor it appoints that protect Customer Data to the same standard provided for by this DPA; and (iii) Vendor remains fully liable for any breach of this DPA that is caused by an act, error or omission of its sub-Processor. A list of approved sub-Processors as at the Effective Date is attached at Appendix 3, and Vendor shall maintain and provide updated copies of this list to Customer when it adds or removes sub-Processors in accordance with this DPA. If Customer refuses to consent to Vendor's appointment of a third party sub-Processor on grounds relating to the protection of Customer Data, then either Vendor will not appoint the sub-Processor or Customer may elect to suspend or terminate the Services Agreement without penalty.
+
+**Cooperation and Data Subjects' rights:** Vendor shall at no additional cost provide to Customer all reasonable and timely assistance (including by appropriate technical and organisational measures) to enable Customer to respond to: (i) any request from a Data Subject to exercise any of its data protection rights (including its rights of access, correction, objection, erasure and data portability etc., in accordance with Applicable Privacy Laws); and (ii) any other correspondence, enquiry or complaint received from a Data Subject, regulator or other third party in connection with the Processing of Customer Data. In the event that any such request, correspondence, enquiry or complaint is made directly to Vendor, Vendor shall promptly inform Customer providing full details of the same without responding, except where and to the extent require by law(s) applicable to the Vendor.
+
+**Confidentiality of Processing:** Vendor shall ensure that any person that it authorises to Process Customer Data (including Vendor's staff, agents and sub-Processors) (an "Authorised Person") shall be subject to a strict duty of confidentiality (whether a contractual duty or a statutory duty), and shall not permit any person to Process Customer Data who is not under such a duty of confidentiality. Vendor shall ensure that all Authorised Persons Process Customer Data only as necessary for the Permitted Purpose.
+
+**Data Protection Impact Assessment:** If Vendor believes or becomes aware that its Processing of Customer Data is likely to result in a high risk to the data protection rights and freedoms of Data Subjects, it shall promptly inform Customer. Vendor shall provide Customer with all such reasonable and timely assistance as Customer may require in order to conduct a data protection impact assessment in accordance with Applicable Privacy Laws including, if necessary, to assist Customer to consult with its relevant data protection authority.
+
+**Deletion or return of Customer Data:** Upon termination or expiry of the Services Agreement, Vendor shall (at Customer's election) destroy or return to Customer all Customer Data (including all copies of Customer Data) in its possession or control (including any Customer Data subcontracted to a third party for Processing) and provide a confirmation/statement to Customer in written.
+
+**Audit:** Vendor shall permit, at no additional cost, Customer (or its appointed third party auditors) to audit Vendor's compliance with this DPA, and shall make available to Customer all information, systems and staff necessary for Customer (or its third party auditors) to conduct such audit. Such audits shall be conducted no more than once per twelve (12) month period (except where required by a supervisory authority or following a Security Incident), on at least thirty (30) days' prior written notice, during normal business hours, and in a manner that does not unreasonably interfere with Vendor's operations. The auditing party shall treat all information obtained as Vendor's confidential information.
+
+**Indemnity:** Vendor shall indemnify Customer any and any of their officers, directors, employees, consultants, agents and other representatives from and against all losses, costs, harm, expenses (including reasonable legal fees and costs, interparty damages and settlement amounts), liabilities or damage ("Damage") suffered or incurred as a result of any data incident involving Customer's data, breach of this DPA or of applicable law by Vendor or its sub-contractors, provided that: (i) Customer gives the Vendor prompt notice of any circumstances of which it is aware that give rise to an indemnity claim under this Clause; and (ii) Customer takes reasonable steps and actions to mitigate any ongoing Damage it may suffer as a consequence of the Vendor's breach.
+
+**Jurisdiction-specific terms:** The parties acknowledge that Appendix 4 sets out certain jurisdiction-specific terms and conditions, organised by country or region under section headings, that reflect the requirements of local privacy and data protection laws that may apply to Vendor's Processing of the Customer Data pursuant to the Services Agreement. Accordingly, both parties agree that they shall comply with their relevant section of Appendix 4 that apply to the Processing of Customer Data pursuant to the Services Agreement.
+
+**Relationship between the Services Agreement and this DPA:** The parties intend and agree that this DPA shall be incorporated into, and form an integral part of, the Services Agreement. Accordingly, with effect from the Effective Date, this DPA shall amend the Services Agreement to the extent necessary to incorporate this DPA into the Services Agreement. Except where expressly stated otherwise in this DPA, this DPA shall be subject to the terms and conditions of the Services Agreement (excluding any exclusions or limitations of liability) in full. To the extent there is any conflict or inconsistency between this DPA and the Services Agreement, the terms of this DPA shall prevail. Further, to the extent there is any conflict or inconsistency between the body and appendices of this DPA, the appendices shall prevail.
+
+## Signatures
+
+Signed by the parties or their duly authorised representatives:
+
+**Signed for and on behalf of Customer:**
+
+| Field | Value |
+|---|---|
+| Name | _____________________________ |
+| Position | _____________________________ |
+| Date | _____________________________ |
+| Signature | _____________________________ |
+
+**Signed for and on behalf of Vendor (Three Ws Pte. Ltd.):**
+
+| Field | Value |
+|---|---|
+| Name | _____________________________ |
+| Position | _____________________________ |
+| Date | _____________________________ |
+| Signature | _____________________________ |
+
+---
+
+# Appendix 1 — Data Processing Description
+
+This Appendix 1 describes the Processing that the Vendor will perform on behalf of Customer.
+
+**Categories of Data Subjects whose Personal Data will be Processed by Vendor:**
+- Customer's employees, contractors, and authorised personnel who access or administer the Company Products and/or Services;
+- Customer's end users and customers (including registered account holders and visitors) who interact with applications or systems built or operated using the Company Products and/or Services;
+- Counterparties and wallet holders whose blockchain addresses appear in transactions initiated by Customer through the Company Products and/or Services;
+- Any other Data Subjects whose Personal Data is submitted to the Company Products and/or Services by or on behalf of Customer.
+
+**Categories of Personal Data to be Processed:**
+- Identity and contact data: name, email address, username, account ID, organisation, role/title;
+- Authentication data: hashed passwords, API keys, OAuth tokens, session tokens, multi-factor authentication factors;
+- Technical data: IP address, device identifiers, browser user-agent, operating system, referring URLs, language preference;
+- Usage data: feature usage, interaction logs, audit logs, request and response metadata, error and diagnostic logs;
+- Transactional data: blockchain wallet addresses, transaction hashes, on-chain interactions, payment metadata (excluding full payment-card numbers);
+- Content data: prompts, files, models, scenes, messages, and any other content uploaded to or generated through the Company Products and/or Services by Customer or its Data Subjects;
+- Support and communication data: correspondence with Vendor's support team, including any Personal Data voluntarily provided therein.
+
+**Sensitive data to be Processed (if applicable) and any enhanced protections applied to the sensitive data:**
+The Company Products and/or Services are not designed or intended to Process special categories of Personal Data (as defined under Article 9 of the EU GDPR), including data revealing racial or ethnic origin, political opinions, religious or philosophical beliefs, trade union membership, genetic data, biometric data for the purpose of uniquely identifying a natural person, data concerning health, or data concerning a natural person's sex life or sexual orientation. Customer shall not submit such data unless expressly agreed in writing in advance. Where the parties have so agreed, enhanced protections shall include: (i) encryption at rest using AES-256 and in transit using TLS 1.2 or higher; (ii) strict role-based access controls limited to a named list of Authorised Persons; (iii) detailed access logging and quarterly access reviews; and (iv) segregated processing environments.
+
+**The frequency of the transfer (e.g. whether the data is transferred on a one-off or continuous basis):**
+Continuous for the duration of the Services Agreement.
+
+**Nature of the Processing:**
+Hosting, storage, transmission, computation, indexing, querying, logging, monitoring, backup, restoration, and deletion of Customer Data as required to provide the Company Products and/or Services described in the Services Agreement, including but not limited to: rendering and serving 3D scenes and assets; orchestrating AI and agent workloads; routing and recording on-chain payment instructions; serving paid API endpoints and marketplace integrations; and providing technical support to Customer.
+
+**Purpose(s) of the data Processing:**
+Customer Data will be Processed for the purpose of performing the Services described in the Services Agreement.
+
+**The period for which the Personal Data will be retained, or, if that is not possible, the criteria used to determine that period:**
+The Vendor will Process Customer Data for the duration of the Services Agreement. Upon termination of the Services Agreement, it will be deleted in accordance with this DPA. Operational logs and backups containing Personal Data shall be retained for no longer than ninety (90) days following termination, after which they shall be securely destroyed, unless retention is required by applicable law (in which case the data shall be isolated and protected from further Processing until deletion is possible).
+
+**For Processing by (sub-) Processors, also specify subject matter, nature and duration of the Processing:**
+As described in the Services Agreement and above. Each sub-Processor Processes Customer Data only as necessary to support a specific layer of the Company Products and/or Services (e.g. cloud hosting, AI inference, blockchain RPC, observability, transactional email) and only for the duration of the Services Agreement or, if shorter, the duration of Vendor's engagement of that sub-Processor.
+
+**The countries or territories in which the Personal Data will be processed:**
+- Singapore (primary processing region);
+- United States (cloud hosting, AI inference, observability);
+- European Union (cloud hosting failover, transactional email);
+- Such other territories as listed in Appendix 3 from time to time.
+
+---
+
+# Appendix 2 — Minimum Security Measures
+
+Vendor shall at a minimum ensure the following security measures:
+
+- **Information security policy:** Vendor will implement and adhere to a written information security policy that specifies the security standards it will apply to protect the Personal Data it processes in accordance with this DPA. The information security policy will mandate the use of appropriate technical and organisational security measures in the Vendor's organisation to protect Personal Data against unauthorised and unlawful processing and against accidental loss, damage or destruction. It will further describe the measures to be taken in the event of an actual or suspected data or security breach.
+- **Information security officer:** Vendor will appoint a duly skilled employee with responsibility for ensuring the security of Personal Data processed by Vendor in its organisation and for reviewing, maintaining and updating the Vendor's information security policy.
+- **Physical security:** Access to data processing facilities will be restricted to duly authorised employees and contractors by use of keys, fingerprint readers, or other electronic security measures.
+- **Firewall and anti-virus:** Vendor will implement appropriate firewall, anti-virus, anti-spyware and other anti-malware software and technologies on all networks and systems it uses to process Personal Data. Vendor will update its firewall, anti-virus, anti-spyware and other anti-malware software and technologies on a regular basis to ensure that they protect against then-current virus, spyware and other malware threats.
+- **Access controls:** Vendor will implement technical access controls that restrict access to Personal Data it processes to duly authorised employees and contractors only. Duly authorised employees and contractors will be permitted to access Personal Data only to the extent necessary for the performance of their duties. Vendor will identify and appoint a system administrator with overall responsibility for granting, changing or voiding data access privileges to its data processing systems.
+- **Usernames / passwords:** Access to Personal Data will be controlled through access privileges (described above), usernames and confidential passwords. No two employees or contractors may share or use the same username. Employees and contractors will be required to change their passwords on a regular basis and at least once every six months. All employee passwords must be at least eight characters, including a minimum of one uppercase letter and one numeral.
+- **Back-up:** Vendor will take regular, at least weekly, back-ups of the Personal Data that it processes on behalf of Customer. Data back-ups will be stored securely at an offsite location and will be available for data restoration within a reasonable period of time.
+- **Disaster recovery / business continuity:** Vendor will implement and adhere to appropriate disaster recovery and business continuity plans that will ensure the availability, security, integrity and (where necessary) restoration of the Personal Data on the occurrence of a force majeure or similar business interruption event. Vendor will provide a copy of its disaster recovery and business continuity plans to Customer upon request.
+- **Power loss:** Vendor's data processing systems will protect against loss, destruction or damage of Personal Data due to failure or interference of any power supply.
+- **Audit:** Vendor will audit its compliance with its information security policy on a regular basis. Any remedial measures identified as necessary following an audit will be reviewed and implemented as appropriate under the circumstances.
+- **Encryption:** Vendor will encrypt Personal Data in transit using TLS 1.2 or higher and at rest using AES-256 (or equivalent industry-standard cryptography). Encryption keys are managed via a hardware-backed key management service with strict access controls and rotation.
+- **Network segmentation:** Production systems Processing Personal Data are logically segmented from development, staging, and corporate networks. Inbound access to production is restricted to a hardened bastion or zero-trust gateway with multi-factor authentication.
+- **Multi-factor authentication (MFA):** MFA is enforced for all administrative access to systems Processing Personal Data, for all source-control and CI/CD systems, and for all cloud-provider consoles.
+- **Vulnerability management:** Vendor performs continuous dependency scanning, periodic penetration testing (at least annually), and patches critical vulnerabilities within seven (7) days of confirmed disclosure.
+- **Secure development lifecycle:** Code changes are peer-reviewed, undergo automated security analysis, and are deployed through reproducible CI/CD pipelines with audit trails.
+- **Logging and monitoring:** Security-relevant events (authentication, privilege changes, data access, configuration changes) are centrally logged, retained for a minimum of twelve (12) months, and continuously monitored for anomalies.
+- **Personnel screening and training:** Authorised Persons undergo background checks where permitted by law and complete mandatory data-protection and security awareness training annually.
+
+The following table sets out specific technical and organisational measures the Vendor will implement to support the fulfilment of Data Subject rights requests made to Customer:
+
+| Measure | Description |
+|---|---|
+| Self-serve administrative console | Customer administrators can directly access, export, correct, or delete Personal Data records belonging to their Data Subjects through Vendor's administrative console, without needing to file a support ticket. |
+| Data export API | Vendor exposes a documented API endpoint that returns all Personal Data associated with a given Data Subject identifier in a structured, machine-readable format (JSON), supporting the right to data portability. |
+| Erasure API | Vendor exposes a documented API endpoint that, on request, performs a verified hard-delete of all Personal Data associated with a given Data Subject identifier across primary stores, search indices, and caches, with deletion from backups completing within the backup-retention window. |
+| Audit log | All Data Subject rights actions executed via the console or API are recorded in an immutable audit log accessible to Customer. |
+| DSR support workflow | A dedicated support workflow handles Data Subject rights requests routed to Vendor in error, with a documented service-level objective of acknowledging within seventy-two (72) hours and forwarding to Customer. |
+
+---
+
+# Appendix 3 — Approved Sub-Processors
+
+The following sub-Processors are approved as at the Effective Date. An updated list is maintained at https://three.ws/legal/sub-processors.
+
+| Name of sub-Processor | Subject matter, nature and duration of Processing | Location of Processing |
+|---|---|---|
+| Vercel Inc. | Hosting of web frontends and serverless API functions; storage of request logs; duration of the Services Agreement. | United States; European Union |
+| Cloudflare, Inc. | Edge network, DDoS protection, DNS, and asset caching; duration of the Services Agreement. | Global edge network |
+| Amazon Web Services, Inc. | Object storage, managed databases, and compute for backend workloads; duration of the Services Agreement. | Singapore (ap-southeast-1); United States (us-east-1) |
+| OpenAI, L.L.C. | AI inference for generative features (no training on Customer Data per applicable enterprise terms); duration of the Services Agreement. | United States |
+| Anthropic, PBC | AI inference for generative features (no training on Customer Data per applicable terms); duration of the Services Agreement. | United States |
+| Helius Labs, Inc. | Solana RPC and indexing services for on-chain data and transaction submission; duration of the Services Agreement. | United States |
+| Datadog, Inc. | Application performance monitoring, log aggregation, and error reporting; duration of the Services Agreement. | United States; European Union |
+| Sentry (Functional Software, Inc.) | Error and crash reporting; duration of the Services Agreement. | United States |
+| Stripe, Inc. | Fiat payment processing for subscription fees (where applicable); duration of the Services Agreement. | United States; Ireland |
+| Resend, Inc. | Transactional email delivery; duration of the Services Agreement. | United States |
+| GitHub, Inc. | Source-code hosting and CI for Vendor's internal development (no Customer Data Processed in normal operation); duration of the Services Agreement. | United States |
+
+---
+
+# Appendix 4 — Jurisdiction-Specific Terms
+
+This Appendix 4 sets out jurisdiction-specific terms and conditions with which the parties must comply. Capitalised terms used in this Appendix 4 shall have the meanings given to them in the main body of this DPA, except where expressly indicated otherwise.
+
+## Section I — EU/UK Data Protection Terms
+
+**Scope and conflicts:** Where and to the extent that Customer Data Processed by Vendor pursuant to the Services Agreement is subject to EU/UK Data Protection Law, this Appendix 4, Section I shall apply.
+
+**Definitions:** The following terms shall have the following meanings:
+- "Controller", "Processor", "Data Subject", "Personal Data" and "Processing" (and "Process") shall have the meanings given in EU/UK Data Protection Law;
+- "EEA" means the European Economic Area;
+- "EU/UK Data Protection Law" means: (i) Regulation 2016/679 of the European Parliament and of the Council on the protection of natural persons with regard to the Processing of Personal Data and on the free movement of such data (General Data Protection Regulation) (the "EU GDPR"); (ii) the EU GDPR as saved into United Kingdom law by virtue of section 3 of the United Kingdom's European Union (Withdrawal) Act 2018 (the "UK GDPR"); (iii) the EU e-Privacy Directive (Directive 2002/58/EC); and (iv) any and all applicable national data protection laws made under, pursuant to or that apply in conjunction with any of (i), (ii) or (iii); in each case as may be amended or superseded from time to time;
+- "Restricted Transfer" means: (i) where the EU GDPR applies, a transfer of Personal Data from the EEA to a country outside of the EEA which is not subject to an adequacy determination by the European Commission; and (ii) where the UK GDPR applies, a transfer of Personal Data from the United Kingdom to any other country which is not subject based on adequacy regulations pursuant to Section 17A of the United Kingdom Data Protection Act 2018; and
+- "Standard Contractual Clauses" means: (i) where the EU GDPR applies, the contractual clauses annexed to the European Commission's Implementing Decision 2021/914 of 4 June 2021 on standard contractual clauses for the transfer of Personal Data to third countries pursuant to Regulation (EU) 2016/679 of the European Parliament and of the Council ("EU SCCs"); and (ii) where the UK GDPR applies, standard data protection clauses adopted pursuant to or permitted under Article 46 of the UK GDPR ("UK SCCs").
+
+**Restricted transfers:** The parties agree that when the transfer of Customer Data from Customer to Vendor is a Restricted Transfer it shall be subject to the appropriate Standard Contractual Clauses as follows:
+
+(a) in relation to data that is protected by the EU GDPR, the EU SCCs will apply completed as follows:
+1. Module Two will apply (where Customer is a Controller of Customer Data);
+2. Module Three will apply (where Customer is a Processor of Customer Data on behalf of a third party Controller);
+3. in Clause 7, the optional docking clause will apply;
+4. in Clause 9, Option 2 will apply, and the time period for prior notice of sub-Processor changes shall be as set out in Clause 7 of this DPA;
+5. in Clause 11, the optional language will not apply;
+6. in Clause 17, Option 1 will apply, and the EU SCCs will be governed by the law of The Netherlands;
+7. in Clause 18(b), disputes shall be resolved before the courts of The Netherlands;
+8. Annex I of the EU SCCs shall be deemed completed with the information set out in Annex I to this Appendix 4; and
+9. Annex II of the EU SCCs shall be deemed completed with the information set out in Annex II to this Appendix 4.
+
+(b) in relation to Customer Data that is protected by the UK GDPR, the UK SCCs will apply completed as follows:
+
+(i) For so long as it is lawfully permitted to rely on standard contractual clauses for the transfer of personal data to processors set out in the European Commission's Decision 2010/87/EU of 5 February 2010 ("Prior C2P SCCs") for transfers of personal data from the United Kingdom, the Prior C2P SCCs shall apply between Customer (which, where Customer is a processor it enters for the benefit of the relevant third party controller) and the Vendor on the following basis:
+- Appendix 1 shall be completed with the relevant information set out in Annex I to this Appendix 4;
+- Appendix 2 shall be completed with the relevant information set out in Annex II to this Appendix 4; and
+- the optional illustrative indemnification Clause will not apply.
+
+(ii) Where sub-clause (b)(i) above does not apply, but Customer and the Vendor are lawfully permitted to rely on the EU SCCs for transfers of personal data from the United Kingdom subject to completion of a "UK Addendum to the EU Standard Contractual Clauses" ("UK Addendum") issued by the Information Commissioner's Office under s.119A(1) of the Data Protection Act 2018, then:
+- (A) the EU SCCs, completed as set out above in clause 3(a) of this Section I shall also apply to transfers of such Customer Data, subject to sub-clause (B) below;
+- (B) the UK Addendum shall be deemed executed between the transferring Customer and the Vendor, and the EU SCCs shall be deemed amended as specified by the UK Addendum in respect of the transfer of such Customer Data.
+
+(iii) If neither sub-clause (b)(i) or sub-clause (b)(ii) applies, then Customer and the Vendor shall cooperate in good faith to implement appropriate safeguards for transfers of such Customer Data as required or permitted by the UK GDPR without undue delay; and
+
+(c) in the event that any provision of this DPA contradicts, directly or indirectly, the Standard Contractual Clauses, the Standard Contractual Clauses shall prevail.
+
+**Onward transfers:** Vendor shall not participate in (nor permit any sub-Processor to participate in) any other Restricted Transfers of Customer Data (whether as an exporter or an importer of Customer Data) unless: (i) it has first obtained Customer's prior written consent; and (ii) the Restricted Transfer is made in full compliance with EU/UK Data Protection Law and pursuant to Standard Contractual Clauses implemented between the exporter and importer of Customer Data.
+
+**Deletion or return of Customer Data:** Clause 9 of this DPA shall not apply to the extent that Vendor is required by any applicable EU or any EU Member State law (for Customer Data that is subject to the EU GDPR) or UK law (for Customer Data that is subject to the UK GDPR) to retain some or all of Customer Data, in which event Vendor shall isolate and protect Customer Data from any further Processing except to the extent required by such law until deletion is possible.
+
+## Section II — Singapore (PDPA)
+
+Where Customer Data is subject to the Singapore Personal Data Protection Act 2012 ("PDPA"):
+- Vendor shall Process Personal Data only for purposes that a reasonable person would consider appropriate in the circumstances and as instructed by Customer.
+- Vendor shall implement reasonable security arrangements to prevent unauthorised access, collection, use, disclosure, copying, modification, disposal, or similar risks (consistent with Appendix 2).
+- Vendor shall notify Customer without undue delay of any data breach affecting Customer Data so that Customer can comply with its data breach notification obligations under the PDPA.
+- The parties acknowledge that Vendor acts as a data intermediary within the meaning of the PDPA.
+
+## Section III — California (CCPA/CPRA)
+
+Where Customer Data includes "personal information" of California consumers within the meaning of the California Consumer Privacy Act of 2018, as amended by the California Privacy Rights Act ("CCPA/CPRA"):
+- Vendor is a "service provider" and shall not (i) sell or share personal information; (ii) retain, use, or disclose personal information for any purpose other than for the business purposes specified in the Services Agreement, including to retain, use, or disclose the personal information for a commercial purpose other than providing the Services; (iii) retain, use, or disclose the personal information outside the direct business relationship between the parties; or (iv) combine the personal information with personal information received from another source, except as permitted by the CCPA/CPRA.
+- Vendor certifies that it understands these restrictions and will comply with them.
+- Vendor shall provide reasonable assistance to Customer in responding to verifiable consumer requests under the CCPA/CPRA.
+
+---
+
+# Annex I — Data Processing Description (SCCs)
+
+This Annex I forms part of the DPA and describes the Processing that Vendor will perform on behalf of Customer (as Controller and/or Processor).
+
+## A. List of Parties
+
+### Data exporter(s):
+
+| Field | Value |
+|---|---|
+| Name | The Customer entity identified on the Order Form |
+| Address | The address set forth on the Order Form |
+| Contact person's name, position and contact details | The contact person identified on the Order Form |
+| Activities relevant to the data transferred under these Clauses | Receipt of the Company Products and/or Services pursuant to the Services Agreement, including submission of Customer Data to Vendor for Processing as described in Appendix 1 |
+| Signature and date | This Annex I shall be deemed executed upon execution of the DPA |
+| Role (Controller/Processor) | Controller (or Processor on behalf of a third-party Controller) |
+
+### Processor(s) / Data importer(s):
+
+| Field | Value |
+|---|---|
+| Name | Three Ws Pte. Ltd. |
+| Address | 68 Circular Road, #02-01, Singapore 049422 |
+| Contact person's name, position and contact details | Data Protection Officer, [email protected] |
+| Activities relevant to the data transferred under these Clauses | Provision of the Company Products and/or Services pursuant to the Services Agreement, including the Processing activities described in Appendix 1 |
+| Signature and date | This Annex I shall be deemed executed upon execution of the DPA |
+| Role (Controller/Processor) | Processor (or sub-Processor) |
+
+## B. Description of Transfer
+Please see the description provided in Appendix 1 of this DPA.
+
+## C. Competent Supervisory Authority
+Where the EU GDPR applies, the competent supervisory authority shall be determined in accordance with Clause 13 of the EU SCCs. Given the data exporter's establishment, the supervisory authority of The Netherlands (Autoriteit Persoonsgegevens) shall act as the competent supervisory authority where Customer is not established in the EEA but has appointed a representative in The Netherlands; otherwise, the supervisory authority of the EEA Member State in which the data exporter (or its Article 27 representative) is established shall be competent.
+
+Where the UK GDPR applies, the competent supervisory authority shall be the UK Information Commissioner's Office.
+
+---
+
+# Annex II — Technical and Organisational Measures (SCCs)
+
+The technical and organisational measures applicable to the Processing of Customer Data are those set out in Appendix 2 of this DPA, which Annex II hereby incorporates in full.
+
+---
+
+*End of Agreement.*
diff --git a/api/_lib/env.js b/api/_lib/env.js
index c01c98a0a..821ab64cd 100644
--- a/api/_lib/env.js
+++ b/api/_lib/env.js
@@ -116,7 +116,12 @@ export const env = {
// Bootstrap: set to your own wallet address. Can also be promoted via DB is_admin flag.
get ADMIN_ADDRESSES() {
const raw = opt('ADMIN_ADDRESSES', '');
- return new Set(raw.split(',').map((a) => a.trim().toLowerCase()).filter(Boolean));
+ return new Set(
+ raw
+ .split(',')
+ .map((a) => a.trim().toLowerCase())
+ .filter(Boolean),
+ );
},
// Feature flag. Set to "true" to enable POST /api/permissions/redeem.
@@ -193,6 +198,39 @@ export const env = {
return opt('X402_FEE_PAYER_SOLANA', '2wKupLR9q6wXYppw8Gr2NvWxKBUqm4PPJKkQfoxHDBg4');
},
+ // Coinbase Developer Platform (CDP) facilitator. Required to be indexed by
+ // agentic.market / the CDP Bazaar — only endpoints whose first verify+settle
+ // is processed by CDP get cataloged. PayAI is not Bazaar-cataloged.
+ // Auth uses ES256 JWT signed with the CDP API key (per Coinbase Cloud auth).
+ get X402_CDP_FACILITATOR_URL() {
+ return trimSlash(
+ opt(
+ 'X402_CDP_FACILITATOR_URL',
+ 'https://api.cdp.coinbase.com/platform/v2/x402/facilitator',
+ ),
+ );
+ },
+ get CDP_API_KEY_ID() {
+ return opt('CDP_API_KEY_ID');
+ },
+ // PEM-encoded ECDSA P-256 private key (BEGIN EC PRIVATE KEY ... END EC PRIVATE KEY).
+ // In Vercel, paste the full multi-line PEM as the value (newlines preserved).
+ get CDP_API_KEY_SECRET() {
+ return opt('CDP_API_KEY_SECRET');
+ },
+
+ // EVM mainnet chains accepted by /api/x402/* paid endpoints — defaults to
+ // Base + Arbitrum because those are the two CDP-Bazaar-supported networks
+ // the seller wizard currently exposes. Comma-separated CAIP-2 IDs.
+ get X402_EVM_NETWORKS() {
+ return opt('X402_EVM_NETWORKS', 'eip155:8453,eip155:42161')
+ .split(',').map((s) => s.trim()).filter(Boolean);
+ },
+ // Native (non-bridged) USDC on Arbitrum One mainnet.
+ get X402_ASSET_ADDRESS_ARBITRUM() {
+ return opt('X402_ASSET_ADDRESS_ARBITRUM', '0xaf88d065e77c8cC2239327C5EDb3A432268e5831');
+ },
+
// zauthx402 SDK — optional telemetry for x402 endpoints. When unset,
// the SDK is not initialized and request monitoring is skipped.
get ZAUTH_API_KEY() {
diff --git a/api/_lib/x402-spec.js b/api/_lib/x402-spec.js
index 7f359abc9..00bbc05c0 100644
--- a/api/_lib/x402-spec.js
+++ b/api/_lib/x402-spec.js
@@ -12,9 +12,13 @@
// { "scheme": "exact", "network": "eip155:8453", "amount": "1000",
// "asset": "0x...", "payTo": "0x...", "maxTimeoutSeconds": 60, "extra": {...} }
// ],
-// "extensions": { "bazaar": { input, inputSchema, output:{example,schema}, bodyType, method } }
+// "extensions": { "bazaar": { info: { input, output }, schema } }
// }
//
+// In addition to the body, the same envelope is emitted base64-encoded as the
+// `payment-required` HTTP response header — required by agentic.market's
+// Bazaar validator, which reads the header on its discovery probe.
+//
// Networks use CAIP-2 IDs in v2: `eip155:<chainId>` for EVM, `solana:<genesis-prefix>`
// for Solana. The legacy `api/_lib/x402.js` is the unrelated Pump.fun agent-skill flow.
//
@@ -27,6 +31,7 @@
// 5. Server POSTs facilitator /settle (same body) → { success, transaction, network, payer }
// Server attaches a base64 settlement object as `X-PAYMENT-RESPONSE` on the success reply.
+import { createPrivateKey, createSign, randomBytes, sign } from 'crypto';
import { env } from './env.js';
export const X402_VERSION = 2;
@@ -84,20 +89,170 @@ export function paymentRequirements() {
}
function facilitatorFor(network) {
- if (network === NETWORK_SOLANA_MAINNET || network === NETWORK_SOLANA_DEVNET || network === 'solana')
- return { url: env.X402_FACILITATOR_URL_SOLANA, token: env.X402_FACILITATOR_TOKEN_SOLANA };
- if (network === NETWORK_BASE_MAINNET || network === NETWORK_BASE_SEPOLIA || network === 'base')
- return { url: env.X402_FACILITATOR_URL_BASE, token: env.X402_FACILITATOR_TOKEN_BASE };
+ if (
+ network === NETWORK_SOLANA_MAINNET ||
+ network === NETWORK_SOLANA_DEVNET ||
+ network === 'solana'
+ )
+ return {
+ url: env.X402_FACILITATOR_URL_SOLANA,
+ token: env.X402_FACILITATOR_TOKEN_SOLANA,
+ kind: 'bearer',
+ };
+ if (
+ network === NETWORK_BASE_MAINNET ||
+ network === NETWORK_BASE_SEPOLIA ||
+ network === 'base'
+ ) {
+ // Prefer CDP when keys are configured — required for agentic.market /
+ // CDP Bazaar indexing. PayAI is a fine fallback for anyone running outside
+ // the Bazaar ecosystem.
+ if (env.CDP_API_KEY_ID && env.CDP_API_KEY_SECRET) {
+ return { url: env.X402_CDP_FACILITATOR_URL, kind: 'cdp' };
+ }
+ return {
+ url: env.X402_FACILITATOR_URL_BASE,
+ token: env.X402_FACILITATOR_TOKEN_BASE,
+ kind: 'bearer',
+ };
+ }
throw new X402Error('unsupported_network', `unsupported network: ${network}`, 400);
}
+// Coinbase Cloud / CDP API auth: per-request JWT signed with the account's
+// API secret. CDP issues two key formats today:
+// * Ed25519 — secret is base64-encoded 32-byte seed or 64-byte (seed||pub).
+// Newer CDP keys default to this. Signed with EdDSA.
+// * ECDSA P-256 — secret is a PEM-encoded EC private key. Signed with ES256.
+// The `uri` claim binds the JWT to the exact request, so we mint per-request.
+//
+// Spec: https://docs.cdp.coinbase.com/api-reference/v2/authentication
+function loadCdpKey() {
+ const secret = env.CDP_API_KEY_SECRET;
+ if (!secret) throw new X402Error('cdp_not_configured', 'CDP_API_KEY_SECRET not set', 500);
+ if (secret.includes('-----BEGIN')) {
+ let key;
+ try {
+ key = createPrivateKey({ key: secret, format: 'pem' });
+ } catch (err) {
+ throw new X402Error(
+ 'cdp_bad_key',
+ `CDP_API_KEY_SECRET PEM parse failed: ${err.message}`,
+ 500,
+ );
+ }
+ if (key.asymmetricKeyType !== 'ec') {
+ throw new X402Error('cdp_bad_key', 'CDP PEM secret must be an ECDSA P-256 key', 500);
+ }
+ return { alg: 'ES256', key };
+ }
+ // Base64-encoded raw Ed25519: 32-byte seed or 64-byte seed||pub.
+ let raw;
+ try {
+ raw = Buffer.from(secret, 'base64');
+ } catch (err) {
+ throw new X402Error(
+ 'cdp_bad_key',
+ `CDP_API_KEY_SECRET base64 decode failed: ${err.message}`,
+ 500,
+ );
+ }
+ const seed = raw.length === 64 ? raw.subarray(0, 32) : raw.length === 32 ? raw : null;
+ if (!seed) {
+ throw new X402Error(
+ 'cdp_bad_key',
+ `CDP_API_KEY_SECRET: expected PEM EC key or 32/64-byte base64 Ed25519 (got ${raw.length} bytes)`,
+ 500,
+ );
+ }
+ // Wrap raw seed in PKCS#8 DER so node:crypto accepts it.
+ const pkcs8 = Buffer.concat([Buffer.from('302e020100300506032b657004220420', 'hex'), seed]);
+ let key;
+ try {
+ key = createPrivateKey({ key: pkcs8, format: 'der', type: 'pkcs8' });
+ } catch (err) {
+ throw new X402Error('cdp_bad_key', `CDP Ed25519 key import failed: ${err.message}`, 500);
+ }
+ return { alg: 'EdDSA', key };
+}
+
+let cdpKeyCache = null;
+function cdpKey() {
+ if (!cdpKeyCache) cdpKeyCache = loadCdpKey();
+ return cdpKeyCache;
+}
+
+function b64url(input) {
+ return Buffer.from(input)
+ .toString('base64')
+ .replace(/=+$/, '')
+ .replace(/\+/g, '-')
+ .replace(/\//g, '_');
+}
+
+function cdpAuthHeader(method, urlString) {
+ if (!env.CDP_API_KEY_ID) {
+ throw new X402Error('cdp_not_configured', 'CDP_API_KEY_ID not set', 500);
+ }
+ const { alg, key } = cdpKey();
+ const u = new URL(urlString);
+ const uri = `${method.toUpperCase()} ${u.host}${u.pathname}`;
+ const now = Math.floor(Date.now() / 1000);
+ const header = {
+ alg,
+ kid: env.CDP_API_KEY_ID,
+ typ: 'JWT',
+ nonce: randomBytes(16).toString('hex'),
+ };
+ const payload = { iss: 'cdp', nbf: now, exp: now + 120, sub: env.CDP_API_KEY_ID, uri };
+ const signingInput = `${b64url(JSON.stringify(header))}.${b64url(JSON.stringify(payload))}`;
+
+ let sigBuf;
+ if (alg === 'ES256') {
+ // Node returns DER-encoded ECDSA; JOSE wants raw r||s.
+ const der = createSign('SHA256').update(signingInput).sign({ key, dsaEncoding: 'der' });
+ sigBuf = derToJoseEcdsa(der, 32);
+ } else {
+ // EdDSA: crypto.sign(null, msg, key) returns the raw 64-byte signature.
+ sigBuf = sign(null, Buffer.from(signingInput, 'utf8'), key);
+ }
+ return `Bearer ${signingInput}.${b64url(sigBuf)}`;
+}
+
+// Convert DER-encoded ECDSA signature (SEQUENCE { INTEGER r, INTEGER s })
+// into the JOSE r||s form. Each integer is padded/truncated to `keyBytes`.
+function derToJoseEcdsa(der, keyBytes) {
+ let offset = 2; // skip SEQUENCE tag + length (length always 1 byte for P-256: r,s ≤ 33 each)
+ if (der[1] & 0x80) offset = 2 + (der[1] & 0x7f); // long-form length, rare for P-256 but handle it
+ if (der[offset] !== 0x02)
+ throw new X402Error('cdp_bad_signature', 'malformed ECDSA r tag', 500);
+ const rLen = der[offset + 1];
+ let r = der.slice(offset + 2, offset + 2 + rLen);
+ offset = offset + 2 + rLen;
+ if (der[offset] !== 0x02)
+ throw new X402Error('cdp_bad_signature', 'malformed ECDSA s tag', 500);
+ const sLen = der[offset + 1];
+ let s = der.slice(offset + 2, offset + 2 + sLen);
+ // Strip leading zero padding inserted by DER to keep INTEGERs positive.
+ while (r.length > keyBytes && r[0] === 0x00) r = r.slice(1);
+ while (s.length > keyBytes && s[0] === 0x00) s = s.slice(1);
+ const out = Buffer.alloc(keyBytes * 2);
+ r.copy(out, keyBytes - r.length);
+ s.copy(out, keyBytes * 2 - s.length);
+ return out;
+}
+
function decodePaymentHeader(header) {
if (!header) throw new X402Error('payment_required', 'X-PAYMENT header required', 402);
let json;
try {
json = Buffer.from(String(header), 'base64').toString('utf8');
} catch (err) {
- throw new X402Error('invalid_payment', `X-PAYMENT base64 decode failed: ${err.message}`, 400);
+ throw new X402Error(
+ 'invalid_payment',
+ `X-PAYMENT base64 decode failed: ${err.message}`,
+ 400,
+ );
}
let payload;
try {
@@ -120,11 +275,15 @@ function hostOf(url) {
}
async function callFacilitator(network, path, body) {
- const { url: base, token } = facilitatorFor(network);
+ const { url: base, token, kind } = facilitatorFor(network);
const url = `${base}${path}`;
const host = hostOf(base);
const headers = { 'content-type': 'application/json', accept: 'application/json' };
- if (token) headers.authorization = `Bearer ${token}`;
+ if (kind === 'cdp') {
+ headers.authorization = cdpAuthHeader('POST', url);
+ } else if (token) {
+ headers.authorization = `Bearer ${token}`;
+ }
let res;
try {
res = await fetch(url, {
@@ -178,15 +337,22 @@ export async function probeFacilitators() {
const results = [];
for (const t of targets) {
if (!t.url) {
- results.push({ network: t.network, ok: false, reason: 'no facilitator URL configured' });
+ results.push({
+ network: t.network,
+ ok: false,
+ reason: 'no facilitator URL configured',
+ });
continue;
}
let entry = seen.get(t.url);
if (!entry) {
entry = (async () => {
try {
- const res = await fetch(`${t.url}/supported`, {
- headers: { accept: 'application/json' },
+ const probeUrl = `${t.url}/supported`;
+ const headers = { accept: 'application/json' };
+ if (t.kind === 'cdp') headers.authorization = cdpAuthHeader('GET', probeUrl);
+ const res = await fetch(probeUrl, {
+ headers,
signal: AbortSignal.timeout(10_000),
});
if (!res.ok) return { error: `status ${res.status}` };
@@ -209,7 +375,10 @@ export async function probeFacilitators() {
continue;
}
const supports = data.kinds.some(
- (k) => k.scheme === 'exact' && k.network === t.network && (k.x402Version ?? 1) === X402_VERSION,
+ (k) =>
+ k.scheme === 'exact' &&
+ k.network === t.network &&
+ (k.x402Version ?? 1) === X402_VERSION,
);
results.push({
network: t.network,
@@ -295,76 +464,93 @@ export function encodePaymentResponseHeader(settleResult) {
export const RESOURCE_DESCRIPTION =
'three.ws MCP — Streamable HTTP transport (MCP 2025-06-18) exposing 3D avatar viewer, glTF/GLB model validation/inspection/optimization, and Solana agent data as JSON-RPC 2.0 tool calls. Pay-per-call in USDC on Base mainnet (eip155:8453) or Solana mainnet. ≤256 tools/call output, ≤32-message JSON-RPC batches. Operated by three.ws.';
-// Bazaar discovery extension — agentic.market reads this to render input/output
-// hints in its catalog and to power its endpoint validator. Shape matches
-// declareDiscoveryExtension({ input, inputSchema, output:{example,schema}, bodyType }).
+// Bazaar discovery extension — shape required by agentic.market's validator.
+// `info.input.{type,method,body|queryParams|pathParams}` describes how to call
+// the resource; `info.output.{type,example}` shows what comes back; top-level
+// `schema` is the JSON Schema for the response body.
+//
+// This is the v2 `declareDiscoveryExtension` shape. The flat
+// `{method,input,inputSchema,output:{example,schema}}` shape v1 used is no
+// longer indexed by the CDP Bazaar.
export function bazaarExtension() {
+ const exampleBody = {
+ jsonrpc: '2.0',
+ id: 1,
+ method: 'tools/call',
+ params: {
+ name: 'validate_model',
+ arguments: { url: 'https://example.com/model.glb' },
+ },
+ };
+ const exampleResponse = {
+ jsonrpc: '2.0',
+ id: 1,
+ result: {
+ content: [
+ { type: 'text', text: '{"ok":true,"warnings":[],"meta":{"vertices":12345}}' },
+ ],
+ },
+ };
return {
- method: 'POST',
- bodyType: 'json',
discoverable: true,
- input: {
- jsonrpc: '2.0',
- id: 1,
- method: 'tools/call',
- params: {
- name: 'validate_model',
- arguments: { url: 'https://example.com/model.glb' },
+ info: {
+ input: {
+ type: 'http',
+ method: 'POST',
+ body: exampleBody,
+ bodyType: 'json',
+ bodySchema: {
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
+ type: 'object',
+ required: ['jsonrpc', 'method'],
+ properties: {
+ jsonrpc: { type: 'string', const: '2.0' },
+ id: { type: ['string', 'number'] },
+ method: {
+ type: 'string',
+ enum: ['initialize', 'tools/list', 'tools/call', 'ping'],
+ description: 'MCP JSON-RPC method.',
+ },
+ params: {
+ type: 'object',
+ description:
+ 'For tools/call: { name, arguments }. Tool names include validate_model, inspect_model, optimize_model, search_public_avatars, solana_register, solana_reputation, and others — see tools/list.',
+ },
+ },
+ },
+ },
+ output: {
+ type: 'json',
+ example: exampleResponse,
},
},
- inputSchema: {
+ schema: {
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
type: 'object',
- required: ['jsonrpc', 'method'],
properties: {
jsonrpc: { type: 'string', const: '2.0' },
id: { type: ['string', 'number'] },
- method: {
- type: 'string',
- enum: ['initialize', 'tools/list', 'tools/call', 'ping'],
- description: 'MCP JSON-RPC method.',
- },
- params: {
- type: 'object',
- description:
- 'For tools/call: { name, arguments }. Tool names include validate_model, inspect_model, optimize_model, search_public_avatars, solana_register, solana_reputation, and others — see tools/list.',
- },
- },
- },
- output: {
- example: {
- jsonrpc: '2.0',
- id: 1,
result: {
- content: [{ type: 'text', text: '{"ok":true,"warnings":[],"meta":{"vertices":12345}}' }],
- },
- },
- schema: {
- type: 'object',
- properties: {
- jsonrpc: { type: 'string', const: '2.0' },
- id: { type: ['string', 'number'] },
- result: {
- type: 'object',
- properties: {
- content: {
- type: 'array',
- items: {
- type: 'object',
- required: ['type', 'text'],
- properties: {
- type: { type: 'string', enum: ['text'] },
- text: { type: 'string' },
- },
+ type: 'object',
+ properties: {
+ content: {
+ type: 'array',
+ items: {
+ type: 'object',
+ required: ['type', 'text'],
+ properties: {
+ type: { type: 'string', enum: ['text'] },
+ text: { type: 'string' },
},
},
},
},
- error: {
- type: 'object',
- properties: {
- code: { type: 'number' },
- message: { type: 'string' },
- },
+ },
+ error: {
+ type: 'object',
+ properties: {
+ code: { type: 'number' },
+ message: { type: 'string' },
},
},
},
@@ -374,27 +560,35 @@ export function bazaarExtension() {
// Build the v2 PaymentRequired body. Top-level `resource` carries url/description/
// mimeType (per v2 spec); per-accept entries no longer repeat them.
-export function build402Body({ resourceUrl, accepts, error = 'X-PAYMENT header is required' }) {
+//
+// `description`, `mimeType`, and `bazaar` are per-route — each paid endpoint
+// wants its own catalog entry on agentic.market, not the MCP boilerplate.
+export function build402Body({
+ resourceUrl,
+ accepts,
+ error = 'X-PAYMENT header is required',
+ description = RESOURCE_DESCRIPTION,
+ mimeType = 'application/json',
+ bazaar = bazaarExtension(),
+}) {
return {
x402Version: X402_VERSION,
error,
- resource: {
- url: resourceUrl,
- description: RESOURCE_DESCRIPTION,
- mimeType: 'application/json',
- },
+ resource: { url: resourceUrl, description, mimeType },
accepts: Array.isArray(accepts) ? accepts : [accepts],
- extensions: {
- bazaar: bazaarExtension(),
- },
+ extensions: { bazaar },
};
}
-export function send402(res, { resourceUrl, accepts, error } = {}) {
+export function send402(res, opts = {}) {
res.statusCode = 402;
res.setHeader('content-type', 'application/json; charset=utf-8');
res.setHeader('cache-control', 'no-store');
- res.end(JSON.stringify(build402Body({ resourceUrl, accepts, error })));
+ // Also expose the envelope as the `payment-required` header (base64-JSON),
+ // matching the v2 wire format that agentic.market's validator inspects.
+ const body = build402Body(opts);
+ res.setHeader('payment-required', Buffer.from(JSON.stringify(body), 'utf8').toString('base64'));
+ res.end(JSON.stringify(body));
}
// Resolve the canonical resource URL the client hit, so the facilitator can
diff --git a/api/agents.js b/api/agents.js
index c34688dbe..156310396 100644
--- a/api/agents.js
+++ b/api/agents.js
@@ -388,7 +388,6 @@ function decorate(row, isOwner = true) {
token,
payments,
is_registered: Boolean(row.erc8004_agent_id) || !!onchain,
- onchain: Boolean(row.erc8004_agent_id) || !!onchain,
created_at: row.created_at,
};
// Voice clone fields are public (voice_id is needed by the runtime to select TTS).
diff --git a/api/insights/revenue-vision.js b/api/insights/revenue-vision.js
new file mode 100644
index 000000000..eb2296660
--- /dev/null
+++ b/api/insights/revenue-vision.js
@@ -0,0 +1,207 @@
+// GET /api/insights/revenue-vision — paid endpoint listed on agentic.market.
+//
+// x402 v2 + CDP facilitator. Charges $0.001 USDC on Base mainnet per call.
+// On a valid payment, hands the caller's mission_brief to Claude and returns
+// a structured { power_mode, insight, recommended_move, confidence } object.
+//
+// First successful settle through the CDP facilitator is what triggers Bazaar
+// indexing — see api/x402-status for facilitator wiring health.
+
+import { z } from 'zod';
+import { cors, error, json, method, wrap } from '../_lib/http.js';
+import { env } from '../_lib/env.js';
+import {
+ NETWORK_BASE_MAINNET,
+ X402Error,
+ encodePaymentResponseHeader,
+ paymentRequirements,
+ resolveResourceUrl,
+ send402,
+ settlePayment,
+ verifyPayment,
+} from '../_lib/x402-spec.js';
+
+const RESOURCE_DESCRIPTION =
+ 'Revenue Vision — agentic growth analysis for AI buyers. Pay $0.001 USDC on Base mainnet, hand over a mission_brief, and get back a prioritized next-best growth move with a structured confidence rating. Powered by Claude.';
+
+const inputExample = {
+ agent_codename: 'ledger-bot',
+ power_request: 'revenue-vision',
+ mission_brief: 'Find the highest-converting buyer segment this week.',
+};
+
+const outputExample = {
+ power_mode: 'revenue-vision',
+ insight:
+ 'Developer teams at 10–50 employees convert 2.4x better than enterprise prospects on the current funnel.',
+ recommended_move:
+ 'Shift 30% of the paid-acquisition budget to builder-focused onboarding campaigns this sprint.',
+ confidence: 'high',
+};
+
+const inputSchema = {
+ type: 'object',
+ required: ['agent_codename', 'power_request', 'mission_brief'],
+ properties: {
+ agent_codename: {
+ type: 'string',
+ description: 'Caller agent name for attribution and rate-limit telemetry.',
+ },
+ power_request: {
+ type: 'string',
+ enum: ['revenue-vision'],
+ description: 'Power mode requested. Currently only "revenue-vision".',
+ },
+ mission_brief: {
+ type: 'string',
+ minLength: 4,
+ maxLength: 4000,
+ description: 'Free-text growth question or hypothesis to analyze.',
+ },
+ },
+};
+
+const outputSchema = {
+ type: 'object',
+ required: ['power_mode', 'insight', 'recommended_move', 'confidence'],
+ properties: {
+ power_mode: { type: 'string', enum: ['revenue-vision'] },
+ insight: {
+ type: 'string',
+ description: 'A specific, data-grounded observation about the mission.',
+ },
+ recommended_move: {
+ type: 'string',
+ description: 'A single tactical action the caller should take next.',
+ },
+ confidence: { type: 'string', enum: ['high', 'medium', 'low'] },
+ },
+};
+
+function bazaarRevenueVision() {
+ return {
+ method: 'GET',
+ discoverable: true,
+ input: inputExample,
+ inputSchema,
+ output: { example: outputExample, schema: outputSchema },
+ };
+}
+
+const querySchema = z.object({
+ agent_codename: z.string().min(1).max(120),
+ power_request: z.literal('revenue-vision'),
+ mission_brief: z.string().min(4).max(4000),
+});
+
+function baseAccepts() {
+ const all = paymentRequirements();
+ const base = all.filter((a) => a.network === NETWORK_BASE_MAINNET);
+ if (!base.length) {
+ throw new X402Error(
+ 'misconfigured',
+ 'X402_PAY_TO_BASE / X402_ASSET_ADDRESS_BASE must be set to advertise Base mainnet payments',
+ 500,
+ );
+ }
+ return base;
+}
+
+async function callClaude(missionBrief, agentCodename) {
+ const upstream = await fetch('https://api.anthropic.com/v1/messages', {
+ method: 'POST',
+ headers: {
+ 'content-type': 'application/json',
+ 'anthropic-version': '2023-06-01',
+ 'x-api-key': env.ANTHROPIC_API_KEY,
+ },
+ body: JSON.stringify({
+ model: 'claude-sonnet-4-6',
+ max_tokens: 800,
+ system: 'You are Revenue Vision, an agentic growth analyst. Reply with a single JSON object exactly matching the schema {"power_mode":"revenue-vision","insight":string,"recommended_move":string,"confidence":"high"|"medium"|"low"}. The insight should be specific and quantitative when possible. The recommended_move should be one concrete tactical action. Calibrate confidence honestly: "high" only when you can defend the claim, otherwise "medium" or "low". No prose, no markdown, no preamble.',
+ messages: [
+ {
+ role: 'user',
+ content: `Caller agent: ${agentCodename}\nMission brief: ${missionBrief}\n\nReturn the JSON object only.`,
+ },
+ ],
+ }),
+ signal: AbortSignal.timeout(20_000),
+ });
+ if (!upstream.ok) {
+ const errText = await upstream.text();
+ throw new X402Error(
+ 'upstream_error',
+ `Claude returned ${upstream.status}: ${errText.slice(0, 300)}`,
+ 502,
+ );
+ }
+ const data = await upstream.json();
+ const text = data?.content?.find?.((b) => b.type === 'text')?.text || '';
+ let parsed;
+ try {
+ const match = text.match(/\{[\s\S]*\}/);
+ parsed = JSON.parse(match ? match[0] : text);
+ } catch (err) {
+ throw new X402Error('upstream_error', `Claude returned non-JSON: ${err.message}`, 502);
+ }
+ const allowedConfidence = new Set(['high', 'medium', 'low']);
+ return {
+ power_mode: 'revenue-vision',
+ insight: String(parsed.insight || '').trim(),
+ recommended_move: String(parsed.recommended_move || '').trim(),
+ confidence: allowedConfidence.has(parsed.confidence) ? parsed.confidence : 'medium',
+ };
+}
+
+export default wrap(async (req, res) => {
+ if (cors(req, res, { origins: '*', methods: 'GET,OPTIONS' })) return;
+ if (!method(req, res, ['GET'])) return;
+
+ const accepts = baseAccepts();
+ const resourceUrl = resolveResourceUrl(req, '/api/insights/revenue-vision');
+ const send402Here = (message) =>
+ send402(res, {
+ resourceUrl,
+ accepts,
+ error: message || 'X-PAYMENT header is required',
+ description: RESOURCE_DESCRIPTION,
+ bazaar: bazaarRevenueVision(),
+ });
+
+ const paymentHeader = req.headers['x-payment'] || req.headers['X-PAYMENT'];
+ if (!paymentHeader) return send402Here();
+
+ const url = new URL(req.url, 'http://x');
+ const query = {
+ agent_codename: url.searchParams.get('agent_codename') || '',
+ power_request: url.searchParams.get('power_request') || '',
+ mission_brief: url.searchParams.get('mission_brief') || '',
+ };
+ const parsed = querySchema.safeParse(query);
+ if (!parsed.success) {
+ return error(
+ res,
+ 400,
+ 'validation_error',
+ parsed.error.issues.map((i) => `${i.path.join('.')}: ${i.message}`).join('; '),
+ );
+ }
+
+ let verified;
+ try {
+ verified = await verifyPayment({ paymentHeader, requirements: accepts });
+ } catch (err) {
+ if (err instanceof X402Error && err.status === 402) return send402Here(err.message);
+ throw err;
+ }
+
+ const result = await callClaude(parsed.data.mission_brief, parsed.data.agent_codename);
+ const settled = await settlePayment({
+ paymentPayload: verified.paymentPayload,
+ requirement: verified.requirement,
+ });
+
+ res.setHeader('payment-response', encodePaymentResponseHeader(settled));
+ return json(res, 200, result);
+});
diff --git a/api/wk.js b/api/wk.js
index 685487614..d18a45c04 100644
--- a/api/wk.js
+++ b/api/wk.js
@@ -106,11 +106,12 @@ const RAW_AMOUNT_TO_USDC = (raw) => {
function handleX402Discovery(req, res) {
const origin = env.APP_ORIGIN;
const mcpUrl = `${origin}/api/mcp`;
+ const modelCheckUrl = `${origin}/api/x402/model-check`;
const price = RAW_AMOUNT_TO_USDC(env.X402_MAX_AMOUNT_REQUIRED);
- const accepts = [];
+ const mcpAccepts = [];
if (env.X402_PAY_TO_BASE) {
- accepts.push({
+ mcpAccepts.push({
scheme: 'exact',
network: NETWORK_BASE_MAINNET,
network_label: 'base-mainnet',
@@ -124,7 +125,7 @@ function handleX402Discovery(req, res) {
});
}
if (env.X402_PAY_TO_SOLANA) {
- accepts.push({
+ mcpAccepts.push({
scheme: 'exact',
network: NETWORK_SOLANA_MAINNET,
network_label: 'solana-mainnet',
@@ -138,24 +139,78 @@ function handleX402Discovery(req, res) {
});
}
+ // /api/x402/model-check is the CDP-Bazaar-cataloged endpoint. CDP supports
+ // Base mainnet + Arbitrum One; advertise both here so agentic.market shows
+ // the same network options buyers will see in the live 402 challenge.
+ const ARB_USDC = env.X402_ASSET_ADDRESS_ARBITRUM;
+ const modelCheckAccepts = [
+ {
+ scheme: 'exact',
+ network: NETWORK_BASE_MAINNET,
+ network_label: 'base-mainnet',
+ amount: env.X402_MAX_AMOUNT_REQUIRED,
+ price,
+ payTo: env.X402_PAY_TO_BASE,
+ asset: env.X402_ASSET_ADDRESS_BASE,
+ asset_symbol: 'USDC',
+ maxTimeoutSeconds: 60,
+ extra: { name: 'USDC', version: '2', decimals: 6 },
+ },
+ {
+ scheme: 'exact',
+ network: 'eip155:42161',
+ network_label: 'arbitrum-one',
+ amount: env.X402_MAX_AMOUNT_REQUIRED,
+ price,
+ payTo: env.X402_PAY_TO_BASE,
+ asset: ARB_USDC,
+ asset_symbol: 'USDC',
+ maxTimeoutSeconds: 60,
+ extra: { name: 'USDC', version: '2', decimals: 6 },
+ },
+ ];
+
return json(res, 200, {
$schema: 'https://x402.org/schemas/discovery.json',
service: {
name: 'three.ws',
legal_name: 'three.ws',
tagline: 'AI-powered 3D model viewer and validation agent.',
- description: 'three.ws is an agent-first 3D model platform. Drag-and-drop glTF/GLB preview, model validation/inspection/optimization, plus Solana agent data — all reachable as MCP tool calls behind a single x402 v1 endpoint. USDC on Solana mainnet and Base mainnet.',
+ description: 'three.ws is an agent-first 3D model platform. Drag-and-drop glTF/GLB preview, model validation/inspection/optimization, plus Solana agent data — reachable both as MCP tool calls and as paid REST endpoints (x402 v2). USDC on Base, Arbitrum, and Solana mainnet.',
operator: 'three.ws',
mission: 'Make 3D model tooling and Solana agent data machine-native so any AI agent can transact with the HTTP 402 protocol.',
website: origin,
docs: `${origin}/docs/mcp`,
repository: 'https://github.com/nirholas/three.ws',
contact: `${origin}/`,
- tags: ['x402', 'x402-v1', 'mcp', 'agent-first', '3d', 'gltf', 'glb', 'three-js', 'solana', 'base', 'usdc'],
+ tags: ['x402', 'x402-v2', 'mcp', 'agent-first', '3d', 'gltf', 'glb', 'three-js', 'solana', 'base', 'arbitrum', 'usdc'],
environment: 'apex',
origin,
},
resources: [
+ {
+ path: '/api/x402/model-check',
+ url: modelCheckUrl,
+ method: 'GET',
+ description:
+ 'Fetches a glTF/GLB model from a URL and returns structural stats (vertex/triangle counts, materials, textures, animations, extensions) plus a prioritized list of optimization recommendations. Single GET, ?url=…. CDP-Bazaar-cataloged.',
+ mimeType: 'application/json',
+ accepts: modelCheckAccepts,
+ extensions: {
+ bazaar: {
+ method: 'GET',
+ discoverable: true,
+ input: { url: 'https://three.ws/avatar/character-studio/sample.glb' },
+ inputSchema: {
+ type: 'object',
+ required: ['url'],
+ properties: {
+ url: { type: 'string', format: 'uri', description: 'Public HTTPS URL of a glTF/GLB model.' },
+ },
+ },
+ },
+ },
+ },
{
path: '/api/mcp',
url: mcpUrl,
@@ -163,7 +218,7 @@ function handleX402Discovery(req, res) {
description:
'MCP 2025-06-18 Streamable HTTP transport — 3D avatar viewer, glTF model validation/inspection/optimization, and Solana agent data exposed as MCP tools. JSON-RPC 2.0 batch-aware. Currency: USDC.',
mimeType: 'application/json',
- accepts,
+ accepts: mcpAccepts,
extensions: { bazaar: bazaarExtension() },
links: {
openapi: `${origin}/openapi.json`,
diff --git a/api/x402/model-check.js b/api/x402/model-check.js
new file mode 100644
index 000000000..4abd8c8e3
--- /dev/null
+++ b/api/x402/model-check.js
@@ -0,0 +1,274 @@
+// GET /api/x402/model-check?url=<glb-or-gltf>
+//
+// Paid endpoint cataloged by the CDP x402 Bazaar (agentic.market). For $0.001
+// USDC on Base or Arbitrum mainnet the server fetches the model bytes, runs
+// the glTF-Transform inspector, and returns structural stats + optimization
+// hints. Buyers pay programmatically with @x402/fetch — no API keys.
+//
+// Wire stack (all official, all v2):
+// • @x402/express paymentMiddleware → Express adapter
+// • @x402/core x402ResourceServer + HTTPFacilitatorClient
+// • @x402/evm ExactEvmScheme (eip155:* networks)
+// • @x402/extensions declareDiscoveryExtension → bazaar discovery shape
+// • @coinbase/x402 facilitator config with ES256 JWT auth (CDP)
+//
+// Bazaar listing requires settlement through the CDP facilitator — that's the
+// only one whose verify+settle log feeds the catalog. CDP_API_KEY_ID and
+// CDP_API_KEY_SECRET must be set in Vercel; @coinbase/x402's `facilitator`
+// reads them itself via createAuthHeaders.
+
+import express from 'express';
+import { paymentMiddleware, x402ResourceServer } from '@x402/express';
+import { ExactEvmScheme } from '@x402/evm/exact/server';
+import { HTTPFacilitatorClient } from '@x402/core/server';
+import { declareDiscoveryExtension } from '@x402/extensions/bazaar';
+import { facilitator as cdpFacilitator } from '@coinbase/x402';
+
+import { env } from '../_lib/env.js';
+import { inspectModel, suggestOptimizations } from '../_lib/model-inspect.js';
+
+const NETWORK_BASE = 'eip155:8453';
+const NETWORK_ARBITRUM = 'eip155:42161';
+const USDC_BASE = '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913';
+
+const ASSET_FOR_NETWORK = {
+ [NETWORK_BASE]: USDC_BASE,
+ [NETWORK_ARBITRUM]: env.X402_ASSET_ADDRESS_ARBITRUM,
+};
+
+const PAY_TO = env.X402_PAY_TO_BASE;
+const PRICE = '$0.001';
+const ROUTE = '/api/x402/model-check';
+const MAX_FETCH_BYTES = 16 * 1024 * 1024;
+
+function buildAccepts() {
+ return env.X402_EVM_NETWORKS
+ .filter((n) => ASSET_FOR_NETWORK[n])
+ .map((network) => ({
+ scheme: 'exact',
+ network,
+ price: PRICE,
+ payTo: PAY_TO,
+ asset: ASSET_FOR_NETWORK[network],
+ extra: { name: 'USDC', version: '2', decimals: 6 },
+ }));
+}
+
+const facilitatorClient = new HTTPFacilitatorClient(cdpFacilitator);
+
+let resourceServer = new x402ResourceServer(facilitatorClient);
+for (const network of env.X402_EVM_NETWORKS) {
+ if (!ASSET_FOR_NETWORK[network]) continue;
+ resourceServer = resourceServer.register(network, new ExactEvmScheme());
+}
+
+const ROUTE_DESCRIPTION =
+ 'three.ws Model Check — fetch a glTF/GLB model from a URL, run the canonical ' +
+ 'glTF-Transform inspector, and return structural stats (vertices, triangles, ' +
+ 'materials, textures, animations, extensions) plus a prioritized list of ' +
+ 'optimization recommendations. Useful for any agent vetting a 3D asset before ' +
+ 'minting, embedding, or paying for it. Pay-per-call in USDC on Base or Arbitrum mainnet.';
+
+const DISCOVERY_INPUT_EXAMPLE = {
+ url: 'https://three.ws/avatar/character-studio/sample.glb',
+};
+
+const DISCOVERY_INPUT_SCHEMA = {
+ type: 'object',
+ required: ['url'],
+ properties: {
+ url: {
+ type: 'string',
+ format: 'uri',
+ description: 'Public HTTPS URL of a glTF (.gltf) or binary glTF (.glb) model. Max 16 MiB.',
+ },
+ },
+};
+
+const DISCOVERY_OUTPUT_EXAMPLE = {
+ url: 'https://three.ws/avatar/character-studio/sample.glb',
+ fetchedBytes: 1572864,
+ model: {
+ container: 'glb',
+ generator: 'three.ws CharacterStudio v1.5',
+ version: '2.0',
+ extensionsUsed: ['KHR_materials_unlit'],
+ extensionsRequired: [],
+ counts: {
+ scenes: 1,
+ nodes: 18,
+ meshes: 6,
+ materials: 4,
+ textures: 3,
+ animations: 1,
+ skins: 1,
+ totalVertices: 12480,
+ totalTriangles: 24812,
+ indexedPrimitives: 6,
+ nonIndexedPrimitives: 0,
+ },
+ },
+ suggestions: [
+ {
+ id: 'texture_size',
+ severity: 'info',
+ message: 'All textures are within 1024x1024 — good for mobile.',
+ },
+ ],
+};
+
+const DISCOVERY_OUTPUT_SCHEMA = {
+ type: 'object',
+ required: ['url', 'fetchedBytes', 'model', 'suggestions'],
+ properties: {
+ url: { type: 'string', format: 'uri' },
+ fetchedBytes: { type: 'integer' },
+ model: {
+ type: 'object',
+ required: ['container', 'counts'],
+ properties: {
+ container: { type: 'string', enum: ['glb', 'gltf'] },
+ generator: { type: ['string', 'null'] },
+ version: { type: ['string', 'null'] },
+ extensionsUsed: { type: 'array', items: { type: 'string' } },
+ extensionsRequired: { type: 'array', items: { type: 'string' } },
+ counts: {
+ type: 'object',
+ properties: {
+ scenes: { type: 'integer' },
+ nodes: { type: 'integer' },
+ meshes: { type: 'integer' },
+ materials: { type: 'integer' },
+ textures: { type: 'integer' },
+ animations: { type: 'integer' },
+ skins: { type: 'integer' },
+ totalVertices: { type: 'integer' },
+ totalTriangles: { type: 'integer' },
+ indexedPrimitives: { type: 'integer' },
+ nonIndexedPrimitives: { type: 'integer' },
+ },
+ },
+ },
+ },
+ suggestions: {
+ type: 'array',
+ items: {
+ type: 'object',
+ required: ['id', 'severity', 'message'],
+ properties: {
+ id: { type: 'string' },
+ severity: { type: 'string', enum: ['info', 'warn', 'critical'] },
+ message: { type: 'string' },
+ estimate: { type: 'string' },
+ },
+ },
+ },
+ },
+};
+
+const routeConfig = {
+ [`GET ${ROUTE}`]: {
+ accepts: buildAccepts(),
+ description: ROUTE_DESCRIPTION,
+ mimeType: 'application/json',
+ extensions: {
+ ...declareDiscoveryExtension({
+ input: DISCOVERY_INPUT_EXAMPLE,
+ inputSchema: DISCOVERY_INPUT_SCHEMA,
+ output: {
+ example: DISCOVERY_OUTPUT_EXAMPLE,
+ schema: DISCOVERY_OUTPUT_SCHEMA,
+ },
+ }),
+ },
+ },
+};
+
+const app = express();
+
+// Middleware initializes by hitting the CDP facilitator's /supported endpoint
+// to discover advertised scheme/network pairs. Requires CDP_API_KEY_ID and
+// CDP_API_KEY_SECRET to be set — without them the first request returns 500
+// with "Failed to initialize: no supported payment kinds loaded".
+app.use(paymentMiddleware(routeConfig, resourceServer));
+
+app.get(ROUTE, async (req, res) => {
+ const target = String(req.query?.url || '').trim();
+ if (!target) {
+ return res.status(400).json({ error: 'missing_url', message: 'query param "url" is required' });
+ }
+ let parsed;
+ try {
+ parsed = new URL(target);
+ } catch {
+ return res.status(400).json({ error: 'invalid_url', message: 'url is not a valid URL' });
+ }
+ if (parsed.protocol !== 'https:' && parsed.protocol !== 'http:') {
+ return res.status(400).json({
+ error: 'invalid_url',
+ message: 'url must be http(s)',
+ });
+ }
+
+ let upstream;
+ try {
+ upstream = await fetch(parsed.toString(), {
+ redirect: 'follow',
+ headers: { accept: 'model/gltf-binary,model/gltf+json,application/octet-stream' },
+ signal: AbortSignal.timeout(20_000),
+ });
+ } catch (err) {
+ return res.status(502).json({
+ error: 'fetch_failed',
+ message: `could not fetch model: ${err.message}`,
+ });
+ }
+ if (!upstream.ok) {
+ return res.status(502).json({
+ error: 'fetch_failed',
+ message: `upstream returned ${upstream.status} ${upstream.statusText}`,
+ });
+ }
+
+ const contentLength = Number(upstream.headers.get('content-length') || 0);
+ if (contentLength && contentLength > MAX_FETCH_BYTES) {
+ return res.status(413).json({
+ error: 'too_large',
+ message: `model is ${contentLength} bytes; max is ${MAX_FETCH_BYTES}`,
+ });
+ }
+
+ const buf = new Uint8Array(await upstream.arrayBuffer());
+ if (buf.byteLength > MAX_FETCH_BYTES) {
+ return res.status(413).json({
+ error: 'too_large',
+ message: `model is ${buf.byteLength} bytes; max is ${MAX_FETCH_BYTES}`,
+ });
+ }
+
+ let info;
+ try {
+ info = await inspectModel(buf, { fileSize: buf.byteLength });
+ } catch (err) {
+ return res.status(422).json({
+ error: 'invalid_model',
+ message: err.message || 'failed to parse model',
+ });
+ }
+ const suggestions = suggestOptimizations(info);
+
+ res.setHeader('cache-control', 'no-store');
+ res.json({
+ url: parsed.toString(),
+ fetchedBytes: buf.byteLength,
+ model: info,
+ suggestions,
+ });
+});
+
+app.use((err, req, res, _next) => {
+ console.error('[x402/model-check] unhandled', err);
+ res.status(500).json({ error: 'internal_error', message: err?.message || 'unknown error' });
+});
+
+export default app;
diff --git a/app-demo.css b/app-demo.css
new file mode 100644
index 000000000..9c95faead
--- /dev/null
+++ b/app-demo.css
@@ -0,0 +1,452 @@
+/*
+ * app-demo.css — studio-skin override for /app
+ * Layered on top of style.css. Scoped to body.app-demo-body so it cannot
+ * leak into /app, /create, etc.
+ *
+ * Aesthetic sourced from /studio (public/studio/studio.css):
+ * - bg #0a0a0f, panels #14141c on #2a2a36, radius 14px
+ * - Inter 14/1.45, sticky 60px header with backdrop blur
+ * - accent #8b5cf6, active nav as filled purple pill
+ */
+
+body.app-demo-body {
+ background: #0a0a0f;
+ color: #eee;
+ font-family: 'Inter', system-ui, -apple-system, sans-serif;
+ font-size: 14px;
+ line-height: 1.45;
+}
+
+/* ---------- Header / nav ---------- */
+
+body.app-demo-body header {
+ position: sticky;
+ top: 0;
+ z-index: 50;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 1rem;
+ height: 60px;
+ min-height: 60px;
+ line-height: normal;
+ padding: 0 1.25rem;
+ background: rgba(10, 10, 15, 0.85);
+ backdrop-filter: blur(12px);
+ -webkit-backdrop-filter: blur(12px);
+ border-bottom: 1px solid rgba(255, 255, 255, 0.08);
+ box-shadow: none;
+}
+
+body.app-demo-body header h1 {
+ display: flex;
+ align-items: center;
+ gap: 0.55rem;
+ margin: 0;
+ font-size: 1rem;
+ font-weight: 600;
+ line-height: 1;
+}
+
+body.app-demo-body header h1 > a {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.55rem;
+ color: #eee;
+ text-decoration: none;
+ line-height: 1;
+}
+
+body.app-demo-body header h1 .wordmark-logo {
+ width: 28px;
+ height: 28px;
+}
+
+body.app-demo-body header h1 .wordmark-dot {
+ display: none;
+}
+
+body.app-demo-body .features-nav {
+ display: flex;
+ align-items: center;
+ gap: 0.25rem;
+ flex-wrap: wrap;
+ margin: 0;
+}
+
+body.app-demo-body .features-nav a {
+ position: static;
+ display: inline-flex;
+ align-items: center;
+ gap: 0.4rem;
+ padding: 0.45rem 0.85rem;
+ font: inherit;
+ font-size: 0.9rem;
+ font-weight: 500;
+ color: #c8c8d4;
+ text-decoration: none;
+ background: transparent;
+ border: 1px solid transparent;
+ border-radius: 10px;
+ letter-spacing: 0;
+ text-transform: none;
+ transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
+}
+
+body.app-demo-body .features-nav a:hover {
+ color: #fff;
+ background: rgba(255, 255, 255, 0.04);
+}
+
+body.app-demo-body .features-nav a.active,
+body.app-demo-body .features-nav a[aria-current='page'] {
+ color: #fff;
+ background: #8b5cf6;
+ border-color: #8b5cf6;
+}
+
+body.app-demo-body .features-nav a.active::after,
+body.app-demo-body .features-nav a[aria-current='page']::after {
+ content: none;
+}
+
+/* Pill action buttons in the header (Save / Make widget / Deploy / Public profile) */
+body.app-demo-body .save-to-account-btn,
+body.app-demo-body .make-widget-btn,
+body.app-demo-body .deploy-onchain-btn,
+body.app-demo-body .view-public-profile-btn,
+body.app-demo-body .nav-dashboard {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.4rem;
+ padding: 0.45rem 0.85rem;
+ font: inherit;
+ font-size: 0.85rem;
+ font-weight: 500;
+ color: #c8c8d4;
+ background: rgba(255, 255, 255, 0.04);
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ border-radius: 10px;
+ text-decoration: none;
+ letter-spacing: 0;
+ text-transform: none;
+ box-shadow: none;
+ cursor: pointer;
+ transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
+}
+
+body.app-demo-body .save-to-account-btn:hover,
+body.app-demo-body .make-widget-btn:hover,
+body.app-demo-body .deploy-onchain-btn:hover,
+body.app-demo-body .view-public-profile-btn:hover,
+body.app-demo-body .nav-dashboard:hover {
+ color: #fff;
+ background: rgba(255, 255, 255, 0.08);
+ border-color: rgba(255, 255, 255, 0.2);
+}
+
+/* Sign in / Sign out / user menu trigger — ghost-outline like studio */
+body.app-demo-body .nav-sign-in,
+body.app-demo-body .nav-user {
+ padding: 0.45rem 0.95rem;
+ font: inherit;
+ font-size: 0.85rem;
+ font-weight: 500;
+ color: #eee;
+ background: transparent;
+ border: 1px solid rgba(255, 255, 255, 0.18);
+ border-radius: 10px;
+ box-shadow: none;
+ letter-spacing: 0;
+ text-transform: none;
+}
+
+body.app-demo-body .nav-sign-in:hover,
+body.app-demo-body .nav-user:hover {
+ background: rgba(255, 255, 255, 0.06);
+ border-color: rgba(255, 255, 255, 0.3);
+}
+
+body.app-demo-body .nav-user::before {
+ display: none;
+}
+
+body.app-demo-body .nav-user-menu {
+ background: #14141c;
+ border: 1px solid #2a2a36;
+ border-radius: 12px;
+ box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
+ padding: 0.35rem;
+}
+
+body.app-demo-body .nav-user-menu-item {
+ border-radius: 8px;
+ color: #c8c8d4;
+}
+
+body.app-demo-body .nav-user-menu-item:hover {
+ background: rgba(255, 255, 255, 0.06);
+ color: #fff;
+}
+
+body.app-demo-body .nav-user-menu-sep {
+ background: rgba(255, 255, 255, 0.08);
+}
+
+/* ---------- Viewer wrap / viewer container ---------- */
+
+body.app-demo-body .wrap {
+ min-height: calc(100vh - 60px);
+ padding: 1rem;
+ max-width: 1600px;
+ margin: 0 auto;
+ box-sizing: border-box;
+}
+
+body.app-demo-body .viewer-container {
+ border-radius: 14px;
+ overflow: hidden;
+ border: 1px solid #2a2a36;
+ background:
+ linear-gradient(45deg, #14141c 25%, transparent 25%) -8px 0,
+ linear-gradient(-45deg, #14141c 25%, transparent 25%) -8px 0,
+ linear-gradient(45deg, transparent 75%, #14141c 75%),
+ linear-gradient(-45deg, transparent 75%, #14141c 75%),
+ #0f0f15;
+ background-size: 16px 16px;
+}
+
+/* ---------- Bottom dropzone bar — turn it into a centered panel ---------- */
+
+body.app-demo-body .dropzone {
+ position: fixed;
+ left: 50%;
+ bottom: 1.25rem;
+ transform: translateX(-50%);
+ width: auto;
+ max-width: calc(100vw - 2.5rem);
+ display: inline-flex;
+ align-items: center;
+ gap: 0.85rem;
+ padding: 0.65rem 0.85rem;
+ background: #14141c;
+ border: 1px solid #2a2a36;
+ border-radius: 14px;
+ box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
+ backdrop-filter: blur(8px);
+ -webkit-backdrop-filter: blur(8px);
+}
+
+body.app-demo-body .dropzone .upload-btn label {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.45rem;
+ padding: 0.5rem 0.95rem;
+ font: inherit;
+ font-size: 0.85rem;
+ font-weight: 500;
+ color: #fff;
+ background: #8b5cf6;
+ border: 1px solid #8b5cf6;
+ border-radius: 10px;
+ box-shadow: none;
+ letter-spacing: 0;
+ text-transform: none;
+ cursor: pointer;
+ transition: background 0.15s ease, border-color 0.15s ease;
+}
+
+body.app-demo-body .dropzone .upload-btn label:hover {
+ background: #7c4ef0;
+ border-color: #7c4ef0;
+}
+
+body.app-demo-body .dropzone .upload-btn label:active {
+ background: #6d3fe2;
+ border-color: #6d3fe2;
+}
+
+body.app-demo-body .dropzone .upload-btn svg {
+ fill: currentColor;
+}
+
+body.app-demo-body .drop-hint {
+ color: rgba(232, 232, 232, 0.55);
+ font-size: 0.82rem;
+ font-weight: 400;
+ letter-spacing: 0;
+ text-transform: none;
+}
+
+body.app-demo-body .create-avatar-btn {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.4rem;
+ padding: 0.5rem 0.85rem;
+ font: inherit;
+ font-size: 0.85rem;
+ font-weight: 500;
+ color: #c8c8d4;
+ background: rgba(255, 255, 255, 0.04);
+ border: 1px solid rgba(255, 255, 255, 0.12);
+ border-radius: 10px;
+ text-decoration: none;
+ letter-spacing: 0;
+ text-transform: none;
+ box-shadow: none;
+}
+
+body.app-demo-body .create-avatar-btn:hover {
+ color: #fff;
+ background: rgba(255, 255, 255, 0.08);
+ border-color: rgba(255, 255, 255, 0.22);
+}
+
+body.app-demo-body .create-avatar-btn svg {
+ fill: currentColor;
+}
+
+/* ---------- Auth gate aside — re-skin as a studio panel ---------- */
+
+body.app-demo-body .auth-gate {
+ background: #14141c;
+ border: 1px solid #2a2a36;
+ border-radius: 14px;
+ box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
+ padding: 1.25rem 1.4rem 1.4rem;
+}
+
+body.app-demo-body .auth-gate__inner {
+ gap: 0.75rem;
+}
+
+body.app-demo-body .auth-gate__eyebrow {
+ color: #8b5cf6;
+ letter-spacing: 0.06em;
+ text-transform: uppercase;
+ font-size: 0.72rem;
+ font-weight: 600;
+}
+
+body.app-demo-body .auth-gate__title {
+ font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
+ font-size: 1.35rem;
+ font-weight: 600;
+ color: #fff;
+ letter-spacing: -0.01em;
+ margin: 0;
+}
+
+body.app-demo-body .auth-gate__desc {
+ color: rgba(232, 232, 232, 0.7);
+ font-size: 0.9rem;
+ line-height: 1.5;
+}
+
+body.app-demo-body .auth-gate__btn {
+ padding: 0.55rem 1rem;
+ font: inherit;
+ font-size: 0.88rem;
+ font-weight: 500;
+ color: #eee;
+ background: transparent;
+ border: 1px solid rgba(255, 255, 255, 0.18);
+ border-radius: 10px;
+ text-decoration: none;
+ letter-spacing: 0;
+ text-transform: none;
+}
+
+body.app-demo-body .auth-gate__btn:hover {
+ background: rgba(255, 255, 255, 0.06);
+ border-color: rgba(255, 255, 255, 0.3);
+}
+
+body.app-demo-body .auth-gate__btn--primary {
+ color: #fff;
+ background: #8b5cf6;
+ border-color: #8b5cf6;
+}
+
+body.app-demo-body .auth-gate__btn--primary:hover {
+ background: #7c4ef0;
+ border-color: #7c4ef0;
+}
+
+body.app-demo-body .auth-gate__perks li {
+ color: rgba(232, 232, 232, 0.65);
+ font-size: 0.85rem;
+}
+
+body.app-demo-body .auth-gate__perks li::before {
+ color: #8b5cf6;
+}
+
+/* ---------- Agent presence sidebar — soften into studio aesthetic ---------- */
+
+body.app-demo-body .agent-presence-sidebar {
+ background: #14141c;
+ border: 1px solid #2a2a36;
+ border-radius: 14px;
+ box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
+ overflow: hidden;
+}
+
+/* ---------- Onboarding banner ---------- */
+
+body.app-demo-body .agent-onboarding {
+ background: #14141c;
+ border: 1px solid #2a2a36;
+ border-radius: 14px;
+ box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
+}
+
+body.app-demo-body .agent-onboarding__title {
+ font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
+}
+
+body.app-demo-body .agent-onboarding__btn {
+ padding: 0.55rem 1rem;
+ font-size: 0.88rem;
+ font-weight: 500;
+ border: 1px solid rgba(255, 255, 255, 0.18);
+ border-radius: 10px;
+ background: transparent;
+ color: #eee;
+ letter-spacing: 0;
+ text-transform: none;
+}
+
+body.app-demo-body .agent-onboarding__btn--primary {
+ color: #fff;
+ background: #8b5cf6;
+ border-color: #8b5cf6;
+}
+
+body.app-demo-body .agent-onboarding__btn--primary:hover {
+ background: #7c4ef0;
+ border-color: #7c4ef0;
+}
+
+/* ---------- Demo banner — tiny indicator so the user knows this isn't /app ---------- */
+
+body.app-demo-body::before {
+ content: 'Studio-skin demo · /app-demo';
+ position: fixed;
+ left: 50%;
+ top: 0.4rem;
+ transform: translateX(-50%);
+ z-index: 60;
+ padding: 0.25rem 0.7rem;
+ font-size: 0.7rem;
+ font-weight: 500;
+ letter-spacing: 0.04em;
+ text-transform: uppercase;
+ color: #c4b8ff;
+ background: rgba(139, 92, 246, 0.15);
+ border: 1px solid rgba(139, 92, 246, 0.4);
+ border-radius: 999px;
+ pointer-events: none;
+}
+
+/* ---------- Embed/deploy/explore mode — leave layout choices from style.css alone ---------- */
diff --git a/app-demo.html b/app-demo.html
new file mode 100644
index 000000000..0012d55d6
--- /dev/null
+++ b/app-demo.html
@@ -0,0 +1,332 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+ <title>three.ws — Viewer (studio skin demo)</title>
+ <meta
+ name="viewport"
+ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"
+ />
+ <meta name="author" content="nirholas" />
+ <meta
+ name="description"
+ content="The first embodied 3D AI agent. Not a chatbot. A presence — with a body, a place, an identity, and memory."
+ />
+ <meta
+ name="keywords"
+ content="three.ws, AI agent, embodied AI, glTF viewer, GLB viewer, 3D model viewer, WebGL, three.js, ERC-8004, agent identity"
+ />
+ <meta name="theme-color" content="#000000" />
+
+ <!-- Open Graph -->
+ <meta property="og:type" content="website" />
+ <meta property="og:title" content="three.ws — The First Embodied AI Agent" />
+ <meta
+ property="og:description"
+ content="Agents have always been imagined as present. We made that real."
+ />
+ <meta property="og:url" content="https://three.ws/" />
+ <meta property="og:site_name" content="three.ws" />
+ <meta property="og:image" content="https://three.ws/assets/og-image.png">
+ <meta property="og:image:width" content="1200">
+ <meta property="og:image:height" content="630">
+
+ <!-- Twitter / X -->
+ <meta name="twitter:card" content="summary_large_image" />
+ <meta name="twitter:title" content="three.ws — Embodied AI" />
+ <meta
+ name="twitter:description"
+ content="The first three.ws with a body, a place, an identity, and memory."
+ />
+ <meta name="twitter:creator" content="@nichxbt" />
+ <meta name="twitter:image" content="https://three.ws/assets/og-image.png">
+
+ <link rel="canonical" href="https://three.ws/app-demo" />
+ <meta name="robots" content="noindex" />
+ <link rel="shortcut icon" href="/favicon.ico" />
+ <link rel="apple-touch-icon" href="/pwa-192x192.png" />
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
+ <link rel="stylesheet" href="style.css" />
+ <link rel="stylesheet" href="/footer.css" />
+ <link rel="stylesheet" href="/app-demo.css" />
+ <link
+ href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap"
+ rel="stylesheet"
+ />
+ <script defer type="module" src="/src/app.js"></script>
+ </head>
+ <body class="app-demo-body">
+ <header>
+ <h1>
+ <a href="/" aria-label="three.ws home"
+ ><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a
+ >
+ </h1>
+ <nav class="features-nav" aria-label="Primary">
+ <a href="/app" id="nav-viewer-link">Viewer</a>
+ <a href="/create">Create</a>
+ <a href="/features">Features</a>
+ <a href="/discover">Discover</a>
+ <a href="/widgets">Widgets</a>
+ <a href="/studio">Studio</a>
+ <a href="/chat">Chat</a>
+ <a href="/docs">Docs</a>
+ <a href="/my-agents">My Agents</a>
+ <a
+ class="save-to-account-btn"
+ id="save-to-account-btn"
+ hidden
+ title="Save this model to your account"
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="14"
+ height="14"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ stroke-width="2"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ aria-hidden="true"
+ >
+ <path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z" />
+ <polyline points="17 21 17 13 7 13 7 21" />
+ <polyline points="7 3 7 8 15 8" />
+ </svg>
+ <span>Save to account</span>
+ </a>
+ <a
+ class="make-widget-btn"
+ id="make-widget-btn"
+ href="/studio"
+ hidden
+ title="Save the current model as an embeddable widget"
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="14"
+ height="14"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ stroke-width="2"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ aria-hidden="true"
+ >
+ <rect x="3" y="3" width="7" height="7" rx="1" />
+ <rect x="14" y="3" width="7" height="7" rx="1" />
+ <rect x="3" y="14" width="7" height="7" rx="1" />
+ <rect x="14" y="14" width="7" height="7" rx="1" />
+ </svg>
+ <span>Make this a widget</span>
+ </a>
+ <a
+ class="deploy-onchain-btn"
+ id="deploy-onchain-btn"
+ hidden
+ aria-label="Publish this agent on-chain"
+ title="Publish this agent on-chain (ERC-8004)"
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="14"
+ height="14"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ stroke-width="2"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ aria-hidden="true"
+ focusable="false"
+ >
+ <polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2" />
+ <line x1="12" y1="2" x2="12" y2="22" />
+ <polyline points="22 8.5 12 15.5 2 8.5" />
+ </svg>
+ <span data-state-label>Deploy on-chain</span>
+ </a>
+ <a
+ class="view-public-profile-btn"
+ id="view-public-profile-btn"
+ hidden
+ target="_blank"
+ rel="noopener"
+ aria-label="Open this agent's public profile in a new tab"
+ title="Open this agent's public profile in a new tab"
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="14"
+ height="14"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ stroke-width="2"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ aria-hidden="true"
+ focusable="false"
+ >
+ <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />
+ <polyline points="15 3 21 3 21 9" />
+ <line x1="10" y1="14" x2="21" y2="3" />
+ </svg>
+ <span>Public profile</span>
+ </a>
+ <a href="/dashboard" class="nav-dashboard">Dashboard</a>
+ <div class="nav-user-wrap" id="nav-user-wrap" hidden>
+ <button class="nav-user" id="nav-user-btn" aria-haspopup="true" aria-expanded="false" type="button">
+ <span id="nav-user-label">Account</span>
+ </button>
+ <div class="nav-user-menu" id="nav-user-menu" role="menu" hidden>
+ <a href="/profile" id="nav-my-profile-link" class="nav-user-menu-item">My Profile</a>
+ <a href="/settings" class="nav-user-menu-item">Settings</a>
+ <a href="/dashboard" class="nav-user-menu-item">Dashboard</a>
+ <div class="nav-user-menu-sep" role="separator"></div>
+ <button class="nav-user-menu-item nav-user-menu-signout" id="nav-sign-out-btn" type="button">Sign out</button>
+ </div>
+ </div>
+ <a href="/login" class="nav-sign-in" id="nav-sign-in">Sign in</a>
+ </nav>
+ </header>
+
+ <main class="wrap">
+ <!-- Agent presence panel — rendered by AgentHome -->
+ <div class="agent-presence-sidebar" id="agent-presence-sidebar">
+ <div id="agent-home-container"></div>
+ </div>
+
+ <!-- Auth gate — shown only to anonymous visitors on the main viewer -->
+ <aside class="auth-gate" id="auth-gate">
+ <div class="auth-gate__inner">
+ <div class="auth-gate__eyebrow">
+ <span class="auth-gate__lock" aria-hidden="true">◎</span>
+ <span>Unlock the agent</span>
+ </div>
+ <h2 class="auth-gate__title">Your agent lives here</h2>
+ <p class="auth-gate__desc">
+ Sign in to access animations, scene controls, and your agent's on-chain
+ identity, memory, and skills.
+ </p>
+ <div class="auth-gate__actions">
+ <a class="auth-gate__btn auth-gate__btn--primary" href="/login">Sign in</a>
+ <a class="auth-gate__btn" href="/register">Create account</a>
+ </div>
+ <ul class="auth-gate__perks">
+ <li>Animations &amp; presence controls</li>
+ <li>Save avatars to your account</li>
+ <li>Register on-chain agent identity</li>
+ <li>Scene, lighting &amp; material editor</li>
+ </ul>
+ </div>
+ </aside>
+
+ <!-- First-time onboarding banner — shown once per agent after creation -->
+ <aside
+ class="agent-onboarding"
+ id="agent-onboarding"
+ role="dialog"
+ aria-labelledby="agent-onboarding-title"
+ hidden
+ >
+ <div class="agent-onboarding__inner">
+ <button
+ class="agent-onboarding__close"
+ id="agent-onboarding-close"
+ type="button"
+ aria-label="Dismiss welcome message"
+ >
+ ×
+ </button>
+ <h2 class="agent-onboarding__title" id="agent-onboarding-title">
+ Your agent is ready 🎉
+ </h2>
+ <p class="agent-onboarding__desc">
+ This is your agent's studio. Try an animation from the strip below, drop a
+ new GLB to swap its body, or publish it on-chain so anyone can find and
+ embed it.
+ </p>
+ <div class="agent-onboarding__actions">
+ <a
+ class="agent-onboarding__btn agent-onboarding__btn--primary"
+ href="/deploy"
+ id="agent-onboarding-deploy"
+ >Deploy on-chain →</a
+ >
+ <a
+ class="agent-onboarding__btn"
+ id="agent-onboarding-share"
+ target="_blank"
+ rel="noopener"
+ >View public profile</a
+ >
+ </div>
+ </div>
+ </aside>
+
+ <!-- 3D Viewer -->
+ <div class="viewer-container" id="viewer-container"></div>
+
+ <!-- Bottom bar -->
+ <div class="dropzone">
+ <div class="upload-btn">
+ <input type="file" name="file-input[]" id="file-input" multiple="" />
+ <label for="file-input">
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="20"
+ height="17"
+ viewBox="0 0 20 17"
+ >
+ <path
+ d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"
+ ></path>
+ </svg>
+ <span>Upload your own model</span>
+ </label>
+ </div>
+ <span class="drop-hint">or drag &amp; drop glTF / GLB anywhere</span>
+ <a
+ class="create-avatar-btn"
+ id="create-avatar-btn"
+ href="/create"
+ title="Create a custom 3D avatar from a selfie"
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="16"
+ height="16"
+ viewBox="0 0 24 24"
+ fill="currentColor"
+ >
+ <path
+ d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
+ />
+ </svg>
+ <span>Create Avatar</span>
+ </a>
+ </div>
+ <div class="spinner"></div>
+ </main>
+
+ <!-- Golden Ratio dev grid — toggle with Alt+G -->
+ <div class="phi-grid" id="phi-grid">
+ <div class="phi-grid-h"></div>
+ <div class="phi-grid-thirds"></div>
+ <div class="phi-grid-thirds-h"></div>
+ </div>
+ <div class="phi-grid-label" id="phi-grid-label">φ Grid — Alt+G to toggle</div>
+ <script>
+ document.addEventListener('keydown', function (e) {
+ if (e.altKey && e.key.toLowerCase() === 'g') {
+ document.getElementById('phi-grid').classList.toggle('visible');
+ }
+ });
+ </script>
+ </body>
+</html>
diff --git a/package-lock.json b/package-lock.json
index 63879c478..e467248eb 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -7,6 +7,7 @@
"": {
"name": "3d-agent",
"version": "1.5.1",
+ "hasInstallScript": true,
"license": "Apache-2.0",
"workspaces": [
"agent-payments-sdk",
@@ -18,6 +19,7 @@
"@aws-sdk/s3-request-presigner": "latest",
"@bonfida/spl-name-service": "^3.0.21",
"@chenglou/pretext": "^0.0.5",
+ "@coinbase/x402": "^2.1.0",
"@coral-xyz/anchor": "^0.31.1",
"@gltf-transform/core": "^4.3.0",
"@gltf-transform/extensions": "^4.3.0",
@@ -44,12 +46,17 @@
"@solana/web3.js": "latest",
"@upstash/ratelimit": "^2.0.5",
"@upstash/redis": "^1.34.3",
+ "@x402/core": "^2.11.0",
+ "@x402/evm": "^2.11.0",
+ "@x402/express": "^2.11.0",
+ "@x402/extensions": "^2.11.0",
"@zauthx402/sdk": "^0.1.14",
"bcryptjs": "^2.4.3",
"bn.js": "^5.2.3",
"bs58": "^6.0.0",
"dat.gui": "^0.7.9",
"ethers": "^6.16.0",
+ "express": "^4.22.1",
"gltf-validator": "^2.0.0-dev.3.10",
"helius-sdk": "^2.2.2",
"jose": "^5.9.6",
@@ -66,6 +73,7 @@
"zod": "^3.23.8"
},
"devDependencies": {
+ "@x402/fetch": "^2.11.0",
"ajv": "^8.17.1",
"ajv-formats": "^3.0.1",
"jsdom": "^29.1.0",
@@ -3777,220 +3785,1224 @@
"@solana/errors": "2.0.0-preview.2"
}
},
- "node_modules/@bonfida/spl-name-service/node_modules/@solana/codecs-strings": {
- "version": "2.0.0-preview.2",
- "resolved": "https://registry.npmjs.org/@solana/codecs-strings/-/codecs-strings-2.0.0-preview.2.tgz",
- "integrity": "sha512-EgBwY+lIaHHgMJIqVOGHfIfpdmmUDNoNO/GAUGeFPf+q0dF+DtwhJPEMShhzh64X2MeCZcmSO6Kinx0Bvmmz2g==",
+ "node_modules/@bonfida/spl-name-service/node_modules/@solana/codecs-strings": {
+ "version": "2.0.0-preview.2",
+ "resolved": "https://registry.npmjs.org/@solana/codecs-strings/-/codecs-strings-2.0.0-preview.2.tgz",
+ "integrity": "sha512-EgBwY+lIaHHgMJIqVOGHfIfpdmmUDNoNO/GAUGeFPf+q0dF+DtwhJPEMShhzh64X2MeCZcmSO6Kinx0Bvmmz2g==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/codecs-core": "2.0.0-preview.2",
+ "@solana/codecs-numbers": "2.0.0-preview.2",
+ "@solana/errors": "2.0.0-preview.2"
+ },
+ "peerDependencies": {
+ "fastestsmallesttextencoderdecoder": "^1.0.22"
+ }
+ },
+ "node_modules/@bonfida/spl-name-service/node_modules/@solana/errors": {
+ "version": "2.0.0-preview.2",
+ "resolved": "https://registry.npmjs.org/@solana/errors/-/errors-2.0.0-preview.2.tgz",
+ "integrity": "sha512-H2DZ1l3iYF5Rp5pPbJpmmtCauWeQXRJapkDg8epQ8BJ7cA2Ut/QEtC3CMmw/iMTcuS6uemFNLcWvlOfoQhvQuA==",
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "^5.3.0",
+ "commander": "^12.0.0"
+ },
+ "bin": {
+ "errors": "bin/cli.js"
+ }
+ },
+ "node_modules/@bonfida/spl-name-service/node_modules/@solana/options": {
+ "version": "2.0.0-preview.2",
+ "resolved": "https://registry.npmjs.org/@solana/options/-/options-2.0.0-preview.2.tgz",
+ "integrity": "sha512-FAHqEeH0cVsUOTzjl5OfUBw2cyT8d5Oekx4xcn5hn+NyPAfQJgM3CEThzgRD6Q/4mM5pVUnND3oK/Mt1RzSE/w==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/codecs-core": "2.0.0-preview.2",
+ "@solana/codecs-numbers": "2.0.0-preview.2"
+ }
+ },
+ "node_modules/@bonfida/spl-name-service/node_modules/@solana/spl-token": {
+ "version": "0.4.6",
+ "resolved": "https://registry.npmjs.org/@solana/spl-token/-/spl-token-0.4.6.tgz",
+ "integrity": "sha512-1nCnUqfHVtdguFciVWaY/RKcQz1IF4b31jnKgAmjU9QVN1q7dRUkTEWJZgTYIEtsULjVnC9jRqlhgGN39WbKKA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@solana/buffer-layout": "^4.0.0",
+ "@solana/buffer-layout-utils": "^0.2.0",
+ "@solana/spl-token-group": "^0.0.4",
+ "@solana/spl-token-metadata": "^0.1.4",
+ "buffer": "^6.0.3"
+ },
+ "engines": {
+ "node": ">=16"
+ },
+ "peerDependencies": {
+ "@solana/web3.js": "^1.91.6"
+ }
+ },
+ "node_modules/@bonfida/spl-name-service/node_modules/@solana/spl-token-group": {
+ "version": "0.0.4",
+ "resolved": "https://registry.npmjs.org/@solana/spl-token-group/-/spl-token-group-0.0.4.tgz",
+ "integrity": "sha512-7+80nrEMdUKlK37V6kOe024+T7J4nNss0F8LQ9OOPYdWCCfJmsGUzVx2W3oeizZR4IHM6N4yC9v1Xqwc3BTPWw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@solana/codecs": "2.0.0-preview.2",
+ "@solana/spl-type-length-value": "0.1.0"
+ },
+ "engines": {
+ "node": ">=16"
+ },
+ "peerDependencies": {
+ "@solana/web3.js": "^1.91.6"
+ }
+ },
+ "node_modules/@bonfida/spl-name-service/node_modules/borsh": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/borsh/-/borsh-2.0.0.tgz",
+ "integrity": "sha512-kc9+BgR3zz9+cjbwM8ODoUB4fs3X3I5A/HtX7LZKxCLaMrEeDFoBpnhZY//DTS1VZBSs6S5v46RZRbZjRFspEg==",
+ "license": "Apache-2.0"
+ },
+ "node_modules/@bonfida/spl-name-service/node_modules/commander": {
+ "version": "12.1.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz",
+ "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@bramus/specificity": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/@bramus/specificity/-/specificity-2.4.2.tgz",
+ "integrity": "sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "css-tree": "^3.0.0"
+ },
+ "bin": {
+ "specificity": "bin/cli.js"
+ }
+ },
+ "node_modules/@bufbuild/protobuf": {
+ "version": "1.10.1",
+ "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.10.1.tgz",
+ "integrity": "sha512-wJ8ReQbHxsAfXhrf9ixl0aYbZorRuOWpBNzm8pL8ftmSxQx/wnJD5Eg861NwJU/czy2VXFIebCeZnZrI9rktIQ==",
+ "license": "(Apache-2.0 AND BSD-3-Clause)"
+ },
+ "node_modules/@chenglou/pretext": {
+ "version": "0.0.5",
+ "resolved": "https://registry.npmjs.org/@chenglou/pretext/-/pretext-0.0.5.tgz",
+ "integrity": "sha512-A8GZN10REdFGsyuiUgLV8jjPDDFMg5GmgxGWV0I3igxBOnzj+jgz2VMmVD7g+SFyoctfeqHFxbNatKSzVRWtRg==",
+ "license": "MIT"
+ },
+ "node_modules/@cloudflare/kv-asset-handler": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/@cloudflare/kv-asset-handler/-/kv-asset-handler-0.5.0.tgz",
+ "integrity": "sha512-jxQYkj8dSIzc0cD6cMMNdOc1UVjqSqu8BZdor5s8cGjW2I8BjODt/kWPVdY+u9zj3ms75Q5qaZgnxUad83+eAg==",
+ "license": "MIT OR Apache-2.0",
+ "engines": {
+ "node": ">=22.0.0"
+ }
+ },
+ "node_modules/@cloudflare/unenv-preset": {
+ "version": "2.16.1",
+ "resolved": "https://registry.npmjs.org/@cloudflare/unenv-preset/-/unenv-preset-2.16.1.tgz",
+ "integrity": "sha512-ECxObrMfyTl5bhQf/lZCXwo5G6xX9IAUo+nDMKK4SZ8m4Jvvxp52vilxyySSWh2YTZz8+HQ07qGH/2rEom1vDw==",
+ "license": "MIT OR Apache-2.0",
+ "peerDependencies": {
+ "unenv": "2.0.0-rc.24",
+ "workerd": ">1.20260305.0 <2.0.0-0"
+ },
+ "peerDependenciesMeta": {
+ "workerd": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@cloudflare/workerd-darwin-64": {
+ "version": "1.20260430.1",
+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20260430.1.tgz",
+ "integrity": "sha512-ADohZUHf7NBvPp2PdZig2Opxx+hDkk3ve7jrTne3JRx9kDSB73zc4LzcEeEN8LKkbAcqZmvfRJfpChSlusu0lA==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/@cloudflare/workerd-darwin-arm64": {
+ "version": "1.20260430.1",
+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20260430.1.tgz",
+ "integrity": "sha512-/DoYC/1wHs+YRZzzqSQg1/EHB4hiv1yV5U8FnmapRRIzVaPtnt+ApeOXeMrIdKidgKOI8TqQzgBU8xbIM7Cl4Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/@cloudflare/workerd-linux-64": {
+ "version": "1.20260430.1",
+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20260430.1.tgz",
+ "integrity": "sha512-koJhBWvEVZPKCVFtMLp2iMHlYr+lFCF47wGbnlKdHVlemV0zTxJEyHI8aLlrhPLhBmOmYLp46rXw09/qJkRIhQ==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/@cloudflare/workerd-linux-arm64": {
+ "version": "1.20260430.1",
+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20260430.1.tgz",
+ "integrity": "sha512-hMdapNAzNQZDXGGkg4Slydc3fRJP5FUZLJVVcZCW/+imhhJro9Z1rv5n/wfR+txKoSWhTYR8eOp8Pyi2bzLzlw==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/@cloudflare/workerd-windows-64": {
+ "version": "1.20260430.1",
+ "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20260430.1.tgz",
+ "integrity": "sha512-jS3ffixjb5USOwz4frw4WzCz0HrjVxkgyU3WiYb06N7hBAfN6eOrveAJ4QRef0+suK4V1vQFoB1oKdRBsXe9Dw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk": {
+ "version": "1.48.3",
+ "resolved": "https://registry.npmjs.org/@coinbase/cdp-sdk/-/cdp-sdk-1.48.3.tgz",
+ "integrity": "sha512-1fldOyJw/vjk42GsOCQ2pys/3r3LXHq8wZyhnt6OXkFfKirCjZiw966PT0vFcI/IzIQnhDgSeG7Tlt7kul3osg==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana-program/system": "^0.10.0",
+ "@solana-program/token": "^0.9.0",
+ "@solana/kit": "^5.5.1",
+ "abitype": "1.0.6",
+ "axios": "1.13.6",
+ "axios-retry": "^4.5.0",
+ "bs58": "^6.0.0",
+ "jose": "^6.2.0",
+ "md5": "^2.3.0",
+ "uncrypto": "^0.1.3",
+ "viem": "^2.47.0",
+ "zod": "^3.25.76"
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/accounts": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/accounts/-/accounts-5.5.1.tgz",
+ "integrity": "sha512-TfOY9xixg5rizABuLVuZ9XI2x2tmWUC/OoN556xwfDlhBHBjKfszicYYOyD6nbFmwTGYarCmyGIdteXxTXIdhQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "5.5.1",
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-strings": "5.5.1",
+ "@solana/errors": "5.5.1",
+ "@solana/rpc-spec": "5.5.1",
+ "@solana/rpc-types": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/addresses": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/addresses/-/addresses-5.5.1.tgz",
+ "integrity": "sha512-5xoah3Q9G30HQghu/9BiHLb5pzlPKRC3zydQDmE3O9H//WfayxTFppsUDCL6FjYUHqj/wzK6CWHySglc2RkpdA==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/assertions": "5.5.1",
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-strings": "5.5.1",
+ "@solana/errors": "5.5.1",
+ "@solana/nominal-types": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/assertions": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/assertions/-/assertions-5.5.1.tgz",
+ "integrity": "sha512-YTCSWAlGwSlVPnWtWLm3ukz81wH4j2YaCveK+TjpvUU88hTy6fmUqxi0+hvAMAe4zKXpJyj3Az7BrLJRxbIm4Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/codecs": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/codecs/-/codecs-5.5.1.tgz",
+ "integrity": "sha512-Vea29nJub/bXjfzEV7ZZQ/PWr1pYLZo3z0qW0LQL37uKKVzVFRQlwetd7INk3YtTD3xm9WUYr7bCvYUk3uKy2g==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-data-structures": "5.5.1",
+ "@solana/codecs-numbers": "5.5.1",
+ "@solana/codecs-strings": "5.5.1",
+ "@solana/options": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/codecs-core": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/codecs-core/-/codecs-core-5.5.1.tgz",
+ "integrity": "sha512-TgBt//bbKBct0t6/MpA8ElaOA3sa8eYVvR7LGslCZ84WiAwwjCY0lW/lOYsFHJQzwREMdUyuEyy5YWBKtdh8Rw==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/codecs-data-structures": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/codecs-data-structures/-/codecs-data-structures-5.5.1.tgz",
+ "integrity": "sha512-97bJWGyUY9WvBz3mX1UV3YPWGDTez6btCfD0ip3UVEXJbItVuUiOkzcO5iFDUtQT5riKT6xC+Mzl+0nO76gd0w==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-numbers": "5.5.1",
+ "@solana/errors": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/codecs-numbers": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/codecs-numbers/-/codecs-numbers-5.5.1.tgz",
+ "integrity": "sha512-rllMIZAHqmtvC0HO/dc/21wDuWaD0B8Ryv8o+YtsICQBuiL/0U4AGwH7Pi5GNFySYk0/crSuwfIqQFtmxNSPFw==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/codecs-core": "5.5.1",
+ "@solana/errors": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/codecs-strings": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/codecs-strings/-/codecs-strings-5.5.1.tgz",
+ "integrity": "sha512-7klX4AhfHYA+uKKC/nxRGP2MntbYQCR3N6+v7bk1W/rSxYuhNmt+FN8aoThSZtWIKwN6BEyR1167ka8Co1+E7A==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-numbers": "5.5.1",
+ "@solana/errors": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "fastestsmallesttextencoderdecoder": "^1.0.22",
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "fastestsmallesttextencoderdecoder": {
+ "optional": true
+ },
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/errors": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/errors/-/errors-5.5.1.tgz",
+ "integrity": "sha512-vFO3p+S7HoyyrcAectnXbdsMfwUzY2zYFUc2DEe5BwpiE9J1IAxPBGjOWO6hL1bbYdBrlmjNx8DXCslqS+Kcmg==",
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "5.6.2",
+ "commander": "14.0.2"
+ },
+ "bin": {
+ "errors": "bin/cli.mjs"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/fast-stable-stringify": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/fast-stable-stringify/-/fast-stable-stringify-5.5.1.tgz",
+ "integrity": "sha512-Ni7s2FN33zTzhTFgRjEbOVFO+UAmK8qi3Iu0/GRFYK4jN696OjKHnboSQH/EacQ+yGqS54bfxf409wU5dsLLCw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/functional": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/functional/-/functional-5.5.1.tgz",
+ "integrity": "sha512-tTHoJcEQq3gQx5qsdsDJ0LEJeFzwNpXD80xApW9o/PPoCNimI3SALkZl+zNW8VnxRrV3l3yYvfHWBKe/X3WG3w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/instruction-plans": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/instruction-plans/-/instruction-plans-5.5.1.tgz",
+ "integrity": "sha512-7z3CB7YMcFKuVvgcnNY8bY6IsZ8LG61Iytbz7HpNVGX2u1RthOs1tRW8luTzSG1MPL0Ox7afyAVMYeFqSPHnaQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "5.5.1",
+ "@solana/instructions": "5.5.1",
+ "@solana/keys": "5.5.1",
+ "@solana/promises": "5.5.1",
+ "@solana/transaction-messages": "5.5.1",
+ "@solana/transactions": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/instructions": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/instructions/-/instructions-5.5.1.tgz",
+ "integrity": "sha512-h0G1CG6S+gUUSt0eo6rOtsaXRBwCq1+Js2a+Ps9Bzk9q7YHNFA75/X0NWugWLgC92waRp66hrjMTiYYnLBoWOQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/codecs-core": "5.5.1",
+ "@solana/errors": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/keys": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/keys/-/keys-5.5.1.tgz",
+ "integrity": "sha512-KRD61cL7CRL+b4r/eB9dEoVxIf/2EJ1Pm1DmRYhtSUAJD2dJ5Xw8QFuehobOGm9URqQ7gaQl+Fkc1qvDlsWqKg==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/assertions": "5.5.1",
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-strings": "5.5.1",
+ "@solana/errors": "5.5.1",
+ "@solana/nominal-types": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/kit": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/kit/-/kit-5.5.1.tgz",
+ "integrity": "sha512-irKUGiV2yRoyf+4eGQ/ZeCRxa43yjFEL1DUI5B0DkcfZw3cr0VJtVJnrG8OtVF01vT0OUfYOcUn6zJW5TROHvQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/accounts": "5.5.1",
+ "@solana/addresses": "5.5.1",
+ "@solana/codecs": "5.5.1",
+ "@solana/errors": "5.5.1",
+ "@solana/functional": "5.5.1",
+ "@solana/instruction-plans": "5.5.1",
+ "@solana/instructions": "5.5.1",
+ "@solana/keys": "5.5.1",
+ "@solana/offchain-messages": "5.5.1",
+ "@solana/plugin-core": "5.5.1",
+ "@solana/programs": "5.5.1",
+ "@solana/rpc": "5.5.1",
+ "@solana/rpc-api": "5.5.1",
+ "@solana/rpc-parsed-types": "5.5.1",
+ "@solana/rpc-spec-types": "5.5.1",
+ "@solana/rpc-subscriptions": "5.5.1",
+ "@solana/rpc-types": "5.5.1",
+ "@solana/signers": "5.5.1",
+ "@solana/sysvars": "5.5.1",
+ "@solana/transaction-confirmation": "5.5.1",
+ "@solana/transaction-messages": "5.5.1",
+ "@solana/transactions": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/nominal-types": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/nominal-types/-/nominal-types-5.5.1.tgz",
+ "integrity": "sha512-I1ImR+kfrLFxN5z22UDiTWLdRZeKtU0J/pkWkO8qm/8WxveiwdIv4hooi8pb6JnlR4mSrWhq0pCIOxDYrL9GIQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/offchain-messages": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/offchain-messages/-/offchain-messages-5.5.1.tgz",
+ "integrity": "sha512-g+xHH95prTU+KujtbOzj8wn+C7ZNoiLhf3hj6nYq3MTyxOXtBEysguc97jJveUZG0K97aIKG6xVUlMutg5yxhw==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "5.5.1",
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-data-structures": "5.5.1",
+ "@solana/codecs-numbers": "5.5.1",
+ "@solana/codecs-strings": "5.5.1",
+ "@solana/errors": "5.5.1",
+ "@solana/keys": "5.5.1",
+ "@solana/nominal-types": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/options": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/options/-/options-5.5.1.tgz",
+ "integrity": "sha512-eo971c9iLNLmk+yOFyo7yKIJzJ/zou6uKpy6mBuyb/thKtS/haiKIc3VLhyTXty3OH2PW8yOlORJnv4DexJB8A==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-data-structures": "5.5.1",
+ "@solana/codecs-numbers": "5.5.1",
+ "@solana/codecs-strings": "5.5.1",
+ "@solana/errors": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/plugin-core": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/plugin-core/-/plugin-core-5.5.1.tgz",
+ "integrity": "sha512-VUZl30lDQFJeiSyNfzU1EjYt2QZvoBFKEwjn1lilUJw7KgqD5z7mbV7diJhT+dLFs36i0OsjXvq5kSygn8YJ3A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/programs": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/programs/-/programs-5.5.1.tgz",
+ "integrity": "sha512-7U9kn0Jsx1NuBLn5HRTFYh78MV4XN145Yc3WP/q5BlqAVNlMoU9coG5IUTJIG847TUqC1lRto3Dnpwm6T4YRpA==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "5.5.1",
+ "@solana/errors": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/promises": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/promises/-/promises-5.5.1.tgz",
+ "integrity": "sha512-T9lfuUYkGykJmppEcssNiCf6yiYQxJkhiLPP+pyAc2z84/7r3UVIb2tNJk4A9sucS66pzJnVHZKcZVGUUp6wzA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/rpc": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/rpc/-/rpc-5.5.1.tgz",
+ "integrity": "sha512-ku8zTUMrkCWci66PRIBC+1mXepEnZH/q1f3ck0kJZ95a06bOTl5KU7HeXWtskkyefzARJ5zvCs54AD5nxjQJ+A==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "5.5.1",
+ "@solana/fast-stable-stringify": "5.5.1",
+ "@solana/functional": "5.5.1",
+ "@solana/rpc-api": "5.5.1",
+ "@solana/rpc-spec": "5.5.1",
+ "@solana/rpc-spec-types": "5.5.1",
+ "@solana/rpc-transformers": "5.5.1",
+ "@solana/rpc-transport-http": "5.5.1",
+ "@solana/rpc-types": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/rpc-api": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-api/-/rpc-api-5.5.1.tgz",
+ "integrity": "sha512-XWOQQPhKl06Vj0xi3RYHAc6oEQd8B82okYJ04K7N0Vvy3J4PN2cxeK7klwkjgavdcN9EVkYCChm2ADAtnztKnA==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "5.5.1",
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-strings": "5.5.1",
+ "@solana/errors": "5.5.1",
+ "@solana/keys": "5.5.1",
+ "@solana/rpc-parsed-types": "5.5.1",
+ "@solana/rpc-spec": "5.5.1",
+ "@solana/rpc-transformers": "5.5.1",
+ "@solana/rpc-types": "5.5.1",
+ "@solana/transaction-messages": "5.5.1",
+ "@solana/transactions": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/rpc-parsed-types": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-parsed-types/-/rpc-parsed-types-5.5.1.tgz",
+ "integrity": "sha512-HEi3G2nZqGEsa3vX6U0FrXLaqnUCg4SKIUrOe8CezD+cSFbRTOn3rCLrUmJrhVyXlHoQVaRO9mmeovk31jWxJg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/rpc-spec": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-spec/-/rpc-spec-5.5.1.tgz",
+ "integrity": "sha512-m3LX2bChm3E3by4mQrH4YwCAFY57QBzuUSWqlUw7ChuZ+oLLOq7b2czi4i6L4Vna67j3eCmB3e+4tqy1j5wy7Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "5.5.1",
+ "@solana/rpc-spec-types": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/rpc-spec-types": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-spec-types/-/rpc-spec-types-5.5.1.tgz",
+ "integrity": "sha512-6OFKtRpIEJQs8Jb2C4OO8KyP2h2Hy1MFhatMAoXA+0Ik8S3H+CicIuMZvGZ91mIu/tXicuOOsNNLu3HAkrakrw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/rpc-subscriptions": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-subscriptions/-/rpc-subscriptions-5.5.1.tgz",
+ "integrity": "sha512-CTMy5bt/6mDh4tc6vUJms9EcuZj3xvK0/xq8IQ90rhkpYvate91RjBP+egvjgSayUg9yucU9vNuUpEjz4spM7w==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "5.5.1",
+ "@solana/fast-stable-stringify": "5.5.1",
+ "@solana/functional": "5.5.1",
+ "@solana/promises": "5.5.1",
+ "@solana/rpc-spec-types": "5.5.1",
+ "@solana/rpc-subscriptions-api": "5.5.1",
+ "@solana/rpc-subscriptions-channel-websocket": "5.5.1",
+ "@solana/rpc-subscriptions-spec": "5.5.1",
+ "@solana/rpc-transformers": "5.5.1",
+ "@solana/rpc-types": "5.5.1",
+ "@solana/subscribable": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/rpc-subscriptions-api": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-subscriptions-api/-/rpc-subscriptions-api-5.5.1.tgz",
+ "integrity": "sha512-5Oi7k+GdeS8xR2ly1iuSFkAv6CZqwG0Z6b1QZKbEgxadE1XGSDrhM2cn59l+bqCozUWCqh4c/A2znU/qQjROlw==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "5.5.1",
+ "@solana/keys": "5.5.1",
+ "@solana/rpc-subscriptions-spec": "5.5.1",
+ "@solana/rpc-transformers": "5.5.1",
+ "@solana/rpc-types": "5.5.1",
+ "@solana/transaction-messages": "5.5.1",
+ "@solana/transactions": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/rpc-subscriptions-channel-websocket": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-subscriptions-channel-websocket/-/rpc-subscriptions-channel-websocket-5.5.1.tgz",
+ "integrity": "sha512-7tGfBBrYY8TrngOyxSHoCU5shy86iA9SRMRrPSyBhEaZRAk6dnbdpmUTez7gtdVo0BCvh9nzQtUycKWSS7PnFQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "5.5.1",
+ "@solana/functional": "5.5.1",
+ "@solana/rpc-subscriptions-spec": "5.5.1",
+ "@solana/subscribable": "5.5.1",
+ "ws": "^8.19.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/rpc-subscriptions-spec": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-subscriptions-spec/-/rpc-subscriptions-spec-5.5.1.tgz",
+ "integrity": "sha512-iq+rGq5fMKP3/mKHPNB6MC8IbVW41KGZg83Us/+LE3AWOTWV1WT20KT2iH1F1ik9roi42COv/TpoZZvhKj45XQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "5.5.1",
+ "@solana/promises": "5.5.1",
+ "@solana/rpc-spec-types": "5.5.1",
+ "@solana/subscribable": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/rpc-transformers": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-transformers/-/rpc-transformers-5.5.1.tgz",
+ "integrity": "sha512-OsWqLCQdcrRJKvHiMmwFhp9noNZ4FARuMkHT5us3ustDLXaxOjF0gfqZLnMkulSLcKt7TGXqMhBV+HCo7z5M8Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "5.5.1",
+ "@solana/functional": "5.5.1",
+ "@solana/nominal-types": "5.5.1",
+ "@solana/rpc-spec-types": "5.5.1",
+ "@solana/rpc-types": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/rpc-transport-http": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-transport-http/-/rpc-transport-http-5.5.1.tgz",
+ "integrity": "sha512-yv8GoVSHqEV0kUJEIhkdOVkR2SvJ6yoWC51cJn2rSV7plr6huLGe0JgujCmB7uZhhaLbcbP3zxXxu9sOjsi7Fg==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "5.5.1",
+ "@solana/rpc-spec": "5.5.1",
+ "@solana/rpc-spec-types": "5.5.1",
+ "undici-types": "^7.19.2"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/rpc-types": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-types/-/rpc-types-5.5.1.tgz",
+ "integrity": "sha512-bibTFQ7PbHJJjGJPmfYC2I+/5CRFS4O2p9WwbFraX1Keeel+nRrt/NBXIy8veP5AEn2sVJIyJPpWBRpCx1oATA==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "5.5.1",
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-numbers": "5.5.1",
+ "@solana/codecs-strings": "5.5.1",
+ "@solana/errors": "5.5.1",
+ "@solana/nominal-types": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/signers": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/signers/-/signers-5.5.1.tgz",
+ "integrity": "sha512-FY0IVaBT2kCAze55vEieR6hag4coqcuJ31Aw3hqRH7mv6sV8oqwuJmUrx+uFwOp1gwd5OEAzlv6N4hOOple4sQ==",
"license": "MIT",
"dependencies": {
- "@solana/codecs-core": "2.0.0-preview.2",
- "@solana/codecs-numbers": "2.0.0-preview.2",
- "@solana/errors": "2.0.0-preview.2"
+ "@solana/addresses": "5.5.1",
+ "@solana/codecs-core": "5.5.1",
+ "@solana/errors": "5.5.1",
+ "@solana/instructions": "5.5.1",
+ "@solana/keys": "5.5.1",
+ "@solana/nominal-types": "5.5.1",
+ "@solana/offchain-messages": "5.5.1",
+ "@solana/transaction-messages": "5.5.1",
+ "@solana/transactions": "5.5.1"
+ },
+ "engines": {
+ "node": ">=20.18.0"
},
"peerDependencies": {
- "fastestsmallesttextencoderdecoder": "^1.0.22"
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
}
},
- "node_modules/@bonfida/spl-name-service/node_modules/@solana/errors": {
- "version": "2.0.0-preview.2",
- "resolved": "https://registry.npmjs.org/@solana/errors/-/errors-2.0.0-preview.2.tgz",
- "integrity": "sha512-H2DZ1l3iYF5Rp5pPbJpmmtCauWeQXRJapkDg8epQ8BJ7cA2Ut/QEtC3CMmw/iMTcuS6uemFNLcWvlOfoQhvQuA==",
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/subscribable": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/subscribable/-/subscribable-5.5.1.tgz",
+ "integrity": "sha512-9K0PsynFq0CsmK1CDi5Y2vUIJpCqkgSS5yfDN0eKPgHqEptLEaia09Kaxc90cSZDZU5mKY/zv1NBmB6Aro9zQQ==",
"license": "MIT",
"dependencies": {
- "chalk": "^5.3.0",
- "commander": "^12.0.0"
+ "@solana/errors": "5.5.1"
},
- "bin": {
- "errors": "bin/cli.js"
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
}
},
- "node_modules/@bonfida/spl-name-service/node_modules/@solana/options": {
- "version": "2.0.0-preview.2",
- "resolved": "https://registry.npmjs.org/@solana/options/-/options-2.0.0-preview.2.tgz",
- "integrity": "sha512-FAHqEeH0cVsUOTzjl5OfUBw2cyT8d5Oekx4xcn5hn+NyPAfQJgM3CEThzgRD6Q/4mM5pVUnND3oK/Mt1RzSE/w==",
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/sysvars": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/sysvars/-/sysvars-5.5.1.tgz",
+ "integrity": "sha512-k3Quq87Mm+geGUu1GWv6knPk0ALsfY6EKSJGw9xUJDHzY/RkYSBnh0RiOrUhtFm2TDNjOailg8/m0VHmi3reFA==",
"license": "MIT",
"dependencies": {
- "@solana/codecs-core": "2.0.0-preview.2",
- "@solana/codecs-numbers": "2.0.0-preview.2"
- }
- },
- "node_modules/@bonfida/spl-name-service/node_modules/@solana/spl-token": {
- "version": "0.4.6",
- "resolved": "https://registry.npmjs.org/@solana/spl-token/-/spl-token-0.4.6.tgz",
- "integrity": "sha512-1nCnUqfHVtdguFciVWaY/RKcQz1IF4b31jnKgAmjU9QVN1q7dRUkTEWJZgTYIEtsULjVnC9jRqlhgGN39WbKKA==",
- "license": "Apache-2.0",
- "dependencies": {
- "@solana/buffer-layout": "^4.0.0",
- "@solana/buffer-layout-utils": "^0.2.0",
- "@solana/spl-token-group": "^0.0.4",
- "@solana/spl-token-metadata": "^0.1.4",
- "buffer": "^6.0.3"
+ "@solana/accounts": "5.5.1",
+ "@solana/codecs": "5.5.1",
+ "@solana/errors": "5.5.1",
+ "@solana/rpc-types": "5.5.1"
},
"engines": {
- "node": ">=16"
+ "node": ">=20.18.0"
},
"peerDependencies": {
- "@solana/web3.js": "^1.91.6"
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
}
},
- "node_modules/@bonfida/spl-name-service/node_modules/@solana/spl-token-group": {
- "version": "0.0.4",
- "resolved": "https://registry.npmjs.org/@solana/spl-token-group/-/spl-token-group-0.0.4.tgz",
- "integrity": "sha512-7+80nrEMdUKlK37V6kOe024+T7J4nNss0F8LQ9OOPYdWCCfJmsGUzVx2W3oeizZR4IHM6N4yC9v1Xqwc3BTPWw==",
- "license": "Apache-2.0",
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/transaction-confirmation": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/transaction-confirmation/-/transaction-confirmation-5.5.1.tgz",
+ "integrity": "sha512-j4mKlYPHEyu+OD7MBt3jRoX4ScFgkhZC6H65on4Fux6LMScgivPJlwnKoZMnsgxFgWds0pl+BYzSiALDsXlYtw==",
+ "license": "MIT",
"dependencies": {
- "@solana/codecs": "2.0.0-preview.2",
- "@solana/spl-type-length-value": "0.1.0"
+ "@solana/addresses": "5.5.1",
+ "@solana/codecs-strings": "5.5.1",
+ "@solana/errors": "5.5.1",
+ "@solana/keys": "5.5.1",
+ "@solana/promises": "5.5.1",
+ "@solana/rpc": "5.5.1",
+ "@solana/rpc-subscriptions": "5.5.1",
+ "@solana/rpc-types": "5.5.1",
+ "@solana/transaction-messages": "5.5.1",
+ "@solana/transactions": "5.5.1"
},
"engines": {
- "node": ">=16"
+ "node": ">=20.18.0"
},
"peerDependencies": {
- "@solana/web3.js": "^1.91.6"
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
}
},
- "node_modules/@bonfida/spl-name-service/node_modules/borsh": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/borsh/-/borsh-2.0.0.tgz",
- "integrity": "sha512-kc9+BgR3zz9+cjbwM8ODoUB4fs3X3I5A/HtX7LZKxCLaMrEeDFoBpnhZY//DTS1VZBSs6S5v46RZRbZjRFspEg==",
- "license": "Apache-2.0"
- },
- "node_modules/@bonfida/spl-name-service/node_modules/commander": {
- "version": "12.1.0",
- "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz",
- "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==",
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/transaction-messages": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/transaction-messages/-/transaction-messages-5.5.1.tgz",
+ "integrity": "sha512-aXyhMCEaAp3M/4fP0akwBBQkFPr4pfwoC5CLDq999r/FUwDax2RE/h4Ic7h2Xk+JdcUwsb+rLq85Y52hq84XvQ==",
"license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "5.5.1",
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-data-structures": "5.5.1",
+ "@solana/codecs-numbers": "5.5.1",
+ "@solana/errors": "5.5.1",
+ "@solana/functional": "5.5.1",
+ "@solana/instructions": "5.5.1",
+ "@solana/nominal-types": "5.5.1",
+ "@solana/rpc-types": "5.5.1"
+ },
"engines": {
- "node": ">=18"
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
}
},
- "node_modules/@bramus/specificity": {
- "version": "2.4.2",
- "resolved": "https://registry.npmjs.org/@bramus/specificity/-/specificity-2.4.2.tgz",
- "integrity": "sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==",
- "dev": true,
+ "node_modules/@coinbase/cdp-sdk/node_modules/@solana/transactions": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/@solana/transactions/-/transactions-5.5.1.tgz",
+ "integrity": "sha512-8hHtDxtqalZ157pnx6p8k10D7J/KY/biLzfgh9R09VNLLY3Fqi7kJvJCr7M2ik3oRll56pxhraAGCC9yIT6eOA==",
"license": "MIT",
"dependencies": {
- "css-tree": "^3.0.0"
+ "@solana/addresses": "5.5.1",
+ "@solana/codecs-core": "5.5.1",
+ "@solana/codecs-data-structures": "5.5.1",
+ "@solana/codecs-numbers": "5.5.1",
+ "@solana/codecs-strings": "5.5.1",
+ "@solana/errors": "5.5.1",
+ "@solana/functional": "5.5.1",
+ "@solana/instructions": "5.5.1",
+ "@solana/keys": "5.5.1",
+ "@solana/nominal-types": "5.5.1",
+ "@solana/rpc-types": "5.5.1",
+ "@solana/transaction-messages": "5.5.1"
},
- "bin": {
- "specificity": "bin/cli.js"
- }
- },
- "node_modules/@bufbuild/protobuf": {
- "version": "1.10.1",
- "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.10.1.tgz",
- "integrity": "sha512-wJ8ReQbHxsAfXhrf9ixl0aYbZorRuOWpBNzm8pL8ftmSxQx/wnJD5Eg861NwJU/czy2VXFIebCeZnZrI9rktIQ==",
- "license": "(Apache-2.0 AND BSD-3-Clause)"
- },
- "node_modules/@chenglou/pretext": {
- "version": "0.0.5",
- "resolved": "https://registry.npmjs.org/@chenglou/pretext/-/pretext-0.0.5.tgz",
- "integrity": "sha512-A8GZN10REdFGsyuiUgLV8jjPDDFMg5GmgxGWV0I3igxBOnzj+jgz2VMmVD7g+SFyoctfeqHFxbNatKSzVRWtRg==",
- "license": "MIT"
- },
- "node_modules/@cloudflare/kv-asset-handler": {
- "version": "0.5.0",
- "resolved": "https://registry.npmjs.org/@cloudflare/kv-asset-handler/-/kv-asset-handler-0.5.0.tgz",
- "integrity": "sha512-jxQYkj8dSIzc0cD6cMMNdOc1UVjqSqu8BZdor5s8cGjW2I8BjODt/kWPVdY+u9zj3ms75Q5qaZgnxUad83+eAg==",
- "license": "MIT OR Apache-2.0",
"engines": {
- "node": ">=22.0.0"
- }
- },
- "node_modules/@cloudflare/unenv-preset": {
- "version": "2.16.1",
- "resolved": "https://registry.npmjs.org/@cloudflare/unenv-preset/-/unenv-preset-2.16.1.tgz",
- "integrity": "sha512-ECxObrMfyTl5bhQf/lZCXwo5G6xX9IAUo+nDMKK4SZ8m4Jvvxp52vilxyySSWh2YTZz8+HQ07qGH/2rEom1vDw==",
- "license": "MIT OR Apache-2.0",
+ "node": ">=20.18.0"
+ },
"peerDependencies": {
- "unenv": "2.0.0-rc.24",
- "workerd": ">1.20260305.0 <2.0.0-0"
+ "typescript": "^5.0.0"
},
"peerDependenciesMeta": {
- "workerd": {
+ "typescript": {
"optional": true
}
}
},
- "node_modules/@cloudflare/workerd-darwin-64": {
- "version": "1.20260430.1",
- "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20260430.1.tgz",
- "integrity": "sha512-ADohZUHf7NBvPp2PdZig2Opxx+hDkk3ve7jrTne3JRx9kDSB73zc4LzcEeEN8LKkbAcqZmvfRJfpChSlusu0lA==",
- "cpu": [
- "x64"
- ],
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">=16"
+ "node_modules/@coinbase/cdp-sdk/node_modules/abitype": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.0.6.tgz",
+ "integrity": "sha512-MMSqYh4+C/aVqI2RQaWqbvI4Kxo5cQV40WQ4QFtDnNzCkqChm8MuENhElmynZlO0qUy/ObkEUaXtKqYnx1Kp3A==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/wevm"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.0.4",
+ "zod": "^3 >=3.22.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ },
+ "zod": {
+ "optional": true
+ }
}
},
- "node_modules/@cloudflare/workerd-darwin-arm64": {
- "version": "1.20260430.1",
- "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20260430.1.tgz",
- "integrity": "sha512-/DoYC/1wHs+YRZzzqSQg1/EHB4hiv1yV5U8FnmapRRIzVaPtnt+ApeOXeMrIdKidgKOI8TqQzgBU8xbIM7Cl4Q==",
- "cpu": [
- "arm64"
- ],
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">=16"
+ "node_modules/@coinbase/cdp-sdk/node_modules/axios": {
+ "version": "1.13.6",
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.6.tgz",
+ "integrity": "sha512-ChTCHMouEe2kn713WHbQGcuYrr6fXTBiu460OTwWrWob16g1bXn4vtz07Ope7ewMozJAnEquLk5lWQWtBig9DQ==",
+ "license": "MIT",
+ "dependencies": {
+ "follow-redirects": "^1.15.11",
+ "form-data": "^4.0.5",
+ "proxy-from-env": "^1.1.0"
}
},
- "node_modules/@cloudflare/workerd-linux-64": {
- "version": "1.20260430.1",
- "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20260430.1.tgz",
- "integrity": "sha512-koJhBWvEVZPKCVFtMLp2iMHlYr+lFCF47wGbnlKdHVlemV0zTxJEyHI8aLlrhPLhBmOmYLp46rXw09/qJkRIhQ==",
- "cpu": [
- "x64"
- ],
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
+ "node_modules/@coinbase/cdp-sdk/node_modules/commander": {
+ "version": "14.0.2",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-14.0.2.tgz",
+ "integrity": "sha512-TywoWNNRbhoD0BXs1P3ZEScW8W5iKrnbithIl0YH+uCmBd0QpPOA8yc82DS3BIE5Ma6FnBVUsJ7wVUDz4dvOWQ==",
+ "license": "MIT",
"engines": {
- "node": ">=16"
+ "node": ">=20"
}
},
- "node_modules/@cloudflare/workerd-linux-arm64": {
- "version": "1.20260430.1",
- "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20260430.1.tgz",
- "integrity": "sha512-hMdapNAzNQZDXGGkg4Slydc3fRJP5FUZLJVVcZCW/+imhhJro9Z1rv5n/wfR+txKoSWhTYR8eOp8Pyi2bzLzlw==",
- "cpu": [
- "arm64"
- ],
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=16"
+ "node_modules/@coinbase/cdp-sdk/node_modules/jose": {
+ "version": "6.2.3",
+ "resolved": "https://registry.npmjs.org/jose/-/jose-6.2.3.tgz",
+ "integrity": "sha512-YYVDInQKFJfR/xa3ojUTl8c2KoTwiL1R5Wg9YCydwH0x0B9grbzlg5HC7mMjCtUJjbQ/YnGEZIhI5tCgfTb4Hw==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/panva"
}
},
- "node_modules/@cloudflare/workerd-windows-64": {
- "version": "1.20260430.1",
- "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20260430.1.tgz",
- "integrity": "sha512-jS3ffixjb5USOwz4frw4WzCz0HrjVxkgyU3WiYb06N7hBAfN6eOrveAJ4QRef0+suK4V1vQFoB1oKdRBsXe9Dw==",
- "cpu": [
- "x64"
- ],
+ "node_modules/@coinbase/x402": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@coinbase/x402/-/x402-2.1.0.tgz",
+ "integrity": "sha512-aKeM+cz//+FjzPVu/zgz7830x0KLtKarwCyxoeC71QgCn+Xcf0NhFpn3Qyw0H496y5YOuR/IQ67gP8DZ/hXFqQ==",
+ "hasInstallScript": true,
"license": "Apache-2.0",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">=16"
+ "dependencies": {
+ "@coinbase/cdp-sdk": "^1.29.0",
+ "@x402/core": "^2.0.0",
+ "viem": "^2.21.26",
+ "zod": "^3.24.2"
}
},
"node_modules/@coral-xyz/anchor": {
@@ -12220,6 +13232,49 @@
"@opentelemetry/semantic-conventions": "^1.39.0"
}
},
+ "node_modules/@signinwithethereum/siwe": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/@signinwithethereum/siwe/-/siwe-4.2.0.tgz",
+ "integrity": "sha512-6W+oyKgMFUZRJI4o9P9mTMzrokkXfu3tq1/CfOJj9QrMqyPqujJqv1xnxUAqDQwWVyCA8TMg0Fxk/+gXrDg2Nw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@signinwithethereum/siwe-parser": "^4.2.0"
+ },
+ "peerDependencies": {
+ "ethers": "^5.7.0 || ^6.13.0",
+ "viem": "^2.7.0"
+ },
+ "peerDependenciesMeta": {
+ "ethers": {
+ "optional": true
+ },
+ "viem": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@signinwithethereum/siwe-parser": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/@signinwithethereum/siwe-parser/-/siwe-parser-4.2.0.tgz",
+ "integrity": "sha512-e3edh8XpZrEjbzVYc0BZ4ySFOa8RKTZOQTafSf1E6ejCB5XcBH93jEpYmjzry1EEocgMNq4KlB3YunsFNCXakQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@noble/hashes": "^1.7.0",
+ "apg-js": "^4.4.0"
+ }
+ },
+ "node_modules/@signinwithethereum/siwe-parser/node_modules/@noble/hashes": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
+ "license": "MIT",
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
"node_modules/@sinclair/typebox": {
"version": "0.33.22",
"resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.33.22.tgz",
@@ -21208,6 +22263,103 @@
"integrity": "sha512-ofGmfDhxmNT1/P/MgVa8IKSkCStFiyvXe+U5tyZurKdrtTDFU+wJ/LxClPDtFerWpczNFPUSrKcuhfPX1sI6+A==",
"license": "GPL-3.0-or-later"
},
+ "node_modules/@x402/core": {
+ "version": "2.11.0",
+ "resolved": "https://registry.npmjs.org/@x402/core/-/core-2.11.0.tgz",
+ "integrity": "sha512-aqTfZc/BULrlWnd3I0lsqRQaH4gjJd8CsPcL16XqK2Lx5c6QDm+zCljgUVS1yj9BGJoZeQWTzI5hE+SVFkqMTw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "zod": "^3.24.2"
+ }
+ },
+ "node_modules/@x402/evm": {
+ "version": "2.11.0",
+ "resolved": "https://registry.npmjs.org/@x402/evm/-/evm-2.11.0.tgz",
+ "integrity": "sha512-F8uU1txDZA+wc/sEnmaHAyYvoTi/w39r7K3a44MmQHSxECDTEuB3A0FwbxOxUPLN1eyCxTAFKEiqlGe3bwybKA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@x402/core": "~2.11.0",
+ "viem": "^2.39.3",
+ "zod": "^3.24.2"
+ }
+ },
+ "node_modules/@x402/express": {
+ "version": "2.11.0",
+ "resolved": "https://registry.npmjs.org/@x402/express/-/express-2.11.0.tgz",
+ "integrity": "sha512-0HhvBJgtAQ4yqbFdql/0i8UlrXMi5BNKbD92fFIkK3VoSTjD6ArBYSzLt5twLYpj7ZfVODbSHqYEBwnPL5dasA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@x402/core": "~2.11.0",
+ "@x402/extensions": "~2.11.0",
+ "viem": "^2.39.3",
+ "zod": "^3.24.2"
+ },
+ "peerDependencies": {
+ "@x402/paywall": "^2.11.0",
+ "express": "^4.0.0 || ^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@x402/paywall": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@x402/extensions": {
+ "version": "2.11.0",
+ "resolved": "https://registry.npmjs.org/@x402/extensions/-/extensions-2.11.0.tgz",
+ "integrity": "sha512-S0SOoUsx4WtWqiWZuqslSzhopW/JcrEbnEC5l2sIQH/TABWzR0DgJLy36C43tD6TOJc0tEPN9bHuD+V8DYWomA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@noble/curves": "^1.9.0",
+ "@scure/base": "^1.2.6",
+ "@signinwithethereum/siwe": "^4.1.0",
+ "@x402/core": "~2.11.0",
+ "ajv": "^8.17.1",
+ "jose": "^5.9.6",
+ "tweetnacl": "^1.0.3",
+ "viem": "^2.43.5",
+ "zod": "^3.24.2"
+ }
+ },
+ "node_modules/@x402/extensions/node_modules/@noble/curves": {
+ "version": "1.9.7",
+ "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.7.tgz",
+ "integrity": "sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==",
+ "license": "MIT",
+ "dependencies": {
+ "@noble/hashes": "1.8.0"
+ },
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@x402/extensions/node_modules/@noble/hashes": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
+ "license": "MIT",
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@x402/fetch": {
+ "version": "2.11.0",
+ "resolved": "https://registry.npmjs.org/@x402/fetch/-/fetch-2.11.0.tgz",
+ "integrity": "sha512-sDkoq1ZZt10/UVa75bCXTbWkXMbPOOQpkdSxWB0ybHtlmqT7PM6hU4DVCov4iL792W1Oi38VtxfUw5EkvdvYtw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@x402/core": "~2.11.0",
+ "viem": "^2.39.3",
+ "zod": "^3.24.2"
+ }
+ },
"node_modules/@xrplf/isomorphic": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@xrplf/isomorphic/-/isomorphic-1.0.1.tgz",
@@ -22237,6 +23389,19 @@
"node": ">=6.5"
}
},
+ "node_modules/accepts": {
+ "version": "1.3.8",
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
+ "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-types": "~2.1.34",
+ "negotiator": "0.6.3"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
"node_modules/acorn": {
"version": "8.16.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz",
@@ -22299,7 +23464,6 @@
"version": "8.18.0",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz",
"integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==",
- "dev": true,
"license": "MIT",
"dependencies": {
"fast-deep-equal": "^3.1.3",
@@ -22455,6 +23619,12 @@
"url": "https://github.com/sponsors/jonschlinkert"
}
},
+ "node_modules/apg-js": {
+ "version": "4.4.0",
+ "resolved": "https://registry.npmjs.org/apg-js/-/apg-js-4.4.0.tgz",
+ "integrity": "sha512-fefmXFknJmtgtNEXfPwZKYkMFX4Fyeyz+fNF6JWp87biGOPslJbCBVU158zvKRZfHBKnJDy8CMM40oLFGkXT8Q==",
+ "license": "BSD-2-Clause"
+ },
"node_modules/aptos": {
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/aptos/-/aptos-1.8.5.tgz",
@@ -22620,6 +23790,12 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/array-flatten": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
+ "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
+ "license": "MIT"
+ },
"node_modules/array-includes": {
"version": "3.1.9",
"resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.9.tgz",
@@ -22923,6 +24099,18 @@
"proxy-from-env": "^2.1.0"
}
},
+ "node_modules/axios-retry": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/axios-retry/-/axios-retry-4.5.0.tgz",
+ "integrity": "sha512-aR99oXhpEDGo0UuAlYcn2iGRds30k366Zfa05XWScR9QaQD4JYiP3/1Qt1u7YlefUOK+cn0CcwoL1oefavQUlQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "is-retry-allowed": "^2.2.0"
+ },
+ "peerDependencies": {
+ "axios": "0.x || 1.x"
+ }
+ },
"node_modules/axios/node_modules/proxy-from-env": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz",
@@ -23557,6 +24745,86 @@
"integrity": "sha512-EAcmnPkxpntVL+DS7bO1zhcZNvCkxqtkd0ZY53h06GNQ3DEkkGZ/gKgmDv6DdZQGj9BgfSPKtJJ7Dp1GPP8f7w==",
"license": "MIT"
},
+ "node_modules/body-parser": {
+ "version": "1.20.5",
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.5.tgz",
+ "integrity": "sha512-3grm+/2tUOvu2cjJkvsIxrv/wVpfXQW4PsQHYm7yk4vfpu7Ekl6nEsYBoJUL6qDwZUx8wUhQ8tR2qz+ad9c9OA==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "~3.1.2",
+ "content-type": "~1.0.5",
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "destroy": "~1.2.0",
+ "http-errors": "~2.0.1",
+ "iconv-lite": "~0.4.24",
+ "on-finished": "~2.4.1",
+ "qs": "~6.15.1",
+ "raw-body": "~2.5.3",
+ "type-is": "~1.6.18",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8",
+ "npm": "1.2.8000 || >= 1.4.16"
+ }
+ },
+ "node_modules/body-parser/node_modules/debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.0.0"
+ }
+ },
+ "node_modules/body-parser/node_modules/http-errors": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
+ "license": "MIT",
+ "dependencies": {
+ "depd": "~2.0.0",
+ "inherits": "~2.0.4",
+ "setprototypeof": "~1.2.0",
+ "statuses": "~2.0.2",
+ "toidentifier": "~1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/body-parser/node_modules/iconv-lite": {
+ "version": "0.4.24",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/body-parser/node_modules/ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+ "license": "MIT"
+ },
+ "node_modules/body-parser/node_modules/statuses": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
"node_modules/borsh": {
"version": "0.7.0",
"resolved": "https://registry.npmjs.org/borsh/-/borsh-0.7.0.tgz",
@@ -23977,6 +25245,15 @@
"esbuild": ">=0.18"
}
},
+ "node_modules/bytes": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
"node_modules/cac": {
"version": "6.7.14",
"resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",
@@ -24149,6 +25426,15 @@
"integrity": "sha512-PsezH1rqdV9VvyNhxxOW32/d75r01NY7TQCmOqomRo15ZSOKbpTFVsfjghxo6JloQUCGnH4k1LGu0R4yCLlWQQ==",
"license": "MIT"
},
+ "node_modules/charenc": {
+ "version": "0.0.2",
+ "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz",
+ "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": "*"
+ }
+ },
"node_modules/check-error": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.3.tgz",
@@ -24432,6 +25718,27 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/content-disposition": {
+ "version": "0.5.4",
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
+ "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "5.2.1"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/content-type": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
"node_modules/convert-source-map": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
@@ -24457,6 +25764,12 @@
"integrity": "sha512-lXVyvUvrNXblMqzIRrxHb57UUVmqsSWlxqt3XIjCkUP0wDAf6uicO6KMbEgYrMNtEvWgWHwe42CKxPu9MYAnWw==",
"license": "MIT"
},
+ "node_modules/cookie-signature": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz",
+ "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==",
+ "license": "MIT"
+ },
"node_modules/core-js-compat": {
"version": "3.49.0",
"resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.49.0.tgz",
@@ -24661,6 +25974,15 @@
"uncrypto": "^0.1.3"
}
},
+ "node_modules/crypt": {
+ "version": "0.0.2",
+ "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz",
+ "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": "*"
+ }
+ },
"node_modules/crypto-browserify": {
"version": "3.12.1",
"resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.1.tgz",
@@ -25283,6 +26605,16 @@
"integrity": "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==",
"license": "MIT"
},
+ "node_modules/destroy": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
+ "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8",
+ "npm": "1.2.8000 || >= 1.4.16"
+ }
+ },
"node_modules/detect-browser": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/detect-browser/-/detect-browser-5.3.0.tgz",
@@ -25488,6 +26820,12 @@
"safe-buffer": "^5.0.1"
}
},
+ "node_modules/ee-first": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
+ "license": "MIT"
+ },
"node_modules/ejs": {
"version": "3.1.10",
"resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",
@@ -25563,6 +26901,15 @@
"integrity": "sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw==",
"license": "MIT"
},
+ "node_modules/encodeurl": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
+ "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
"node_modules/end-of-stream": {
"version": "1.4.5",
"resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz",
@@ -25911,6 +27258,12 @@
"node": ">=6"
}
},
+ "node_modules/escape-html": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
+ "license": "MIT"
+ },
"node_modules/escape-string-regexp": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
@@ -26661,6 +28014,15 @@
"node": ">=0.10.0"
}
},
+ "node_modules/etag": {
+ "version": "1.8.1",
+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
"node_modules/eth-rpc-errors": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-4.0.3.tgz",
@@ -27030,6 +28392,126 @@
"license": "Apache-2.0",
"optional": true
},
+ "node_modules/express": {
+ "version": "4.22.1",
+ "resolved": "https://registry.npmjs.org/express/-/express-4.22.1.tgz",
+ "integrity": "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==",
+ "license": "MIT",
+ "dependencies": {
+ "accepts": "~1.3.8",
+ "array-flatten": "1.1.1",
+ "body-parser": "~1.20.3",
+ "content-disposition": "~0.5.4",
+ "content-type": "~1.0.4",
+ "cookie": "~0.7.1",
+ "cookie-signature": "~1.0.6",
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "finalhandler": "~1.3.1",
+ "fresh": "~0.5.2",
+ "http-errors": "~2.0.0",
+ "merge-descriptors": "1.0.3",
+ "methods": "~1.1.2",
+ "on-finished": "~2.4.1",
+ "parseurl": "~1.3.3",
+ "path-to-regexp": "~0.1.12",
+ "proxy-addr": "~2.0.7",
+ "qs": "~6.14.0",
+ "range-parser": "~1.2.1",
+ "safe-buffer": "5.2.1",
+ "send": "~0.19.0",
+ "serve-static": "~1.16.2",
+ "setprototypeof": "1.2.0",
+ "statuses": "~2.0.1",
+ "type-is": "~1.6.18",
+ "utils-merge": "1.0.1",
+ "vary": "~1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.10.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/express/node_modules/cookie": {
+ "version": "0.7.2",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
+ "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/express/node_modules/debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.0.0"
+ }
+ },
+ "node_modules/express/node_modules/http-errors": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
+ "license": "MIT",
+ "dependencies": {
+ "depd": "~2.0.0",
+ "inherits": "~2.0.4",
+ "setprototypeof": "~1.2.0",
+ "statuses": "~2.0.2",
+ "toidentifier": "~1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/express/node_modules/ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+ "license": "MIT"
+ },
+ "node_modules/express/node_modules/path-to-regexp": {
+ "version": "0.1.13",
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz",
+ "integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==",
+ "license": "MIT"
+ },
+ "node_modules/express/node_modules/qs": {
+ "version": "6.14.2",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.2.tgz",
+ "integrity": "sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "side-channel": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/express/node_modules/statuses": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
"node_modules/extract-zip": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",
@@ -27144,7 +28626,6 @@
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz",
"integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==",
- "dev": true,
"funding": [
{
"type": "github",
@@ -27419,6 +28900,48 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/finalhandler": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz",
+ "integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "2.6.9",
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "on-finished": "~2.4.1",
+ "parseurl": "~1.3.3",
+ "statuses": "~2.0.2",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/finalhandler/node_modules/debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.0.0"
+ }
+ },
+ "node_modules/finalhandler/node_modules/ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+ "license": "MIT"
+ },
+ "node_modules/finalhandler/node_modules/statuses": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
"node_modules/find-cache-dir": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz",
@@ -27601,12 +29124,30 @@
"node": ">=12.20.0"
}
},
+ "node_modules/forwarded": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
"node_modules/forwarded-parse": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/forwarded-parse/-/forwarded-parse-2.1.2.tgz",
"integrity": "sha512-alTFZZQDKMporBH77856pXgzhEzaUVmLCDk+egLgIgHst3Tpndzz8MnKe+GzRJRfvVdn69HhpW7cmXzvtLvJAw==",
"license": "MIT"
},
+ "node_modules/fresh": {
+ "version": "0.5.2",
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
+ "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
"node_modules/fs-extra": {
"version": "9.1.0",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",
@@ -29978,6 +31519,18 @@
"node": ">=0.10.0"
}
},
+ "node_modules/is-retry-allowed": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-2.2.0.tgz",
+ "integrity": "sha512-XVm7LOeLpTW4jV19QSH38vkswxoLud8sQ57YwJVTPWdiaI9I8keEhGFpBlslyVsgdQy4Opg8QOLb8YRgsyZiQg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/is-set": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz",
@@ -32222,7 +33775,6 @@
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
- "dev": true,
"license": "MIT"
},
"node_modules/json-stable-stringify": {
@@ -32849,6 +34401,17 @@
"node": ">= 0.4"
}
},
+ "node_modules/md5": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz",
+ "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "charenc": "0.0.2",
+ "crypt": "0.0.2",
+ "is-buffer": "~1.1.6"
+ }
+ },
"node_modules/md5.js": {
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz",
@@ -32867,6 +34430,15 @@
"dev": true,
"license": "CC0-1.0"
},
+ "node_modules/media-typer": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
+ "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
"node_modules/memoize-one": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-6.0.0.tgz",
@@ -32887,6 +34459,15 @@
"node": ">=0.10.0"
}
},
+ "node_modules/merge-descriptors": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
+ "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/merge-stream": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
@@ -32920,6 +34501,15 @@
"node": ">= 7.6.0"
}
},
+ "node_modules/methods": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
+ "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
"node_modules/micro-ftch": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/micro-ftch/-/micro-ftch-0.3.1.tgz",
@@ -33345,6 +34935,15 @@
"base-x": "^3.0.2"
}
},
+ "node_modules/negotiator": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
+ "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
"node_modules/neo-async": {
"version": "2.6.2",
"resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz",
@@ -33704,7 +35303,6 @@
"version": "1.13.4",
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
"integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">= 0.4"
@@ -33870,6 +35468,18 @@
"integrity": "sha512-dqaz3u44QbRXQooZLTUKU41ZrzYrcvLISVgbrzbyCMxpmSLJvZ3ZamIJIZ29P6OhZIkNIQKosdeM6t1LYbA9hg==",
"license": "MIT"
},
+ "node_modules/on-finished": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
+ "license": "MIT",
+ "dependencies": {
+ "ee-first": "1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
"node_modules/once": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
@@ -34185,6 +35795,15 @@
"url": "https://github.com/inikulin/parse5?sponsor=1"
}
},
+ "node_modules/parseurl": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
"node_modules/path-browserify": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz",
@@ -34758,6 +36377,28 @@
"node": ">=12.0.0"
}
},
+ "node_modules/proxy-addr": {
+ "version": "2.0.7",
+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
+ "license": "MIT",
+ "dependencies": {
+ "forwarded": "0.2.0",
+ "ipaddr.js": "1.9.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/proxy-addr/node_modules/ipaddr.js": {
+ "version": "1.9.1",
+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
"node_modules/proxy-agent": {
"version": "6.5.0",
"resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.5.0.tgz",
@@ -35175,7 +36816,6 @@
"version": "6.15.1",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.15.1.tgz",
"integrity": "sha512-6YHEFRL9mfgcAvql/XhwTvf5jKcOiiupt2FiJxHkiX1z4j7WL8J/jRHYLluORvc1XxB5rV20KoeK00gVJamspg==",
- "dev": true,
"license": "BSD-3-Clause",
"dependencies": {
"side-channel": "^1.1.0"
@@ -35265,6 +36905,71 @@
"safe-buffer": "^5.1.0"
}
},
+ "node_modules/range-parser": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/raw-body": {
+ "version": "2.5.3",
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz",
+ "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "~3.1.2",
+ "http-errors": "~2.0.1",
+ "iconv-lite": "~0.4.24",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/raw-body/node_modules/http-errors": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
+ "license": "MIT",
+ "dependencies": {
+ "depd": "~2.0.0",
+ "inherits": "~2.0.4",
+ "setprototypeof": "~1.2.0",
+ "statuses": "~2.0.2",
+ "toidentifier": "~1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/raw-body/node_modules/iconv-lite": {
+ "version": "0.4.24",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/raw-body/node_modules/statuses": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
"node_modules/react": {
"version": "19.2.5",
"resolved": "https://registry.npmjs.org/react/-/react-19.2.5.tgz",
@@ -35621,7 +37326,6 @@
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
"integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">=0.10.0"
@@ -37319,6 +39023,86 @@
"semver": "bin/semver.js"
}
},
+ "node_modules/send": {
+ "version": "0.19.2",
+ "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz",
+ "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "destroy": "1.2.0",
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "fresh": "~0.5.2",
+ "http-errors": "~2.0.1",
+ "mime": "1.6.0",
+ "ms": "2.1.3",
+ "on-finished": "~2.4.1",
+ "range-parser": "~1.2.1",
+ "statuses": "~2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/send/node_modules/debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.0.0"
+ }
+ },
+ "node_modules/send/node_modules/debug/node_modules/ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+ "license": "MIT"
+ },
+ "node_modules/send/node_modules/http-errors": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
+ "license": "MIT",
+ "dependencies": {
+ "depd": "~2.0.0",
+ "inherits": "~2.0.4",
+ "setprototypeof": "~1.2.0",
+ "statuses": "~2.0.2",
+ "toidentifier": "~1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/send/node_modules/mime": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
+ "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
+ "license": "MIT",
+ "bin": {
+ "mime": "cli.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/send/node_modules/statuses": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
"node_modules/sepia-speechrecognition-polyfill": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/sepia-speechrecognition-polyfill/-/sepia-speechrecognition-polyfill-1.0.1.tgz",
@@ -37335,6 +39119,21 @@
"node": ">=20.0.0"
}
},
+ "node_modules/serve-static": {
+ "version": "1.16.3",
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz",
+ "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==",
+ "license": "MIT",
+ "dependencies": {
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "parseurl": "~1.3.3",
+ "send": "~0.19.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
"node_modules/set-blocking": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
@@ -37569,7 +39368,6 @@
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
"integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
- "dev": true,
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0",
@@ -37589,7 +39387,6 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",
"integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",
- "dev": true,
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0",
@@ -37606,7 +39403,6 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
"integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
- "dev": true,
"license": "MIT",
"dependencies": {
"call-bound": "^1.0.2",
@@ -37625,7 +39421,6 @@
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
"integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
- "dev": true,
"license": "MIT",
"dependencies": {
"call-bound": "^1.0.2",
@@ -39389,6 +41184,19 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/type-is": {
+ "version": "1.6.18",
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
+ "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
+ "license": "MIT",
+ "dependencies": {
+ "media-typer": "0.3.0",
+ "mime-types": "~2.1.24"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
"node_modules/typed-array-buffer": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz",
@@ -39770,6 +41578,15 @@
"url": "https://github.com/sponsors/pubkey"
}
},
+ "node_modules/unpipe": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
"node_modules/unrs-resolver": {
"version": "1.11.1",
"resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.11.1.tgz",
@@ -40086,6 +41903,15 @@
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
"license": "MIT"
},
+ "node_modules/utils-merge": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
+ "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4.0"
+ }
+ },
"node_modules/utrie": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/utrie/-/utrie-1.0.2.tgz",
@@ -40185,6 +42011,15 @@
"uint8array-tools": "^0.0.8"
}
},
+ "node_modules/vary": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
"node_modules/vhtml": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/vhtml/-/vhtml-2.2.0.tgz",
diff --git a/package.json b/package.json
index 8a6315669..82e6fc1bf 100644
--- a/package.json
+++ b/package.json
@@ -23,9 +23,9 @@
"3d-agent"
],
"workspaces": [
- "agent-payments-sdk",
- "character-studio"
- ],
+ "agent-payments-sdk",
+ "character-studio"
+ ],
"main": "src/app.js",
"browserslist": [
">1%",
@@ -83,6 +83,7 @@
"@aws-sdk/s3-request-presigner": "latest",
"@bonfida/spl-name-service": "^3.0.21",
"@chenglou/pretext": "^0.0.5",
+ "@coinbase/x402": "^2.1.0",
"@coral-xyz/anchor": "^0.31.1",
"@gltf-transform/core": "^4.3.0",
"@gltf-transform/extensions": "^4.3.0",
@@ -92,34 +93,39 @@
"@metaplex-foundation/umi": "^1.5.1",
"@metaplex-foundation/umi-bundle-defaults": "^1.5.1",
"@neondatabase/serverless": "^0.10.1",
- "node-fetch": "^3.3.2",
"@nirholas/pump-sdk": "^1.0.0",
"@noble/curves": "^2.2.0",
"@pump-fun/agent-payments-sdk": "^3.1.0",
"@pump-fun/pump-sdk": "^1.35.0",
"@pump-fun/pump-swap-sdk": "^1.15.0",
"@pythnetwork/hermes-client": "^3.1.0",
- "@solana/wallet-adapter-base": "^0.9.23",
- "@solana/wallet-adapter-phantom": "^0.9.24",
- "@solana/wallet-adapter-wallets": "^0.19.32",
"@sentry/node": "^10.50.0",
"@solana/actions": "^1.6.6",
"@solana/kit": "^6.8.0",
+ "@solana/pay": "^0.2.0",
"@solana/spl-token": "^0.4.14",
+ "@solana/wallet-adapter-base": "^0.9.23",
+ "@solana/wallet-adapter-phantom": "^0.9.24",
+ "@solana/wallet-adapter-wallets": "^0.19.32",
"@solana/web3.js": "latest",
"@upstash/ratelimit": "^2.0.5",
"@upstash/redis": "^1.34.3",
+ "@x402/core": "^2.11.0",
+ "@x402/evm": "^2.11.0",
+ "@x402/express": "^2.11.0",
+ "@x402/extensions": "^2.11.0",
"@zauthx402/sdk": "^0.1.14",
"bcryptjs": "^2.4.3",
"bn.js": "^5.2.3",
"bs58": "^6.0.0",
"dat.gui": "^0.7.9",
"ethers": "^6.16.0",
+ "express": "^4.22.1",
"gltf-validator": "^2.0.0-dev.3.10",
"helius-sdk": "^2.2.2",
"jose": "^5.9.6",
"livekit-client": "^2.18.8",
- "@solana/pay": "^0.2.0",
+ "node-fetch": "^3.3.2",
"query-string": "^8.1.0",
"resend": "^6.12.2",
"sas-lib": "^1.0.10",
@@ -131,6 +137,7 @@
"zod": "^3.23.8"
},
"devDependencies": {
+ "@x402/fetch": "^2.11.0",
"ajv": "^8.17.1",
"ajv-formats": "^3.0.1",
"jsdom": "^29.1.0",
diff --git a/scripts/x402-first-paid-request.mjs b/scripts/x402-first-paid-request.mjs
new file mode 100755
index 000000000..70854072e
--- /dev/null
+++ b/scripts/x402-first-paid-request.mjs
@@ -0,0 +1,74 @@
+#!/usr/bin/env node
+// Drive the CDP-Bazaar listing by paying for /api/x402/model-check exactly once.
+//
+// The CDP Bazaar catalog only indexes endpoints whose first verify+settle has
+// been processed by the CDP facilitator. Until this script runs successfully
+// against a deployed instance, the endpoint won't appear on agentic.market.
+//
+// Usage:
+// X402_BUYER_PRIVATE_KEY=0x... # funded wallet, USDC + gas on the chosen network
+// X402_TARGET=https://three.ws/api/x402/model-check
+// X402_NETWORK=base # "base" or "arbitrum"
+// node scripts/x402-first-paid-request.mjs
+//
+// Pre-flight: needs ≥0.001 USDC of the target network's native USDC and a
+// few cents of native gas (ETH). Use https://faucet.circle.com or fund from
+// Coinbase. Same private key works on both Base and Arbitrum.
+
+import { wrapFetchWithPayment } from '@x402/fetch';
+import { createWalletClient, http } from 'viem';
+import { privateKeyToAccount } from 'viem/accounts';
+import { base, arbitrum } from 'viem/chains';
+
+const PRIVATE_KEY = process.env.X402_BUYER_PRIVATE_KEY;
+if (!PRIVATE_KEY) {
+ console.error('Missing X402_BUYER_PRIVATE_KEY (0x-prefixed funded EVM private key).');
+ process.exit(2);
+}
+
+const TARGET =
+ process.env.X402_TARGET ||
+ 'https://three.ws/api/x402/model-check?url=' +
+ encodeURIComponent('https://threejs.org/examples/models/gltf/DamagedHelmet/glTF-Binary/DamagedHelmet.glb');
+
+const NETWORK = (process.env.X402_NETWORK || 'base').toLowerCase();
+const CHAIN = NETWORK === 'arbitrum' ? arbitrum : base;
+if (NETWORK !== 'base' && NETWORK !== 'arbitrum') {
+ console.error(`X402_NETWORK must be "base" or "arbitrum"; got "${NETWORK}"`);
+ process.exit(2);
+}
+
+const account = privateKeyToAccount(PRIVATE_KEY);
+const walletClient = createWalletClient({
+ account,
+ chain: CHAIN,
+ transport: http(process.env.X402_RPC_URL || undefined),
+});
+
+console.log(`[x402] buyer ${account.address} on ${CHAIN.name}`);
+console.log(`[x402] GET ${TARGET}`);
+
+const fetchWithPayment = wrapFetchWithPayment(fetch, walletClient);
+
+const t0 = Date.now();
+const res = await fetchWithPayment(TARGET, { method: 'GET' });
+const elapsed = Date.now() - t0;
+
+const text = await res.text();
+let body;
+try { body = JSON.parse(text); } catch { body = text; }
+
+const settle = res.headers.get('payment-response') || res.headers.get('x-payment-response');
+console.log(`[x402] HTTP ${res.status} in ${elapsed}ms`);
+if (settle) {
+ try {
+ const decoded = JSON.parse(Buffer.from(settle, 'base64').toString('utf8'));
+ console.log('[x402] settlement:', decoded);
+ } catch {
+ console.log('[x402] payment-response (raw):', settle);
+ }
+}
+console.log('[x402] body:', body);
+
+if (!res.ok) process.exit(1);
+console.log('\nDone. Re-validate at https://agentic.market/validate to confirm the endpoint is now Bazaar-indexed.');
diff --git a/skills-lock.json b/skills-lock.json
new file mode 100644
index 000000000..6d6436f10
--- /dev/null
+++ b/skills-lock.json
@@ -0,0 +1,59 @@
+{
+ "version": 1,
+ "skills": {
+ "authenticate-wallet": {
+ "source": "coinbase/agentic-wallet-skills",
+ "sourceType": "github",
+ "skillPath": "skills/authenticate-wallet/SKILL.md",
+ "computedHash": "ec56468a4d92a86450299cdf64ad4b1ad4b40fd988f3038244a95a35bd4e22de"
+ },
+ "fund": {
+ "source": "coinbase/agentic-wallet-skills",
+ "sourceType": "github",
+ "skillPath": "skills/fund/SKILL.md",
+ "computedHash": "768de63f7dea195c12afbeed7190c08c67d53487732628f0ca1d761a0eab04e1"
+ },
+ "monetize-service": {
+ "source": "coinbase/agentic-wallet-skills",
+ "sourceType": "github",
+ "skillPath": "skills/monetize-service/SKILL.md",
+ "computedHash": "66fbe03f3a451d2926d8a784f550c4e8370f981e3a3053e9fa8fbb0c59f8d720"
+ },
+ "pay-for-service": {
+ "source": "coinbase/agentic-wallet-skills",
+ "sourceType": "github",
+ "skillPath": "skills/pay-for-service/SKILL.md",
+ "computedHash": "bf605a91e70ea9f90dbcb777ee5a1df02e245fb14fc854abb51b8455906cbb9a"
+ },
+ "query-onchain-data": {
+ "source": "coinbase/agentic-wallet-skills",
+ "sourceType": "github",
+ "skillPath": "skills/query-onchain-data/SKILL.md",
+ "computedHash": "af873a6ecd7c2ae5a147907b026496d088b01f53577518c4e2ad4335dbb0c5d3"
+ },
+ "search-for-service": {
+ "source": "coinbase/agentic-wallet-skills",
+ "sourceType": "github",
+ "skillPath": "skills/search-for-service/SKILL.md",
+ "computedHash": "ace3e40ae1e1c25e1312102995d5917dbabe2ff9edb547a41803eea5d80b3f17"
+ },
+ "send-usdc": {
+ "source": "coinbase/agentic-wallet-skills",
+ "sourceType": "github",
+ "skillPath": "skills/send-usdc/SKILL.md",
+ "computedHash": "c1e7e20b0f1eadcadbead12656c5591833c390fc9aca0c9efb10aa6749ba987d"
+ },
+ "trade": {
+ "source": "coinbase/agentic-wallet-skills",
+ "sourceType": "github",
+ "skillPath": "skills/trade/SKILL.md",
+ "computedHash": "a10a9f3af04483803751aec9b749fef48ad95dee36d27da10279c99952ae1b8e"
+ },
+ "x402": {
+ "source": "coinbase/agentic-wallet-skills",
+ "sourceType": "github",
+ "skillPath": "skills/x402/SKILL.md",
+ "computedHash": "6626677cfacd5af377e22281e0ab98c1011b432f72cd77d825b077e5e6b87e3c"
+ }
+ }
+}
diff --git a/vercel.json b/vercel.json
index 89ec9d361..d5cfd598e 100644
--- a/vercel.json
+++ b/vercel.json
@@ -1034,6 +1034,10 @@
"src": "/app",
"dest": "/app.html"
},
+ {
+ "src": "/app-demo",
+ "dest": "/app-demo.html"
+ },
{
"src": "/chat",
"dest": "/chat/index.html"
diff --git a/vite.config.js b/vite.config.js
index f70bc1301..5ec692b66 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -67,6 +67,7 @@ const appConfig = {
},
input: {
app: resolve(__dirname, 'app.html'),
+ 'app-demo': resolve(__dirname, 'app-demo.html'),
home: resolve(__dirname, 'home.html'),
tutorials: resolve(__dirname, 'tutorials.html'),
playground: resolve(__dirname, 'playground.html'),
@@ -102,6 +103,7 @@ const appConfig = {
const root = resolve(__dirname);
const fileMap = {
'/app': resolve(root, 'app.html'),
+ '/app-demo': resolve(root, 'app-demo.html'),
'/login': resolve(root, 'public/login.html'),
'/deploy': resolve(root, 'app.html'),
'/agents': resolve(root, 'public/agents/index.html'),