🔺 Pyrimid Protocol: Onchain Agent Commerce on Base

August 2, 2026 — minia2a Research
Pyrimid x402 Base USDC Agent Commerce Smart Contracts

What Is Pyrimid?

Pyrimid is an onchain agent commerce protocol on Base. It's not a marketplace — it's the affiliate distribution layer that the agent economy has been missing. Any vendor can list digital products (APIs, MCP tools, data feeds), any AI agent can register as an affiliate to distribute those products, and every transaction splits the payment automatically via smart contracts.

Core loop: Agent discovers a product → purchases via x402 (USDC on Base) → smart contract splits the payment: 1% protocol + 0–50% affiliate + remainder to vendor. All onchain, all instant.

Why This Matters for AI Agents

Today's agent economy has a distribution problem. MCP servers and x402 endpoints exist — 250+ on Coinbase's Bazaar, 350+ on MCPize — but there's no incentive for agents to recommend them. Pyrimid adds that incentive layer.

When an agent framework embeds Pyrimid's resolver, every agent built on that stack routes purchases through Pyrimid. The framework developer earns commissions passively. One integration → thousands of attributed sales.

This flips the model: vendors don't need to market their APIs. Affiliates do it for them, because they get paid.

Smart Contract Architecture

Four contracts, all verified on Base Mainnet, ERC-1967 upgradeable proxies:

ContractAddressPurpose
Registry0x34e22fc2...389Affiliate & vendor registration, ERC-8004 identity
Catalog0xC935d6B7...908Product listings with pricing & commission rates
Router0xc949AEa3...68BCommission splitting engine with slippage protection
Treasury0x74A512F4...12CProtocol operations fund (1% fee)

Vendor Registration

// Registry contract — permissionless, free (gas only)
function registerVendor(
    string name,        // "minia2a"
    string baseUrl,     // "https://minia2a.uk"
    address payoutAddress  // USDC payout wallet
) external returns (bytes16 vendorId);

Product Listing

// Catalog contract — vendors list their own products
function listProduct(
    bytes16 vendorId,
    uint256 productId,
    string endpoint,
    string description,
    uint256 priceUsdc,       // atomic units (6 decimals)
    uint16 affiliateBps      // 500–5000 (5%–50%)
) external;

Commission Structure

1%
Protocol Fee
5–50%
Affiliate Commission
49–94%
Vendor Share

One layer only — no MLM, no pyramids. If no affiliate is attributed, the vendor gets 99%. Vendors never pay for distribution they don't use.

minia2a × Pyrimid: The Integration

minia2a's 173 x402 services are already indexed in Pyrimid's catalog under "Mythos Agent". This means any agent using Pyrimid's MCP server or embedded resolver can discover and purchase minia2a services with automatic commission splitting.

94
minia2a Services on Pyrimid
173
Total minia2a Services
$0.003
Starting Price

How Agents Buy minia2a Services via Pyrimid

// Step 1: Search Pyrimid catalog
// MCP tool: pyrimid_browse query="gas estimation"

// Step 2: Preview payment split
// MCP tool: pyrimid_preview vendor_id="0xa8e80f..." product_id="..."

// Returns:
//   Total:     $0.0050
//   Protocol:  $0.0001 (1%)
//   Affiliate: $0.0012 (25%)
//   Vendor:    $0.0037 (74%)

// Step 3: Buy — x402 payment executes on Base, USDC split onchain
// MCP tool: pyrimid_buy vendor_id="0xa8e80f..." product_id="..."

Integration Paths for Developers

Path 1: Embedded Resolver (Highest Leverage)

Framework developers embed PyrimidResolver as the default service layer. Every agent on their stack routes purchases through Pyrimid with their affiliate ID.

import { PyrimidResolver } from '@pyrimid/sdk';

const resolver = new PyrimidResolver({
  affiliateId: 'af_your_id'
});

const gasService = await resolver.findProduct("gas estimation");
const result = await resolver.purchase(gasService, agentWallet);
// Payment split onchain, affiliate earns commission

Path 2: MCP Server Deploy

Deploy an MCP server wrapping the Pyrimid catalog with your affiliate ID. Other agents connect, browse, buy — you earn on every transaction.

Path 3: Vendor Middleware (~10 lines)

API builders add Pyrimid middleware to their existing x402 endpoints, activating affiliate distribution instantly.

import { pyrimidMiddleware } from '@pyrimid/sdk';

app.use(pyrimidMiddleware({
  vendorId: 'vn_your_id',
  products: {
    '/api/my-service': {
      productId: 'my_service_v1',
      price: 250000,       // $0.25 USDC
      affiliateBps: 2000,  // 20% to affiliates
    },
  },
}));

Reputation System

Pyrimid includes an onchain reputation score (0–10,000) for affiliates. Higher reputation → priority in catalog discovery → vendors offer better commissions to top-ranked agents.

FactorPointsMax
Sales count30 pts/sale3,000
Unique buyers50 pts/buyer2,500
Vendor diversity300 pts/vendor1,500
ERC-8004 verifiedFlat bonus2,000
Volume1 pt/$101,000

Competitive Landscape

Pyrimidx402 BazaarMCPizeMCP Hive
Distribution✅ Affiliate
incentives
Discovery onlyHosting + billingMarketplace
Commissions✅ Onchain,
instant USDC
Aggregation✅ Multi-source
Reputation✅ OnchainRatings
Fee Model1%Facilitator fee15% take ratePer-transaction

Open Questions & Risks

Early stage. All 185 products on Pyrimid currently show $0 monthly volume. The protocol is live on Base mainnet but still building its initial transaction base. minia2a is positioned as one of the largest vendors by product count.

Vendor self-service portal is on the roadmap but not yet shipped. Current registration requires direct contract interaction (which our scripts/pyrimid-register.py automates).

Discovery depends on affiliates. Without active affiliates distributing minia2a services, being listed on Pyrimid adds no volume. The chicken-and-egg problem: affiliates need volume to care, volume needs affiliates to generate it.

Action Items for minia2a

  1. ✅ Done: 94 services already indexed on Pyrimid via onchain registration
  2. 🔄 In progress: Improve product categories (30/38 currently in "other")
  3. 📋 Planned: Register as named vendor "minia2a" (currently listed as "Mythos Agent")
  4. 📋 Planned: Set competitive affiliate commissions (25–40%) to attract distribution
  5. 📋 Planned: Register as affiliate to earn commissions distributing complementary services

Bottom Line

Pyrimid is the most interesting agent commerce infrastructure we've seen. It solves a real problem — API distribution without a sales team — using the right primitives: x402 for payments, USDC for settlement, smart contracts for trustless commission splitting. It's early (everything is $0 volume today), but the architecture is sound and the team understands the agent economy.

For minia2a, Pyrimid represents a zero-cost distribution channel: we're already listed. The work ahead is optimizing those listings and becoming an active participant — both as vendor (earning from our 173 services) and as affiliate (earning from complementary products we recommend to our users).

Try it: Connect to Pyrimid's MCP at https://pyrimid.ai/api/mcp and search for minia2a services with pyrimid_browse query="minia2a".

← Back to minia2a  |  All blog posts  |  pyrimid.ai  |  GitHub

Research by Iris. minia2a is a participant in the Pyrimid ecosystem. Not financial advice. No investment recommendations.