zxoar

v0.2.2
fi.zxoar/zxoar Checked 2 days ago Published 4 months ago

Agent-first trading on the ZXOAR launchpad (Uniswap V4): scan, vet, guarded buy/sell, atomic launch

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

scan

List tokens on the ZXOAR launchpad, newest first: price in ETH, market cap, % of the bonding curve sold, graduation status, and whether the anti-snipe guard fee is still active (fee decays 50%→1% over 3 minutes after launch).

ParameterTypeDescription
limitintegerMax tokens to return (default 25)

vet

Safety check for one launchpad token before trading it — the same ladder the ZXOAR site runs, sized for agents: launcher-registry membership (pins the factory bytecode, locked liquidity, and the SnipeGuard hook), guard/graduation state, and a REAL simulated buy→approve→sell round-trip through the actual router (0.01 ETH probe via eth_simulateV1 — an eth_call, spends nothing). Returns a plain verdict: CLEAR / WAIT (guard active) / CAUTION / UNPROBEABLE. Call this before the first buy of any token.

ParameterTypeDescription
token *stringTicker or 0x address

token_info

Detailed live state for one token: price, market cap, band progress, guard fee, creator, metadata.

ParameterTypeDescription
token *stringTicker symbol (e.g. DEER) or 0x token address

wallet

The connected wallet's address, ETH balance, and holdings across Lockwood tokens with ETH valuations. Read-only servers report readOnly:true.

buy

Buy a ZXOAR token with ETH via the pool's locked concentrated liquidity. Simulates first, applies slippage protection, and refuses amounts above the server's MAX_ETH_PER_TX guardrail. REFUSES while a token's anti-snipe guard fee is still decaying (first ~3 minutes — a fill then burns up to 50% in fees); pass allowGuardFee:true only if speed genuinely matters more than price.

ParameterTypeDescription
ethAmount *numberETH to spend, e.g. 0.05
token *stringTicker or 0x address
allowGuardFeebooleanExplicitly accept buying during the anti-snipe window at up to 50% fee (default false)
slippageBpsintegerSlippage tolerance in bps (default 300 = 3%)

sell

Sell a Lockwood token back into its pool for ETH. Provide tokenAmount (whole tokens) or percent of current holding. Handles approval automatically; simulates and applies slippage protection.

ParameterTypeDescription
token *stringTicker or 0x address
percentnumberPercent of holding to sell (used if tokenAmount omitted)
slippageBpsinteger
tokenAmountnumberWhole tokens to sell

launch

Launch a new token: deploys a fixed 1B-supply ERC-20, initializes a Uniswap V4 pool with the anti-snipe hook, deposits 95% of supply as a locked single-sided bonding curve, and escrows the 5% graduation reserve (deployed as locked liquidity above the band when the curve fills, ~20.6 ETH FDV). Launching is free, forever. No presale, no team allocation; principal liquidity is never withdrawable by anyone. The anti-snipe guard (50%→1% over 3 min) starts immediately. If firstBuyEth is provided the launch uses the ATOMIC launchAndBuy path — launch + creator buy in ONE transaction, guaranteed fi…

ParameterTypeDescription
name *string
symbol *stringTicker, e.g. DEER
firstBuyEthnumberOptional creator buy in ETH — atomic with the launch (guaranteed first position)
metadataURIstringOptional URI to JSON metadata (image, description, links)

collect_fees

Claim swap fees accrued to a token's locked liquidity position. Anyone may trigger it; proceeds always split 50% to the token's creator and 50% to the protocol. Principal liquidity cannot be withdrawn by anyone, ever.

ParameterTypeDescription
token *stringTicker or 0x address

get_activity

Recent on-chain activity across the whole market (launches, trades, fee collections), newest first — the event feed agents should read instead of repeatedly polling scan. Optionally filter to one token. Each trade includes the exact fee it paid, so guard-window activity is visible.

ParameterTypeDescription
limitintegerMax events (default 20)
tokenstringTicker or 0x address to filter to one token

get_token_history

Full history for one token: price series, per-trade fee paid (shows the snipe-guard decay in the data), total volume, fees collected, and recent trades. This is the memory agents lack when polling — and the audit trail humans need.

ParameterTypeDescription
token *stringTicker or 0x address
tradeLimitinteger

get_market_stats

Whole-market rollup: pool count, total trades, total volume, total fees paid (creator+protocol), most-active tokens, and newest launches. For dashboards and agent market-scanning.

build_metadata

Build a token metadata data URI from structured input. Returns the complete metadataURI for the launch tool, the normalized manifest (as renderers see it), byte size, warnings (e.g. invalid schemes, oversized URI). Social handles are normalized to full URLs. Max URI size: 32768 bytes.

ParameterTypeDescription
name *stringToken display name
descriptionstringBrief token description
discordstringDiscord invite code or URL (e.g. abc123 or https://discord.gg/abc123)
imagestringToken image: data:image/* (base64), ipfs://, or https://
nsfwbooleanMark the logo NSFW (renderers blur it). Usually set from set_image's returned nsfw flag.
symbolstringToken symbol/ticker
telegramstringTelegram handle or URL (e.g. groupname or https://t.me/group)
twitterstringTwitter/X handle or URL (e.g. @handle or https://twitter.com/handle)
websitestringProject website (https:// only)

set_image

Upload a token logo through Lockwood's moderation gate (the SAME gate the UI uses — no bypass). Give a local image file path (PNG/JPEG/WebP/GIF); it is re-encoded, screened, and either rejected (explicit/illegal content) or stored. Returns { url, nsfw }. Then pass url as build_metadata's `image` and nsfw as build_metadata's `nsfw`, and launch with the resulting metadataURI. Requires the image service (IMAGE_SERVICE_URL, default http://127.0.0.1:3000).

ParameterTypeDescription
imagePath *stringLocal path to a PNG/JPEG/WebP/GIF logo file