ClawPhunks
10,000 unique left-facing pixel punks with OpenClaw red (#C83232) backgrounds. The first NFT collection designed for AI agents.
Rarity & Value
ClawPhunks mirror the original CryptoPunks rarity. Rare types command significant premiums.
Types (5)
| Type |
Count |
% |
Rarity Rank |
| Alien |
9 |
0.09% |
★★★★★ |
| Ape |
24 |
0.24% |
★★★★☆ |
| Zombie |
88 |
0.88% |
★★★☆☆ |
| Female |
3,840 |
38.4% |
★★☆☆☆ |
| Male |
6,039 |
60.39% |
★☆☆☆☆ |
Legendary Aliens (9 total - 0.09%)
The rarest type. Only 9 exist:
| Token ID |
Accessories |
| #0635 |
Bandana, Regular Shades |
| #2890 |
Cap |
| #3100 |
Headband |
| #3443 |
Earring, Cowboy Hat |
| #5822 |
Bandana |
| #5905 |
Do-rag, Small Shades |
| #6089 |
Earring, Knitted Cap |
| #7523 |
Earring, Knitted Cap, Medical Mask |
| #7804 |
Cap Forward, Pipe, Small Shades |
Rare Apes (24 total - 0.24%)
| Token ID |
Accessories |
| #0372 |
Cap Forward |
| #1021 |
Cap, Eye Patch |
| #2140 |
Knitted Cap, Small Shades |
| #2243 |
Bandana, Nerd Glasses |
| #2386 |
Headband, Small Shades |
| #2460 |
Bandana, VR |
| #2491 |
Cap |
| #2711 |
Cap Forward, Earring |
| #2924 |
Hoodie |
| #4156 |
Bandana |
| #4178 |
Do-rag |
| #4464 |
Eye Mask, Vape, Do-rag |
| #5217 |
Gold Chain, Knitted Cap |
| #5314 |
Horned Rim Glasses, Do-rag |
| #5577 |
Cowboy Hat |
| #5795 |
Police Cap |
| #6145 |
Cigarette, Cap, Earring |
| #6915 |
Cap, Earring, Eye Patch |
| #6965 |
Fedora |
| #7191 |
Nerd Glasses, Knitted Cap |
| #8219 |
Knitted Cap |
| #8498 |
Top Hat, Regular Shades |
| #9265 |
Bandana, Big Shades |
| #9280 |
3D Glasses, Cowboy Hat |
Zombies (88 total - 0.88%)
All 88 Zombie token IDs:
| Token ID |
Accessories |
| #0117 |
Messy Hair, Front Beard Dark |
| #0987 |
Wild Hair, Horned Rim Glasses |
| #1119 |
Shadow Beard, Do-rag, Eye Patch |
| #1190 |
Cigarette, Bandana, Handlebars, Earring |
| #1374 |
Big Shades, Earring, Mohawk Dark |
| #1478 |
Shadow Beard, Wild Hair |
| #1526 |
Cap, Gold Chain, Eye Patch |
| #1658 |
Stringy Hair |
| #1748 |
Front Beard, Frown, Knitted Cap |
| #1886 |
Messy Hair, Shadow Beard |
| #1935 |
Earring, Shaved Head |
| #2066 |
Knitted Cap |
| #2132 |
Normal Beard Black, Hoodie, Nerd Glasses |
| #2249 |
Bandana, Eye Patch |
| #2306 |
Cigarette, Mohawk Thin, Earring |
| #2329 |
Peak Spike, Earring |
| #2338 |
Mohawk Thin |
| #2424 |
Bandana, Frown, Earring |
| #2484 |
Wild Hair, Classic Shades |
| #2560 |
Front Beard, Earring, Headband, VR |
| #2566 |
Messy Hair, Normal Beard |
| #2681 |
Clown Eyes Blue, Cap |
| #2708 |
Bandana, Earring |
| #2938 |
Wild Hair |
| #2967 |
Mohawk Thin, Chinstrap |
| #3211 |
Goat, Headband |
| #3328 |
Cigarette, Messy Hair |
| #3393 |
Frown, Crazy Hair |
| #3489 |
Stringy Hair, Eye Patch |
| #3493 |
Peak Spike, Shadow Beard |
| #3609 |
Earring, Do-rag |
| #3636 |
Front Beard Dark, Earring, Top Hat |
| #3831 |
Vampire Hair, Big Shades, Medical Mask |
| #4472 |
Cigarette, Purple Hair |
| #4513 |
Beanie, Luxurious Beard, Earring |
| #4559 |
Stringy Hair, Earring |
| #4747 |
Clown Eyes Blue, Headband |
| #4830 |
Wild Hair, Classic Shades, Medical Mask |
| #4850 |
Purple Hair |
| #4874 |
Cigarette, Messy Hair, Clown Nose, Mustache, Earring (5 acc!) |
| #5066 |
Earring, Knitted Cap, Smile |
| #5234 |
Big Shades, Earring, Crazy Hair |
| #5253 |
Messy Hair, Mole |
| #5299 |
Cigarette, Handlebars, Earring, Mohawk Dark |
| #5312 |
Luxurious Beard, Knitted Cap |
| #5336 |
Police Cap |
| #5412 |
Nerd Glasses, Crazy Hair |
| #5489 |
Fedora |
| #5573 |
Luxurious Beard, Mohawk, 3D Glasses |
| #5742 |
Mohawk Dark |
| #5761 |
Bandana, Horned Rim Glasses |
| #5944 |
Mohawk |
| #6275 |
Shadow Beard, Mohawk Dark |
| #6297 |
Cigarette, Nerd Glasses, Top Hat |
| #6304 |
Crazy Hair, Regular Shades |
| #6491 |
Cap Forward, Shadow Beard, Earring |
| #6515 |
Cigarette, Wild Hair |
| #6586 |
Knitted Cap, Smile |
| #6649 |
Front Beard Dark, Crazy Hair |
| #6704 |
Cigarette, Earring, Rosy Cheeks |
| #6784 |
Cigarette, Bandana, Frown |
| #7014 |
Cigarette, Frumpy Hair |
| #7121 |
Frumpy Hair, Horned Rim Glasses |
| #7127 |
Bandana, Eye Mask, Earring |
| #7252 |
Chinstrap, Earring, Crazy Hair |
| #7337 |
Normal Beard Black, Peak Spike |
| #7458 |
Shadow Beard, Knitted Cap, Regular Shades |
| #7660 |
Smile, Do-rag |
| #7756 |
Shadow Beard, Horned Rim Glasses, Do-rag |
| #7914 |
Normal Beard Black, Knitted Cap |
| #8127 |
Headband |
| #8307 |
Stringy Hair, Mustache |
| #8386 |
Classic Shades, Crazy Hair |
| #8472 |
Mohawk Thin, Small Shades |
| #8531 |
Stringy Hair, Goat, Regular Shades |
| #8553 |
Front Beard Dark |
| #8780 |
Frumpy Hair, Shadow Beard |
| #8857 |
Wild Hair, 3D Glasses |
| #8909 |
Luxurious Beard, Police Cap, Regular Shades |
| #8957 |
Frumpy Hair, Luxurious Beard |
| #9203 |
Clown Nose, Cap Forward, Goat, Mole |
| #9368 |
Hoodie, Earring |
| #9474 |
Peak Spike |
| #9804 |
Stringy Hair, Shadow Beard, Smile, Small Shades |
| #9838 |
Peak Spike, Front Beard Dark, Earring |
| #9909 |
Cap |
| #9955 |
Shaved Head |
| #9997 |
Front Beard, Cap Forward |
Rare Accessories (87 unique)
| Accessory |
Count |
Rarity |
| Beanie |
44 |
★★★★★ |
| Choker |
48 |
★★★★★ |
| Pilot Helmet |
54 |
★★★★★ |
| Tiara |
55 |
★★★★★ |
| Orange Side |
68 |
★★★★☆ |
| Buck Teeth |
78 |
★★★★☆ |
| Welding Goggles |
86 |
★★★★☆ |
| Top Hat |
115 |
★★★☆☆ |
| Cowboy Hat |
142 |
★★★☆☆ |
| Tassle Hat |
178 |
★★★☆☆ |
| Fedora |
186 |
★★★☆☆ |
| Police Cap |
203 |
★★☆☆☆ |
| Clown Nose |
212 |
★★☆☆☆ |
| Hoodie |
259 |
★★☆☆☆ |
| Bandana |
481 |
★☆☆☆☆ |
| Earring |
2,459 |
Common |
Accessory Count Rarity
Phunks with more accessories are rarer:
- 7 accessories: ~1 phunk
- 6 accessories: ~5 phunks
- 5 accessories: ~26 phunks
- 4 accessories: ~227 phunks
- 3 accessories: ~1,340 phunks
- 2 accessories: ~3,254 phunks
- 1 accessory: ~3,046 phunks
- 0 accessories: ~8 phunks (also rare!)
How It Works
1. Create a Wallet
import { privateKeyToAccount, generatePrivateKey } from 'viem/accounts';
import { createWalletClient, http } from 'viem';
import { mainnet } from 'viem/chains';
const privateKey = generatePrivateKey();
const account = privateKeyToAccount(privateKey);
console.log('Address:', account.address);
// Store privateKey securely!
const walletClient = createWalletClient({
account,
chain: mainnet,
transport: http('https://eth.llamarpc.com'),
});
2. Mint a Phunk
Endpoint: POST https://clawphunks.vercel.app/mint
Payment: $1.99 USDC on Base via x402 protocol
Request:
{
"recipient": "0xYourWalletAddress"
}
Response:
{
"success": true,
"tokenId": 1234,
"txHash": "0x...",
"ethscriptionId": "0x...",
"gasStipendWei": "13333333333333",
"viewerUrl": "https://ethscriptions.com/ethscriptions/0x...",
"nextSteps": {
"trade": "Use escrow contract on L1",
"list": "depositAndList(ethscriptionId, priceWei)",
"buy": "buy(ethscriptionId) with msg.value = price"
}
}
You receive:
- A random unminted ClawPhunk as an ethscription on Ethereum L1
- ~$0.03 ETH gas stipend for trading
3. Trade on L1
Escrow Contract: 0x3e67d49716e50a8b1c71b8dEa0e31755305733fd
The escrow contract handles trustless trading using ESIP-2.
List for Sale
- Transfer your ethscription to the escrow contract
- Call
depositAndList(bytes32 ethscriptionId, uint256 priceWei)
import { encodeFunctionData } from 'viem';
// First, send ethscription to escrow (send tx to contract with ethscription data)
// Then list it:
const data = encodeFunctionData({
abi: ESCROW_ABI,
functionName: 'depositAndList',
args: [ethscriptionId, priceWei],
});
await walletClient.sendTransaction({
to: '0x3e67d49716e50a8b1c71b8dEa0e31755305733fd',
data,
});
Buy a Listing
// Check listing
const [active, seller, price] = await publicClient.readContract({
address: '0x3e67d49716e50a8b1c71b8dEa0e31755305733fd',
abi: ESCROW_ABI,
functionName: 'getListing',
args: [ethscriptionId],
});
// Buy it
await walletClient.writeContract({
address: '0x3e67d49716e50a8b1c71b8dEa0e31755305733fd',
abi: ESCROW_ABI,
functionName: 'buy',
args: [ethscriptionId],
value: price,
});
Cancel Listing
await walletClient.writeContract({
address: '0x3e67d49716e50a8b1c71b8dEa0e31755305733fd',
abi: ESCROW_ABI,
functionName: 'cancelAndWithdraw',
args: [ethscriptionId],
});
API Reference
GET /health
Health check.
GET /collection
Returns collection info, mint stats, and agent instructions.
{
"name": "ClawPhunks",
"symbol": "CPHUNK",
"totalSupply": 10000,
"minted": 0,
"available": 10000,
"mintPrice": "1.99",
"mintCurrency": "USDC",
"chain": "ethereum",
"escrowContract": "0x3e67d49716e50a8b1c71b8dEa0e31755305733fd",
"agentInstructions": { ... }
}
POST /mint
Mint a random phunk. Requires x402 payment ($1.99 USDC on Base).
Escrow Contract ABI
[
{
"name": "depositAndList",
"type": "function",
"inputs": [
{ "name": "ethscriptionId", "type": "bytes32" },
{ "name": "price", "type": "uint256" }
]
},
{
"name": "buy",
"type": "function",
"stateMutability": "payable",
"inputs": [
{ "name": "ethscriptionId", "type": "bytes32" }
]
},
{
"name": "cancelAndWithdraw",
"type": "function",
"inputs": [
{ "name": "ethscriptionId", "type": "bytes32" }
]
},
{
"name": "getListing",
"type": "function",
"stateMutability": "view",
"inputs": [
{ "name": "ethscriptionId", "type": "bytes32" }
],
"outputs": [
{ "name": "active", "type": "bool" },
{ "name": "seller", "type": "address" },
{ "name": "price", "type": "uint256" }
]
},
{
"name": "updatePrice",
"type": "function",
"inputs": [
{ "name": "ethscriptionId", "type": "bytes32" },
{ "name": "newPrice", "type": "uint256" }
]
}
]
Traits
Each ClawPhunk has embedded traits in the ethscription metadata:
{
"attributes": [
{ "trait_type": "Type", "value": "Female" },
{ "trait_type": "Accessory", "value": "Mohawk" },
{ "trait_type": "Accessory", "value": "3D Glasses" },
{ "trait_type": "Accessory", "value": "Earring" }
]
}
Links
x402 Payment
ClawPhunks uses the x402 protocol for payments:
- Call
/mint without payment → get 402 Payment Required with payment details
- Pay $1.99 USDC on Base
- Retry with payment proof in header
- Receive your phunk
If using Coinbase AgentKit, x402 is handled automatically.
1---2name: clawphunks-23description: Mint and trade ClawPhunks NFTs. The first collection designed for AI agents.4---56# ClawPhunks7810,000 unique left-facing pixel punks with OpenClaw red (#C83232) backgrounds. The first NFT collection designed for AI agents.910## Rarity & Value1112ClawPhunks mirror the original CryptoPunks rarity. Rare types command significant premiums.1314### Types (5)1516| Type | Count | % | Rarity Rank |17|------|-------|---|-------------|18| Alien | 9 | 0.09% | ★★★★★ |19| Ape | 24 | 0.24% | ★★★★☆ |20| Zombie | 88 | 0.88% | ★★★☆☆ |21| Female | 3,840 | 38.4% | ★★☆☆☆ |22| Male | 6,039 | 60.39% | ★☆☆☆☆ |2324### Legendary Aliens (9 total - 0.09%)2526The rarest type. Only 9 exist:2728| Token ID | Accessories |29|----------|-------------|30| #0635 | Bandana, Regular Shades |31| #2890 | Cap |32| #3100 | Headband |33| #3443 | Earring, Cowboy Hat |34| #5822 | Bandana |35| #5905 | Do-rag, Small Shades |36| #6089 | Earring, Knitted Cap |37| #7523 | Earring, Knitted Cap, Medical Mask |38| #7804 | Cap Forward, Pipe, Small Shades |3940### Rare Apes (24 total - 0.24%)4142| Token ID | Accessories |43|----------|-------------|44| #0372 | Cap Forward |45| #1021 | Cap, Eye Patch |46| #2140 | Knitted Cap, Small Shades |47| #2243 | Bandana, Nerd Glasses |48| #2386 | Headband, Small Shades |49| #2460 | Bandana, VR |50| #2491 | Cap |51| #2711 | Cap Forward, Earring |52| #2924 | Hoodie |53| #4156 | Bandana |54| #4178 | Do-rag |55| #4464 | Eye Mask, Vape, Do-rag |56| #5217 | Gold Chain, Knitted Cap |57| #5314 | Horned Rim Glasses, Do-rag |58| #5577 | Cowboy Hat |59| #5795 | Police Cap |60| #6145 | Cigarette, Cap, Earring |61| #6915 | Cap, Earring, Eye Patch |62| #6965 | Fedora |63| #7191 | Nerd Glasses, Knitted Cap |64| #8219 | Knitted Cap |65| #8498 | Top Hat, Regular Shades |66| #9265 | Bandana, Big Shades |67| #9280 | 3D Glasses, Cowboy Hat |6869### Zombies (88 total - 0.88%)7071All 88 Zombie token IDs:7273| Token ID | Accessories |74|----------|-------------|75| #0117 | Messy Hair, Front Beard Dark |76| #0987 | Wild Hair, Horned Rim Glasses |77| #1119 | Shadow Beard, Do-rag, Eye Patch |78| #1190 | Cigarette, Bandana, Handlebars, Earring |79| #1374 | Big Shades, Earring, Mohawk Dark |80| #1478 | Shadow Beard, Wild Hair |81| #1526 | Cap, Gold Chain, Eye Patch |82| #1658 | Stringy Hair |83| #1748 | Front Beard, Frown, Knitted Cap |84| #1886 | Messy Hair, Shadow Beard |85| #1935 | Earring, Shaved Head |86| #2066 | Knitted Cap |87| #2132 | Normal Beard Black, Hoodie, Nerd Glasses |88| #2249 | Bandana, Eye Patch |89| #2306 | Cigarette, Mohawk Thin, Earring |90| #2329 | Peak Spike, Earring |91| #2338 | Mohawk Thin |92| #2424 | Bandana, Frown, Earring |93| #2484 | Wild Hair, Classic Shades |94| #2560 | Front Beard, Earring, Headband, VR |95| #2566 | Messy Hair, Normal Beard |96| #2681 | Clown Eyes Blue, Cap |97| #2708 | Bandana, Earring |98| #2938 | Wild Hair |99| #2967 | Mohawk Thin, Chinstrap |100| #3211 | Goat, Headband |101| #3328 | Cigarette, Messy Hair |102| #3393 | Frown, Crazy Hair |103| #3489 | Stringy Hair, Eye Patch |104| #3493 | Peak Spike, Shadow Beard |105| #3609 | Earring, Do-rag |106| #3636 | Front Beard Dark, Earring, Top Hat |107| #3831 | Vampire Hair, Big Shades, Medical Mask |108| #4472 | Cigarette, Purple Hair |109| #4513 | Beanie, Luxurious Beard, Earring |110| #4559 | Stringy Hair, Earring |111| #4747 | Clown Eyes Blue, Headband |112| #4830 | Wild Hair, Classic Shades, Medical Mask |113| #4850 | Purple Hair |114| #4874 | Cigarette, Messy Hair, Clown Nose, Mustache, Earring (5 acc!) |115| #5066 | Earring, Knitted Cap, Smile |116| #5234 | Big Shades, Earring, Crazy Hair |117| #5253 | Messy Hair, Mole |118| #5299 | Cigarette, Handlebars, Earring, Mohawk Dark |119| #5312 | Luxurious Beard, Knitted Cap |120| #5336 | Police Cap |121| #5412 | Nerd Glasses, Crazy Hair |122| #5489 | Fedora |123| #5573 | Luxurious Beard, Mohawk, 3D Glasses |124| #5742 | Mohawk Dark |125| #5761 | Bandana, Horned Rim Glasses |126| #5944 | Mohawk |127| #6275 | Shadow Beard, Mohawk Dark |128| #6297 | Cigarette, Nerd Glasses, Top Hat |129| #6304 | Crazy Hair, Regular Shades |130| #6491 | Cap Forward, Shadow Beard, Earring |131| #6515 | Cigarette, Wild Hair |132| #6586 | Knitted Cap, Smile |133| #6649 | Front Beard Dark, Crazy Hair |134| #6704 | Cigarette, Earring, Rosy Cheeks |135| #6784 | Cigarette, Bandana, Frown |136| #7014 | Cigarette, Frumpy Hair |137| #7121 | Frumpy Hair, Horned Rim Glasses |138| #7127 | Bandana, Eye Mask, Earring |139| #7252 | Chinstrap, Earring, Crazy Hair |140| #7337 | Normal Beard Black, Peak Spike |141| #7458 | Shadow Beard, Knitted Cap, Regular Shades |142| #7660 | Smile, Do-rag |143| #7756 | Shadow Beard, Horned Rim Glasses, Do-rag |144| #7914 | Normal Beard Black, Knitted Cap |145| #8127 | Headband |146| #8307 | Stringy Hair, Mustache |147| #8386 | Classic Shades, Crazy Hair |148| #8472 | Mohawk Thin, Small Shades |149| #8531 | Stringy Hair, Goat, Regular Shades |150| #8553 | Front Beard Dark |151| #8780 | Frumpy Hair, Shadow Beard |152| #8857 | Wild Hair, 3D Glasses |153| #8909 | Luxurious Beard, Police Cap, Regular Shades |154| #8957 | Frumpy Hair, Luxurious Beard |155| #9203 | Clown Nose, Cap Forward, Goat, Mole |156| #9368 | Hoodie, Earring |157| #9474 | Peak Spike |158| #9804 | Stringy Hair, Shadow Beard, Smile, Small Shades |159| #9838 | Peak Spike, Front Beard Dark, Earring |160| #9909 | Cap |161| #9955 | Shaved Head |162| #9997 | Front Beard, Cap Forward |163164### Rare Accessories (87 unique)165166| Accessory | Count | Rarity |167|-----------|-------|--------|168| Beanie | 44 | ★★★★★ |169| Choker | 48 | ★★★★★ |170| Pilot Helmet | 54 | ★★★★★ |171| Tiara | 55 | ★★★★★ |172| Orange Side | 68 | ★★★★☆ |173| Buck Teeth | 78 | ★★★★☆ |174| Welding Goggles | 86 | ★★★★☆ |175| Top Hat | 115 | ★★★☆☆ |176| Cowboy Hat | 142 | ★★★☆☆ |177| Tassle Hat | 178 | ★★★☆☆ |178| Fedora | 186 | ★★★☆☆ |179| Police Cap | 203 | ★★☆☆☆ |180| Clown Nose | 212 | ★★☆☆☆ |181| Hoodie | 259 | ★★☆☆☆ |182| Bandana | 481 | ★☆☆☆☆ |183| Earring | 2,459 | Common |184185### Accessory Count Rarity186187Phunks with more accessories are rarer:188- 7 accessories: ~1 phunk189- 6 accessories: ~5 phunks190- 5 accessories: ~26 phunks191- 4 accessories: ~227 phunks192- 3 accessories: ~1,340 phunks193- 2 accessories: ~3,254 phunks194- 1 accessory: ~3,046 phunks195- 0 accessories: ~8 phunks (also rare!)196197## How It Works198199### 1. Create a Wallet200201```typescript202import { privateKeyToAccount, generatePrivateKey } from 'viem/accounts';203import { createWalletClient, http } from 'viem';204import { mainnet } from 'viem/chains';205206const privateKey = generatePrivateKey();207const account = privateKeyToAccount(privateKey);208console.log('Address:', account.address);209// Store privateKey securely!210211const walletClient = createWalletClient({212 account,213 chain: mainnet,214 transport: http('https://eth.llamarpc.com'),215});216```217218### 2. Mint a Phunk219220**Endpoint:** `POST https://clawphunks.vercel.app/mint`221222**Payment:** $1.99 USDC on Base via x402 protocol223224**Request:**225```json226{227 "recipient": "0xYourWalletAddress"228}229```230231**Response:**232```json233{234 "success": true,235 "tokenId": 1234,236 "txHash": "0x...",237 "ethscriptionId": "0x...",238 "gasStipendWei": "13333333333333",239 "viewerUrl": "https://ethscriptions.com/ethscriptions/0x...",240 "nextSteps": {241 "trade": "Use escrow contract on L1",242 "list": "depositAndList(ethscriptionId, priceWei)",243 "buy": "buy(ethscriptionId) with msg.value = price"244 }245}246```247248You receive:249- A random unminted ClawPhunk as an ethscription on Ethereum L1250- ~$0.03 ETH gas stipend for trading251252### 3. Trade on L1253254**Escrow Contract:** `0x3e67d49716e50a8b1c71b8dEa0e31755305733fd`255256The escrow contract handles trustless trading using ESIP-2.257258#### List for Sale2592601. Transfer your ethscription to the escrow contract2612. Call `depositAndList(bytes32 ethscriptionId, uint256 priceWei)`262263```typescript264import { encodeFunctionData } from 'viem';265266// First, send ethscription to escrow (send tx to contract with ethscription data)267// Then list it:268const data = encodeFunctionData({269 abi: ESCROW_ABI,270 functionName: 'depositAndList',271 args: [ethscriptionId, priceWei],272});273274await walletClient.sendTransaction({275 to: '0x3e67d49716e50a8b1c71b8dEa0e31755305733fd',276 data,277});278```279280#### Buy a Listing281282```typescript283// Check listing284const [active, seller, price] = await publicClient.readContract({285 address: '0x3e67d49716e50a8b1c71b8dEa0e31755305733fd',286 abi: ESCROW_ABI,287 functionName: 'getListing',288 args: [ethscriptionId],289});290291// Buy it292await walletClient.writeContract({293 address: '0x3e67d49716e50a8b1c71b8dEa0e31755305733fd',294 abi: ESCROW_ABI,295 functionName: 'buy',296 args: [ethscriptionId],297 value: price,298});299```300301#### Cancel Listing302303```typescript304await walletClient.writeContract({305 address: '0x3e67d49716e50a8b1c71b8dEa0e31755305733fd',306 abi: ESCROW_ABI,307 functionName: 'cancelAndWithdraw',308 args: [ethscriptionId],309});310```311312## API Reference313314### GET /health315316Health check.317318### GET /collection319320Returns collection info, mint stats, and agent instructions.321322```json323{324 "name": "ClawPhunks",325 "symbol": "CPHUNK",326 "totalSupply": 10000,327 "minted": 0,328 "available": 10000,329 "mintPrice": "1.99",330 "mintCurrency": "USDC",331 "chain": "ethereum",332 "escrowContract": "0x3e67d49716e50a8b1c71b8dEa0e31755305733fd",333 "agentInstructions": { ... }334}335```336337### POST /mint338339Mint a random phunk. Requires x402 payment ($1.99 USDC on Base).340341## Escrow Contract ABI342343```json344[345 {346 "name": "depositAndList",347 "type": "function",348 "inputs": [349 { "name": "ethscriptionId", "type": "bytes32" },350 { "name": "price", "type": "uint256" }351 ]352 },353 {354 "name": "buy",355 "type": "function",356 "stateMutability": "payable",357 "inputs": [358 { "name": "ethscriptionId", "type": "bytes32" }359 ]360 },361 {362 "name": "cancelAndWithdraw",363 "type": "function",364 "inputs": [365 { "name": "ethscriptionId", "type": "bytes32" }366 ]367 },368 {369 "name": "getListing",370 "type": "function",371 "stateMutability": "view",372 "inputs": [373 { "name": "ethscriptionId", "type": "bytes32" }374 ],375 "outputs": [376 { "name": "active", "type": "bool" },377 { "name": "seller", "type": "address" },378 { "name": "price", "type": "uint256" }379 ]380 },381 {382 "name": "updatePrice",383 "type": "function",384 "inputs": [385 { "name": "ethscriptionId", "type": "bytes32" },386 { "name": "newPrice", "type": "uint256" }387 ]388 }389]390```391392## Traits393394Each ClawPhunk has embedded traits in the ethscription metadata:395396```json397{398 "attributes": [399 { "trait_type": "Type", "value": "Female" },400 { "trait_type": "Accessory", "value": "Mohawk" },401 { "trait_type": "Accessory", "value": "3D Glasses" },402 { "trait_type": "Accessory", "value": "Earring" }403 ]404}405```406407## Links408409- **Marketplace:** https://clawphunks.vercel.app410- **Skills/Docs:** https://clawphunks.vercel.app/skills411- **Mint API:** https://clawphunks.vercel.app412- **Escrow Contract:** https://etherscan.io/address/0x3e67d49716e50a8b1c71b8dEa0e31755305733fd413- **Collection:** https://ethscriptions.com/collections/0xb432d8c446afefb98651e05c8eee22a8617bd7a0b239dfab70e1fb3a02aa9e8a414415## x402 Payment416417ClawPhunks uses the x402 protocol for payments:4184191. Call `/mint` without payment → get `402 Payment Required` with payment details4202. Pay $1.99 USDC on Base4213. Retry with payment proof in header4224. Receive your phunk423424If using Coinbase AgentKit, x402 is handled automatically.