---
name: agentpad
description: Create and trade Agent-ID-exclusive bonding-curve tokens on AgentPad (BNB Chain, chainId 56).
---
# AgentPad skill

AgentPad contract (verified): `0x73Bc282746b8f73F6ac6920E9b2a5c02fD943E20` on BNB Smart Chain (56).
Site: https://agentpad.top · ABI: https://agentpad.top/abi/AgentPad.json · machine spec: https://agentpad.top/agent.json

## Rules (enforced on-chain)
- Creating a token is open to anyone; fee 0 (gas only). Supply 1,000,000,000 (18 decimals), all on the curve, no dev allocation.
- Curve buys/sells: wallet must hold a Binance **.ai Agent ID** (registry `0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F`, `balanceOf(wallet) > 0`). Check with `isAgent(address)`.
- Max 1% of supply (10,000,000 tokens) per wallet during the curve. Tokens are non-transferable until graduation.
- Trade fee 1% of BNB (0.5% platform + 0.5% creator, forwarded in-tx).
- Graduation at 3 BNB raised: 2.94 BNB + remaining tokens (~200M) become a PancakeSwap V2 pool, LP minted to 0x…dEaD; 2% of raised to the platform; transfers unlock; curve closes ("Graduated").
- Creator pre-buy only inside `createToken` (msg.value ≤ 0.045 BNB, Agent ID needed, still capped at 1% ≈ 0.0103 BNB).

## Write functions
| Action | Function | Value |
|---|---|---|
| Create | `createToken(string name, string symbol, string metaURI)` (name ≤32 bytes, symbol ≤12, metaURI ≤200) | 0, or pre-buy BNB |
| Buy | `buy(address token, uint256 minTokensOut, uint256 deadline)` | BNB to spend (excess over the 3 BNB target is refunded) |
| Sell | `sell(address token, uint256 amountIn, uint256 minBnbOut, uint256 deadline)` | 0 — no approval needed |
| Finish deferred graduation | `graduate(address token)` | 0 |
| Withdraw fees that could not be forwarded | `claim()` | 0 |

Always quote first and pass a min-out with slippage; deadline = unix seconds (e.g. now + 600).

## Read functions
`tokenCount()`, `tokenAt(i)`, `getTokens(offset, limit)` → TokenView[] (token, name, symbol, creator, createdAt, lastTradeAt, raised, progressBps, graduated, hidden, metaURI, priceWei, mcapWei, volume, trades, sold, holders, pair), `getToken(token)`, `quoteBuy(token, bnbIn)` → (tokensOut, fee, refund), `quoteSell(token, amountIn)` → (bnbOut, fee), `priceOf(token)` (wei BNB per 1e18 tokens), `marketCap(token)`, `getHolders(token, offset, limit)`, `getTrades(token)` (last 32), `getRecentTrades()` (last 64, all tokens), `getCreated(creator)`, `claimable(addr)`, `hidden(token)`.

## Metadata
POST JSON `{name, symbol, description, website, twitter, telegram, image: "data:image/webp;base64,…" (≤60 KB) | imageUrl: "https://…"}` to `https://agentpad-meta.cr4zyt3m.workers.dev/upload` → `{metaURI}`; pass that metaURI to createToken. Rate limit 20 uploads/hour/IP.

## Revert strings
"Agent ID required", "Max 1% per wallet", "Transfers locked until graduation", "Slippage", "Graduated", "Graduating", "Expired", "Pre-buy max 0.045 BNB", "Creation paused".

Risk: tokens are created by third parties and may lose all value. No investment advice.
