Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2f90047
Accept MPP method tempo (push mode) when MPP_TEMPO_RECIPIENT is set
claude Oct 4, 2026
6ada795
Clearer /api/explain description for agents
claude Oct 5, 2026
e2c21e4
Merge remote branch (already merged history)
claude Oct 5, 2026
57e398c
Add glama.json to claim the Glama listing
claude Oct 5, 2026
88577ee
Merge remote branch (already merged history)
claude Oct 5, 2026
2eeeeec
MCP registry: clearer description (says when an agent would use it)
claude Oct 5, 2026
ce242d7
Merge remote branch (already merged history)
claude Oct 5, 2026
71f6a3e
Homepage: a row of prices right under the intro
claude Oct 6, 2026
fd7ae48
Merge remote branch (already merged history)
claude Oct 6, 2026
193799b
Usage log: record the network a refused payment was tried on
claude Oct 6, 2026
2d888e4
Merge branch 'claude/x402-agents-solana-payments-nceg9b' of https://g…
claude Oct 6, 2026
322505c
Pay in RLUSD on the XRP Ledger (x402 exact, xrpl:0)
claude Oct 7, 2026
aa35a9d
Merge branch 'claude/x402-agents-solana-payments-nceg9b' of https://g…
claude Oct 7, 2026
633f050
XRPL: also accept payers built on t54's SDK
claude Oct 7, 2026
3033055
Merge remote-tracking branch 'origin/main' into claude/x402-agents-so…
claude Oct 7, 2026
fdab3b3
SEO: canonical tag, robots.txt and sitemap.xml for the homepage
claude Oct 7, 2026
0027283
Merge branch 'claude/x402-agents-solana-payments-nceg9b' of https://g…
claude Oct 7, 2026
823b132
CI: run the tests on every pull request and on main
claude Oct 7, 2026
60e2caa
Merge branch 'claude/x402-agents-solana-payments-nceg9b' of https://g…
claude Oct 7, 2026
d81e01e
Usage log: record why an MPP credential was refused
claude Oct 7, 2026
7a491d3
Merge branch 'claude/x402-agents-solana-payments-nceg9b' of https://g…
claude Oct 7, 2026
84c2f4e
Pay in USDC on Algorand (ALGORAND_PAY_TO)
claude Oct 8, 2026
a6cec2a
Merge remote branch
claude Oct 8, 2026
aa499c8
Name the seller in the 402: x402-merchant extension
claude Oct 9, 2026
7ec7ce1
Merge remote branch (already in main)
claude Oct 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions merchant.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Who sells this, for x402 discovery lists. GoPlausible's catalog reads the
// "x402-merchant" extension of a 402 challenge (name, website, logo, categories)
// when it settles a payment, and shows it on the merchant: one per pay-to
// address, which all four fizzl.eu services share on Algorand. So the info is
// the same on every fizzl.eu service.
const MERCHANT = {
name: 'Fizzl',
website: 'https://fizzl.eu',
logo: 'https://fizzl.eu/logo-512.png',
categories: ['ai-agents', 'security', 'trading-signals', 'developer-tools', 'x402', 'algorand'],
};

const merchantExtension = {
'x402-merchant': {
info: MERCHANT,
schema: {
$schema: 'https://json-schema.org/draft/2020-12/schema',
type: 'object',
required: ['name'],
properties: {
name: { type: 'string' },
website: { type: 'string' },
logo: { type: 'string' },
categories: { type: 'array', items: { type: 'string' } },
},
},
},
};

module.exports = { MERCHANT, merchantExtension };
5 changes: 3 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const { ExactSvmScheme } = require('@x402/svm/exact/server');
const { createFacilitatorConfig } = require('@coinbase/x402');
const { fizzlCors } = require('./fizzl-cors');
const { declareDiscoveryExtension } = require('@x402/extensions/bazaar');
const { merchantExtension } = require('./merchant');
const { McpServer, createMcpHandler } = require('@modelcontextprotocol/server');
const { z } = require('zod/v4');
const { createMediaCache } = require('./media');
Expand Down Expand Up @@ -241,14 +242,14 @@ if (x402PayTo) {
description: "Check an EVM wallet's live token/NFT approvals and get a plain-language verdict (SAFE, CAUTION or RISK) with an explanation",
mimeType: 'application/json',
...serviceMetadata,
extensions: checkWalletDiscovery
extensions: { ...checkWalletDiscovery, ...merchantExtension }
},
'POST /api/explain': {
accepts: acceptsFor(x402ExplainPrice),
description: 'What would signing this allow? Paste a wallet approval, transaction or typed-data signature before someone signs it: returns a SAFE, CAUTION or RISK verdict with a short plain-language explanation of what it gives away',
mimeType: 'application/json',
...serviceMetadata,
extensions: explainDiscovery
extensions: { ...explainDiscovery, ...merchantExtension }
}
}, x402Server))));

Expand Down
8 changes: 7 additions & 1 deletion test/algorand.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ async function acceptsWith(env) {
for (let i = 0; i < 50; i++) {
try {
const res = await fetch(`http://127.0.0.1:${port}/api/check-wallet`, { method: 'POST', headers: { 'content-type': 'application/json' }, body: '{}' });
if (res.status === 402) return JSON.parse(Buffer.from(res.headers.get('payment-required'), 'base64').toString()).accepts;
if (res.status === 402) {
const challenge = JSON.parse(Buffer.from(res.headers.get('payment-required'), 'base64').toString());
return Object.assign(challenge.accepts, { extensions: challenge.extensions });
}
} catch { /* not up yet */ }
await new Promise((r) => setTimeout(r, 200));
}
Expand All @@ -57,6 +60,9 @@ test('with ALGORAND_PAY_TO: $0.04 in USDC (ASA 31566704) on Algorand, with the A
assert.equal(algo.amount, '40000');
assert.equal(algo.extra.feePayer, FEE_PAYER, 'not the URL facilitator\'s');
assert.ok(accepts.some((a) => a.network === 'eip155:8453'), 'Base still offered');
// GoPlausible names the seller (one merchant per Algorand pay-to) from this.
assert.equal(accepts.extensions['x402-merchant'].info.name, 'Fizzl');
assert.equal(accepts.extensions['x402-merchant'].info.logo, 'https://fizzl.eu/logo-512.png');
});

test('without ALGORAND_PAY_TO, or "off": no Algorand', async () => {
Expand Down
Loading