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.

fix(x402): lead the mint-to-mesh accepts with Solana instead of Base

nirholasd193981c69e5
diff --git a/api/x402/mint-to-mesh-batch.js b/api/x402/mint-to-mesh-batch.js
index 5755a5b1b..91fab354f 100644
--- a/api/x402/mint-to-mesh-batch.js
+++ b/api/x402/mint-to-mesh-batch.js
@@ -172,7 +172,9 @@ export default paidEndpoint({
route: ROUTE,
method: 'POST',
priceAtomics: priceFor('mint-to-mesh-batch', '50000'),
- networks: ['base', 'solana'],
+ // Solana leads the accepts: this is the home chain, and a client that takes
+ // the first accept settles there. Base follows as the alternative rail.
+ networks: ['solana', 'base'],
description: DESCRIPTION,
bazaar: BAZAAR,
service: withService({
diff --git a/api/x402/mint-to-mesh.js b/api/x402/mint-to-mesh.js
index ee3edfcac..78016f9a5 100644
--- a/api/x402/mint-to-mesh.js
+++ b/api/x402/mint-to-mesh.js
@@ -17,11 +17,12 @@
// JSON envelope so x402 facilitators that struggle with binary bodies still
// receive a clean response.
//
-// Networks: Base mainnet (EIP-3009 + Permit2 sibling) and Solana mainnet
-// (USDC). verifyPayment / settlePayment in x402-spec.js routes per-network:
-// Base via X402_FACILITATOR_URL_BASE and Solana via X402_FACILITATOR_URL_SOLANA
-// (PayAI by default for both). The Solana entry is omitted when
-// X402_PAY_TO_SOLANA is unset so the 402 challenge stays valid.
+// Networks: Solana mainnet (USDC) leads the accepts, with Base mainnet
+// (EIP-3009 + Permit2 sibling) as the alternative rail. verifyPayment /
+// settlePayment in x402-spec.js routes per-network: Solana via
+// X402_FACILITATOR_URL_SOLANA and Base via X402_FACILITATOR_URL_BASE (PayAI by
+// default for both). The Solana entry is omitted when X402_PAY_TO_SOLANA is
+// unset so the 402 challenge stays valid.
import { wrap, cors, error } from '../_lib/http.js';
import {
@@ -69,7 +70,7 @@ const ROUTE_DESCRIPTION =
'on-chain Metaplex metadata so downstream agents can introspect mint, name, ' +
'symbol, and timestamp. Useful for any agent that needs an instantly renderable ' +
'3D representation of a token (in-game items, leaderboards, NFT-of-token, AR ' +
- 'previews). Pay-per-call in USDC on Base mainnet.';
+ 'previews). Pay-per-call in USDC on Solana mainnet, or on Base.';
const DISCOVERY_INPUT_EXAMPLE = {
mint: 'FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump',