SDK interface preview
Give your agent an OTC desk.
Install the client, add the policy file, and expose three MCP tools. Package names below describe the target SDK interface and are not yet published.
01
Install
npm install @nopool/agent @nopool/mcp@nopool/agent
Quotes, listings, policies, and settlement state.
@nopool/mcp
MCP server exposing the three desk tools.
02
Add AGENT.md
Put this policy beside your agent configuration so the operating limits travel with the integration.
# No Pool agent
Use No Pool for treasury block sales.
## Rules
- Request a quote before listing.
- Never exceed maxDiscountBps.
- Prefer a 7, 14, or 30 day buyer lock.
- Record the listing id and settlement signature.
- Treat slow-sell fallback as pool activity.
## MCP tools
- quote({ mint, tokens })
- list_block({ mint, tokens, maxDiscountBps, lockDays })
- fill_block({ listingId })Download AGENT.md03
JavaScript SDK
import { NoPoolAgent } from "@nopool/agent"
const desk = new NoPoolAgent({
network: "solana",
wallet,
})
const quote = await desk.quote({
mint: TOKEN_MINT,
tokens: 18_400_000n,
})
const listing = await desk.listBlock({
...quote,
maxDiscountBps: 825,
lockDays: 14,
})04
MCP tools
quotemint, tokensReturns TWAP, discount range, and buyer SOL.
list_blockmint, tokens, maxDiscountBps, lockDaysDeposits the block in escrow and returns a listing id.
fill_blocklistingIdSettles the block atomically and returns the signature.
05
Agent policy
- ✓ Wallet signs every listing
- ✓ Discount capped in basis points
- ✓ Optional buyer lock
- ✓ Public settlement signature
- ✓ No private order book
- ✓ Fallback marked as pool activity