AI agents

This page is the entry point for automated consumers of the PND onchain protocols: agents, indexers, bots, and retrieval pipelines. Everything below is a public read or a permissionless call; nothing needs an API key.

Start here

Surface URL What it is
Protocol manifest /protocol-manifest.json Shared-singleton addresses, ABI paths, and docs links, grouped by protocol
LLM orientation /llms.txt A compact map of the whole reference, with absolute links
Contract ABIs /abis/<ContractName>.json One plain ABI array per contract
Docs search index /docs-search-index.json Every docs section as a retrievable record
Reference /docs This documentation, generated from the ABIs plus hand-written prose

Read ABIs and the protocol manifest for the full shape of each file.

The clone model: why there's no fixed instance list

Surface and Auctions deploy per owner. Every artist collection is its own Surface clone from SurfaceFactory; every auction house is its own SovereignAuctionHouse clone from SovereignAuctionHouseFactory. There is no registry of "all instances" beyond each factory itself. Treat every clone address as a first-class contract and read its own state directly.

Surface versions

The discovery examples below use the V1 mainnet factory and ABI. Current V2 is a separately deployed set of primitives on mainnet and Sepolia. Use surfaceTokenV2Abi, fixedPriceSaleAbi, cloneFactoryAbi, and launcherAbi. The old surfaceV2Abi export is the superseded September testnet contract.

For current V2, discover paired instances from Launched(owner, collection, sale) on the Launcher and Created(implementation, instance, caller) on each CloneFactory. Read the collection's minter() to follow its current sale endpoint; there is no primaryMinter() or isMinter() set. V1 integrations continue to use those V1 selectors and SurfaceCreated. Read the V2 guide and version comparison.

Discovering collections

The collection factory emits one event per deploy:

solidity
event SurfaceCreated(address indexed owner, address indexed collection, address primaryMinter, IdMode idMode, string name, string symbol);

The primaryMinter field is the collection-to-minter binding: for a createSurface deploy it is the canonical FixedPriceMinter clone the factory wired; on createSurfaceCustom and createPooledSurface it is whichever primary the caller designated, or address(0) for none. Read it to know where a collection's mint calls go, then follow the collection's own PrimaryMinterSet event to stay current after a repoint. name and symbol come through on the event too, so indexing a new collection needs no follow-up call.

ts
import {createPublicClient, webSocket, parseAbiItem} from 'viem';
import {mainnet} from 'viem/chains';

const client = createPublicClient({chain: mainnet, transport: webSocket()});

client.watchEvent({
  address: '0xdB81d3F33EF3D84685486916E0d372E247558094',
  event: parseAbiItem('event SurfaceCreated(address indexed owner, address indexed collection, address primaryMinter, uint8 idMode, string name, string symbol)'),
  onLogs: (logs) => {
    for (const log of logs) console.log('new collection', log.args.name, log.args.collection, 'by', log.args.owner, 'minter', log.args.primaryMinter);
  },
});

For a point-in-time list, read the factory arrays:

bash
cast call 0xdB81d3F33EF3D84685486916E0d372E247558094 "totalSurfaces()(uint256)" --rpc-url https://mainnet.gateway.tenderly.co
cast call 0xdB81d3F33EF3D84685486916E0d372E247558094 "allSurfaces(uint256)(address)" 0 --rpc-url https://mainnet.gateway.tenderly.co
cast call 0xdB81d3F33EF3D84685486916E0d372E247558094 "isSurface(address)(bool)" 0xSomeAddress --rpc-url https://mainnet.gateway.tenderly.co

isSurface(address) is the cheap way to confirm an address is a real collection from this factory before trusting anything it returns.

Discovering auction houses

The auction factory works the same way, with one house per owner:

solidity
event AuctionHouseCreated(address indexed owner, address indexed house, address feeRecipient, uint16 protocolFeeBps);
bash
cast call 0xaE712abcA452901A74D1FBC0c3919F2cc060EF9f "totalHouses()(uint256)" --rpc-url https://mainnet.gateway.tenderly.co
cast call 0xaE712abcA452901A74D1FBC0c3919F2cc060EF9f "houseOf(address)(address)" 0xOwner --rpc-url https://mainnet.gateway.tenderly.co
cast call 0xaE712abcA452901A74D1FBC0c3919F2cc060EF9f "isHouse(address)(bool)" 0xSomeAddress --rpc-url https://mainnet.gateway.tenderly.co

predictHouseAddress(owner) returns the deterministic clone address for an owner before they deploy.

Reading a clone once you have its address

bash
cast call <COLLECTION_ADDRESS> "totalSupply()(uint256)" --rpc-url https://mainnet.gateway.tenderly.co
cast call <MINTER_ADDRESS> "priceOf(address,uint256)(uint256)" 0x0000000000000000000000000000000000000000 1 --rpc-url https://mainnet.gateway.tenderly.co
cast call <AUCTION_HOUSE_ADDRESS> "getAuctionFor(address,uint256)(bool,uint256)" <COLLECTION_ADDRESS> 1 --rpc-url https://mainnet.gateway.tenderly.co

The price lives on the minter, not the token; get <MINTER_ADDRESS> from the collection's SurfaceCreated.primaryMinter. Or via viem with the typed ABI:

ts
import {createPublicClient, http} from 'viem';
import {mainnet} from 'viem/chains';
import {surfaceAbi} from '@pin/abi';

const client = createPublicClient({chain: mainnet, transport: http('https://mainnet.gateway.tenderly.co')});

const [cfg, minted] = await client.readContract({
  address: '<COLLECTION_ADDRESS>',
  abi: surfaceAbi,
  functionName: 'config',
});

Deployment status

Catalog, the auction house factories, Surface V1, and current Surface V2 primitives have mainnet deployments recorded. V2 deployed on October 30, 2026, and its record was committed November 12. Both V2 factories landed paused. Read their current paused() and deprecated() flags before preparing a launch. Current addresses are in the manifest and Surface overview.