Zeroth

Launch and trade tokens on LayerZero's Zero: read launches, quotes; get unsigned txs.

사용해야 할까요

품질 및 안전성

A
설명 품질
99%
스키마 완전성
94%
이름 품질
85%
오염 위험
80%
권한 일치
100%
프로토콜 준수
100%

발견 사항 (2)

  • HIGHTool poisoning patterns detected
  • MEDIUMTool description contains suspicious base64-like encoded stringprepare_bridge_zro에서

도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.

컨텍스트 비용

~7,931토큰 (도구 정의)
~1.9 KB일반적인 응답 크기
상당한 주의 영향 (128k 컨텍스트의 6.20%)

이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.

설치

원클릭 설치

`claude_desktop_config.json` 파일에 다음을 추가하세요:

{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.zeroth.fi/mcp"
    }
  }
}

원격 엔드포인트

https://mcp.zeroth.fi/mcpstreamable-http

할 수 있는 일

도구 목록

도구 (25)

🟢 읽기 전용🟡 쓰기🔴 삭제⚪ 알 수 없음
🟢zeroth_info

Read-only. What Zeroth is, the active network, contract addresses, fees, chains, and the safety model for agents. Call this first. Network: testnet (home chain Base Sepolia, chain id 84532; Arbitrum Sepolia as remote).

입력 스키마

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}
🟢list_launches(stage, limit, offset)

Read-only. Launches on the venue, newest first, with stage (new, graduating at 60%+ of the curve sold, graduated), price, market cap and curve progress. Network: testnet (home chain Base Sepolia, chain id 84532; Arbitrum Sepolia as remote).

입력 스키마

{
  "type": "object",
  "properties": {
    "stage": {
      "type": "string",
      "enum": [
        "new",
        "graduating",
        "graduated"
      ]
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 20
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "default": 0,
      "description": "Skip this many of the newest launches."
    }
  },
  "additionalProperties": false
}
🟢get_token(token, holders)

Read-only. One launch: name, symbol, creator, stage, price, market cap, curve progress and quote raised, plus a holders summary (holder wallets, top 10 share, creator share, venue contracts) built from Transfer logs.

입력 스키마

{
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "description": "Launch token address (symbols are not unique; a symbol only works if exactly one recent launch uses it)."
    },
    "holders": {
      "type": "boolean",
      "default": true,
      "description": "Include the holders summary (one log scan)."
    }
  },
  "required": [
    "token"
  ],
  "additionalProperties": false
}
🟢quote_buy(token, usd, slippage_bps)

Read-only. Exact on-chain quote for buying a token with an amount of tUSD: tokens out, fee, quote actually used (a sell-out fill can use less), and the minimum out at your slippage.

입력 스키마

{
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "description": "Launch token address (symbols are not unique; a symbol only works if exactly one recent launch uses it)."
    },
    "usd": {
      "type": "string",
      "description": "Amount of the quote asset (tUSD, 18 decimals) as a decimal string, e.g. \"2.5\"."
    },
    "slippage_bps": {
      "type": "integer",
      "minimum": 0,
      "maximum": 5000,
      "default": 300,
      "description": "Max slippage in basis points (300 = 3%). Sets the on-chain minimum out."
    }
  },
  "required": [
    "token",
    "usd"
  ],
  "additionalProperties": false
}
🟢quote_sell(token, tokens, slippage_bps)

Read-only. Exact on-chain quote for selling an amount of a token: tUSD out, fee, and the minimum out at your slippage.

입력 스키마

{
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "description": "Launch token address (symbols are not unique; a symbol only works if exactly one recent launch uses it)."
    },
    "tokens": {
      "type": "string",
      "description": "Token amount (18 decimals) as a decimal string."
    },
    "slippage_bps": {
      "type": "integer",
      "minimum": 0,
      "maximum": 5000,
      "default": 300,
      "description": "Max slippage in basis points (300 = 3%). Sets the on-chain minimum out."
    }
  },
  "required": [
    "token",
    "tokens"
  ],
  "additionalProperties": false
}
🟢get_balance(wallet, token, session_key)

Read-only. For a wallet: trading balance on the venue (the TradeAccount, used by session keys), tUSD and ETH in the wallet on the home chain and each remote chain, optionally one token's wallet balance next to its position in the trading account (the part session keys and orders can sell), and optionally a session key's caps, price guard, spend today and expiry.

입력 스키마

{
  "type": "object",
  "properties": {
    "wallet": {
      "type": "string",
      "description": "The signing wallet (EVM address). Also receives the output."
    },
    "token": {
      "type": "string",
      "description": "Optional launch token address."
    },
    "session_key": {
      "type": "string",
      "description": "Optional agent key address to show its session for this wallet."
    }
  },
  "required": [
    "wallet"
  ],
  "additionalProperties": false
}
🟢route_status(chain)

Read-only, MAINNET. Whether the ZRO bridge route to Zero (LayerZero eid 33002) is open right now from Ethereum, Arbitrum and Base, with the LayerZero fee. LayerZero opens this route in windows before Zero mainnet; a closed route makes quoteSend revert. This reads mainnet chains whatever network the venue tools use.

입력 스키마

{
  "type": "object",
  "properties": {
    "chain": {
      "type": "string",
      "enum": [
        "ethereum",
        "arbitrum",
        "base",
        "bnb",
        "optimism",
        "polygon",
        "avalanche"
      ],
      "description": "Optional: one source chain. Default all three."
    }
  },
  "additionalProperties": false
}
🟢prepare_faucet(wallet, chain)

Testnet only. Unsigned call to draw 1000 test tUSD (no value) from the faucet, once per wallet per hour, on the home chain or a remote chain. Does not spend money (gas only). Returns unsigned transactions only; the server never signs, sends or sees keys.

입력 스키마

{
  "type": "object",
  "properties": {
    "wallet": {
      "type": "string",
      "description": "The signing wallet (EVM address). Also receives the output."
    },
    "chain": {
      "type": "string",
      "description": "home (default) or a remote chain key."
    }
  },
  "required": [
    "wallet"
  ],
  "additionalProperties": false
}
🟢prepare_deposit(wallet, usd, from_chain)

SPENDS MONEY when signed. Fund the venue trading balance (TradeAccount) with tUSD. from_chain=home: approve (if needed) then deposit on the home chain. from_chain=<remote>: one LayerZero OFT send from the remote chain that credits the trading balance on arrival (compose message, about a minute), with the LayerZero fee as value. Only the owner can withdraw this balance; session keys can trade it, within their price guard and any caps. Returns unsigned transactions only; the server never signs, sends or sees keys.

입력 스키마

{
  "type": "object",
  "properties": {
    "wallet": {
      "type": "string",
      "description": "The signing wallet (EVM address). Also receives the output."
    },
    "usd": {
      "type": "string",
      "description": "Amount of the quote asset (tUSD, 18 decimals) as a decimal string, e.g. \"2.5\"."
    },
    "from_chain": {
      "type": "string",
      "description": "home (default) or arbitrum-sepolia."
    }
  },
  "required": [
    "wallet",
    "usd"
  ],
  "additionalProperties": false
}
🟢prepare_withdraw(wallet, usd, to_chain)

SPENDS MONEY when signed. (moves your own funds out.) Owner only: withdraw tUSD from the trading balance to the wallet on the home chain, or to a remote chain over LayerZero (pay the fee as value; excess refunded). Session keys cannot withdraw. Returns unsigned transactions only; the server never signs, sends or sees keys.

입력 스키마

{
  "type": "object",
  "properties": {
    "wallet": {
      "type": "string",
      "description": "The signing wallet (EVM address). Also receives the output."
    },
    "usd": {
      "type": "string",
      "description": "Amount of the quote asset (tUSD, 18 decimals) as a decimal string, e.g. \"2.5\"."
    },
    "to_chain": {
      "type": "string",
      "description": "home (default) or a remote chain key."
    }
  },
  "required": [
    "wallet",
    "usd"
  ],
  "additionalProperties": false
}
🟢prepare_deposit_token(wallet, token, tokens)

Owner only. Move a launch token from the wallet into the wallet's position on the trading account (approve if needed, then TradeAccount.depositToken), so session keys and orders can sell it. Does not sell anything and does not change who owns the tokens; the owner takes them back any time with prepare_withdraw_token. A session key cannot do this. Does not spend money (gas only). Returns unsigned transactions only; the server never signs, sends or sees keys.

입력 스키마

{
  "type": "object",
  "properties": {
    "wallet": {
      "type": "string",
      "description": "The signing wallet (EVM address). Also receives the output."
    },
    "token": {
      "type": "string",
      "description": "Launch token address (symbols are not unique; a symbol only works if exactly one recent launch uses it)."
    },
    "tokens": {
      "type": "string",
      "description": "Token amount to move in (18 decimals, decimal string). Omit to move the whole wallet balance."
    }
  },
  "required": [
    "wallet",
    "token"
  ],
  "additionalProperties": false
}
🟢prepare_withdraw_token(wallet, token, tokens)

Owner only. Move a launch token from the wallet's position on the trading account back to the wallet on the home chain (TradeAccount.withdrawToken). Session keys cannot do this. Does not spend money (gas only). Returns unsigned transactions only; the server never signs, sends or sees keys.

입력 스키마

{
  "type": "object",
  "properties": {
    "wallet": {
      "type": "string",
      "description": "The signing wallet (EVM address). Also receives the output."
    },
    "token": {
      "type": "string",
      "description": "Launch token address (symbols are not unique; a symbol only works if exactly one recent launch uses it)."
    },
    "tokens": {
      "type": "string",
      "description": "Token amount to move out (18 decimals, decimal string). Omit to move the whole position."
    }
  },
  "required": [
    "wallet",
    "token"
  ],
  "additionalProperties": false
}
🟢prepare_buy(wallet, token, usd, slippage_bps, pay_from, ...)

SPENDS MONEY when signed. Buy a launch token on the home chain, signed by the wallet itself. pay_from=wallet (default): tUSD from the wallet (approve if needed, then the curve or graduated market). pay_from=balance: from the wallet's trading balance via the TradeAccount (no approval); tokens go to the wallet, or stay on the trading account as the wallet's position with tokens_to=position (TradeAccount.buyToPosition), where session keys and orders can sell them. Owner-signed trades are not subject to the session price guard. The minimum out comes from an exact on-chain quote less slippage. For agents trading for a user with their own key, use session_buy instead. Returns unsigned transactions only; the server never signs, sends or sees keys.

입력 스키마

{
  "type": "object",
  "properties": {
    "wallet": {
      "type": "string",
      "description": "The signing wallet (EVM address). Also receives the output."
    },
    "token": {
      "type": "string",
      "description": "Launch token address (symbols are not unique; a symbol only works if exactly one recent launch uses it)."
    },
    "usd": {
      "type": "string",
      "description": "Amount of the quote asset (tUSD, 18 decimals) as a decimal string, e.g. \"2.5\"."
    },
    "slippage_bps": {
      "type": "integer",
      "minimum": 0,
      "maximum": 5000,
      "default": 300,
      "description": "Max slippage in basis points (300 = 3%). Sets the on-chain minimum out."
    },
    "pay_from": {
      "type": "string",
      "enum": [
        "wallet",
        "balance"
      ],
      "default": "wallet"
    },
    "tokens_to": {
      "type": "string",
      "enum": [
        "wallet",
        "position"
      ],
      "default": "wallet",
      "description": "With pay_from=balance: position keeps the tokens on the trading account as the wallet's position."
    },
    "client_id": {
      "type": "string",
      "description": "Optional order id. The contract rejects a reused id for the same user, so retries cannot double-fill. Hashed with keccak256 unless it is already 32 bytes hex. Random if omitted."
    }
  },
  "required": [
    "wallet",
    "token",
    "usd"
  ],
  "additionalProperties": false
}
🟢prepare_sell(wallet, token, tokens, slippage_bps, proceeds_to, ...)

SPENDS MONEY when signed. (sells tokens.) Sell a launch token on the home chain, signed by the wallet itself. proceeds_to=wallet (default): approve (if needed) then sell on the curve or graduated market, tUSD to the wallet. proceeds_to=balance: TradeAccount.sell from the wallet's tokens (approve if needed), tUSD credited to the trading balance. sell_from=position: sell tokens held as the wallet's position on the trading account (TradeAccount.sellPosition, no approval), tUSD credited to the trading balance. For agents with a session key, use session_sell. Returns unsigned transactions only; the server never signs, sends or sees keys.

입력 스키마

{
  "type": "object",
  "properties": {
    "wallet": {
      "type": "string",
      "description": "The signing wallet (EVM address). Also receives the output."
    },
    "token": {
      "type": "string",
      "description": "Launch token address (symbols are not unique; a symbol only works if exactly one recent launch uses it)."
    },
    "tokens": {
      "type": "string",
      "description": "Token amount (18 decimals) as a decimal string."
    },
    "slippage_bps": {
      "type": "integer",
      "minimum": 0,
      "maximum": 5000,
      "default": 300,
      "description": "Max slippage in basis points (300 = 3%). Sets the on-chain minimum out."
    },
    "proceeds_to": {
      "type": "string",
      "enum": [
        "wallet",
        "balance"
      ],
      "default": "wallet"
    },
    "sell_from": {
      "type": "string",
      "enum": [
        "wallet",
        "position"
      ],
      "default": "wallet",
      "description": "position sells tokens held on the trading account; proceeds then go to the trading balance."
    },
    "client_id": {
      "type": "string",
      "description": "Optional order id. The contract rejects a reused id for the same user, so retries cannot double-fill. Hashed with keccak256 unless it is already 32 bytes hex. Random if omitted."
    }
  },
  "required": [
    "wallet",
    "token",
    "tokens"
  ],
  "additionalProperties": false
}
🟢prepare_cross_chain_buy(wallet, token, usd, from_chain, recipient, ...)

SPENDS MONEY when signed. Buy a launch token by paying tUSD on a remote chain, in one signature: an OFT send to the home ComposeRouter carrying the order. It fills on arrival (about a minute). Before graduation the tokens are delivered to the recipient on the home chain (launch tokens cannot leave it until graduation); after graduation they return to the source chain. If the fill fails (slippage, deadline), the tUSD is refunded to the source chain when the message carries native for it, otherwise it is held on the home chain for the sender to claim. return_value_eth pays for that return or refund leg: it is sent along as compose value and written into the order as minReturnValue, so nobody can execute the order with less (an underpaid execution reverts and the order stays queued for the paid delivery); what the leg does not use goes to the recipient on the home chain. Value is the LayerZero fee plus 10% headroom (excess refunded). Returns unsigned transactions only; the server never signs, sends or sees keys.

입력 스키마

{
  "type": "object",
  "properties": {
    "wallet": {
      "type": "string",
      "description": "The signing wallet (EVM address). Also receives the output."
    },
    "token": {
      "type": "string",
      "description": "Launch token address (symbols are not unique; a symbol only works if exactly one recent launch uses it)."
    },
    "usd": {
      "type": "string",
      "description": "Amount of the quote asset (tUSD, 18 decimals) as a decimal string, e.g. \"2.5\"."
    },
    "from_chain": {
      "type": "string",
      "enum": [
        "arbitrum-sepolia"
      ],
      "description": "Remote source chain."
    },
    "recipient": {
      "type": "string",
      "description": "Receiver of the tokens. Default: the wallet."
    },
    "slippage_bps": {
      "type": "integer",
      "minimum": 0,
      "maximum": 5000,
      "default": 300,
      "description": "Max slippage in basis points (300 = 3%). Sets the on-chain minimum out."
    },
    "deadline_minutes": {
      "type": "integer",
      "minimum": 5,
      "maximum": 1440,
      "default": 60
    },
    "return_value_eth": {
      "type": "string",
      "description": "Optional native (ETH, decimal string, at most 0.01) delivered with the order on the home chain to pay its return or refund leg. Becomes the order's minReturnValue. Default 0: output or a refund then stays on the home chain."
    }
  },
  "required": [
    "wallet",
    "token",
    "usd",
    "from_chain"
  ],
  "additionalProperties": false
}
🟢prepare_launch(wallet, name, symbol, metadata_uri, first_buy_usd, ...)

Launch a new token on the curve (the signer becomes its creator). Without first_buy_usd it does not spend money (gas only). With first_buy_usd it spends money when signed: the creator buys in the same transaction, before anyone else can (approve, then launchAndBuy). The opening per-wallet cap applies. Returns unsigned transactions only; the server never signs, sends or sees keys.

입력 스키마

{
  "type": "object",
  "properties": {
    "wallet": {
      "type": "string",
      "description": "The signing wallet (EVM address). Also receives the output."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 40
    },
    "symbol": {
      "type": "string",
      "minLength": 1,
      "maxLength": 12,
      "description": "No spaces."
    },
    "metadata_uri": {
      "type": "string",
      "maxLength": 4096,
      "description": "Optional link or data: URI for the token page."
    },
    "first_buy_usd": {
      "type": "string",
      "description": "Optional first buy in tUSD."
    },
    "slippage_bps": {
      "type": "integer",
      "minimum": 0,
      "maximum": 5000,
      "default": 300,
      "description": "Max slippage in basis points (300 = 3%). Sets the on-chain minimum out."
    }
  },
  "required": [
    "wallet",
    "name",
    "symbol"
  ],
  "additionalProperties": false
}
🟢prepare_set_session(wallet, session_key, max_per_trade_usd, max_per_day_usd, hours, ...)

Authorise an agent key to trade the user's trading balance. The USER signs this. A session key trades only inside the user's trading balance on the TradeAccount: the quote balance and the token positions held there. Its buys land in the position, its sells sell from the position, never from the wallet. Every key trade must fill within the key's price guard (3% by default, at most 10%) of the last block's price. It can never withdraw quote or tokens. It expires, and only the owner can renew it by granting it again. Defaults: no size caps, 7 days, 3% price guard. With no caps the key can trade the whole trading balance and every position, on any launch token, in guard-sized steps, until it expires or the user revokes it (prepare_revoke_session, any time); max_per_trade_usd and max_per_day_usd (both in tUSD) are the hard limits for a user who wants them, and max_deviation_bps sets the guard. All are enforced by the TradeAccount contract. Granting the same key again renews it, replaces its settings and resets today's spend counter. Returns unsigned transactions only; the server never signs, sends or sees keys.

입력 스키마

{
  "type": "object",
  "properties": {
    "wallet": {
      "type": "string",
      "description": "The user who owns the trading balance and signs this."
    },
    "session_key": {
      "type": "string",
      "description": "The agent key's address (the agent keeps the private key)."
    },
    "max_per_trade_usd": {
      "type": "string",
      "description": "Optional per-trade cap in tUSD. Omit for no cap."
    },
    "max_per_day_usd": {
      "type": "string",
      "description": "Optional daily cap in tUSD. Omit for no cap."
    },
    "hours": {
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 8760,
      "default": 168,
      "description": "Expiry from now, in hours. Default 168 (7 days), at most 8760. The key cannot extend itself: the user grants it again to renew."
    },
    "max_deviation_bps": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "default": 300,
      "description": "Price guard for this key in basis points: every trade it signs must fill within this distance of the last block's price, fees included. Default 300 (3%), at most 1000 (10%)."
    }
  },
  "required": [
    "wallet",
    "session_key"
  ],
  "additionalProperties": false
}
🟢prepare_revoke_session(wallet, session_key)

Revoke an agent key at once. The USER signs this. Does not spend money (gas only). Returns unsigned transactions only; the server never signs, sends or sees keys.

입력 스키마

{
  "type": "object",
  "properties": {
    "wallet": {
      "type": "string",
      "description": "The user who granted the key."
    },
    "session_key": {
      "type": "string"
    }
  },
  "required": [
    "wallet",
    "session_key"
  ],
  "additionalProperties": false
}
🟢prepare_bridge_zro(from_chain, wallet, amount, recipient)

SPENDS MONEY when signed. MAINNET ONLY: real ZRO on Ethereum, Arbitrum or Base mainnet, sent to Zero (LayerZero eid 33002) with the ZRO OFT. There is no testnet version; this tool ignores the venue network setting. Free when the recipient is the sender's own address. To another address, 0.2% of the amount is taken from it and sent to 0xcE4c518D1475593eB4A44154c2C13c4F86F89D90 as a separate ZRO transfer, so you never spend more than the amount. Value is the LayerZero fee in ETH (+10% headroom, refunded). Fails while LayerZero has the route closed (see route_status). Contract wallets are refused: they may not exist at the same address on Zero. Returns unsigned transactions only; the server never signs, sends or sees keys.

입력 스키마

{
  "type": "object",
  "properties": {
    "from_chain": {
      "type": "string",
      "enum": [
        "ethereum",
        "arbitrum",
        "base",
        "bnb",
        "optimism",
        "polygon",
        "avalanche"
      ]
    },
    "wallet": {
      "type": "string",
      "description": "Sender (holds the ZRO, signs)."
    },
    "amount": {
      "type": "string",
      "description": "ZRO amount as a decimal string."
    },
    "recipient": {
      "type": "string",
      "description": "Receiver on Zero. Default: the sender (free)."
    }
  },
  "required": [
    "from_chain",
    "wallet",
    "amount"
  ],
  "additionalProperties": false
}
🟢session_buy(user, session_key, token, usd, slippage_bps, ...)

SPENDS MONEY when signed. For agents holding a session key: the exact TradeAccount.buy call that the AGENT signs with its own session key to buy for the user, from the user's trading balance. The tokens stay on the trading account as the user's position (not the wallet); the user moves them out with prepare_withdraw_token, and the key can sell them with session_sell. The fill must be within the key's price guard of the last block's price, fees included, or the contract refuses it (PriceGuard). The server pre-checks expiry, caps (if set), balance and the price guard, tells you the largest size that would pass, and simulates the call from the session key. Sign locally; never send the key anywhere. Returns unsigned transactions only; the server never signs, sends or sees keys.

입력 스키마

{
  "type": "object",
  "properties": {
    "user": {
      "type": "string",
      "description": "The user who granted the session."
    },
    "session_key": {
      "type": "string",
      "description": "The agent key's address (the signer)."
    },
    "token": {
      "type": "string",
      "description": "Launch token address (symbols are not unique; a symbol only works if exactly one recent launch uses it)."
    },
    "usd": {
      "type": "string",
      "description": "Amount of the quote asset (tUSD, 18 decimals) as a decimal string, e.g. \"2.5\"."
    },
    "slippage_bps": {
      "type": "integer",
      "minimum": 0,
      "maximum": 5000,
      "default": 300,
      "description": "Max slippage in basis points (300 = 3%). Sets the on-chain minimum out."
    },
    "client_id": {
      "type": "string",
      "description": "Optional order id. The contract rejects a reused id for the same user, so retries cannot double-fill. Hashed with keccak256 unless it is already 32 bytes hex. Random if omitted."
    }
  },
  "required": [
    "user",
    "session_key",
    "token",
    "usd"
  ],
  "additionalProperties": false
}
🟢session_sell(user, session_key, token, tokens, slippage_bps, ...)

SPENDS MONEY when signed. (sells the user's tokens.) For agents holding a session key: the exact TradeAccount.sell call the AGENT signs with its session key to sell tokens from the user's position on the trading account; proceeds go to the user's trading balance. It never takes tokens from the wallet and needs no token approval: tokens bought by a key are already in the position, and the user moves others in with prepare_deposit_token. The fill must be within the key's price guard of the last block's price, fees included (PriceGuard otherwise). Caps, if set, apply to the proceeds. The server pre-checks all of it and reports the largest size that would pass. Sign locally; never send the key anywhere. Returns unsigned transactions only; the server never signs, sends or sees keys.

입력 스키마

{
  "type": "object",
  "properties": {
    "user": {
      "type": "string",
      "description": "The user who granted the session."
    },
    "session_key": {
      "type": "string",
      "description": "The agent key's address (the signer)."
    },
    "token": {
      "type": "string",
      "description": "Launch token address (symbols are not unique; a symbol only works if exactly one recent launch uses it)."
    },
    "tokens": {
      "type": "string",
      "description": "Token amount (18 decimals) as a decimal string."
    },
    "slippage_bps": {
      "type": "integer",
      "minimum": 0,
      "maximum": 5000,
      "default": 300,
      "description": "Max slippage in basis points (300 = 3%). Sets the on-chain minimum out."
    },
    "client_id": {
      "type": "string",
      "description": "Optional order id. The contract rejects a reused id for the same user, so retries cannot double-fill. Hashed with keccak256 unless it is already 32 bytes hex. Random if omitted."
    }
  },
  "required": [
    "user",
    "session_key",
    "token",
    "tokens"
  ],
  "additionalProperties": false
}
🟢prepare_order_session(wallet, max_per_trade_usd, max_per_day_usd, hours, max_deviation_bps, ...)

Authorise the venue's order key to execute this user's signed orders (limit, take-profit, stop, trailing stop, brackets). The USER signs the steps. Defaults: no size caps, 7 days, 3% price guard; the order key can trade the trading balance and positions, but only by executing orders the user signed, and the user can revoke it any time. Optional: max_per_trade_usd, max_per_day_usd (tUSD), hours and max_deviation_bps, enforced by the TradeAccount contract. Orders cannot fill after the session expires, so renew it (sign this again) while orders are open. With deposit_tokens, also returns the steps that move those tokens from the wallet into the position, which sell orders need (sell orders never take tokens from the wallet). Orders run through the keeper order key: the user grants it a session once (prepare_order_session; no caps and 7 days by default, renewed by signing again), signs each order (build_order), and posts it (submit_order). The order key is a session key like any other: buy orders spend the trading balance and fill into the position on the trading account, sell orders sell from that position (never the wallet), and every fill must pass the price guard, so an order too large for the guard waits and retries. The order clientId stops a second fill. Revoke the session (prepare_revoke_session with the order key) to stop every order at once. Returns unsigned transactions only; the server never signs, sends or sees keys.

입력 스키마

{
  "type": "object",
  "properties": {
    "wallet": {
      "type": "string",
      "description": "The user who owns the trading balance and signs this."
    },
    "max_per_trade_usd": {
      "type": "string",
      "description": "Optional per-trade cap in tUSD. Omit for no cap."
    },
    "max_per_day_usd": {
      "type": "string",
      "description": "Optional daily cap in tUSD. Omit for no cap."
    },
    "hours": {
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 8760,
      "default": 168,
      "description": "Session expiry from now, in hours. Default 168 (7 days), at most 8760. Orders cannot fill after it."
    },
    "max_deviation_bps": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "default": 300,
      "description": "Price guard for this key in basis points: every trade it signs must fill within this distance of the last block's price, fees included. Default 300 (3%), at most 1000 (10%)."
    },
    "deposit_tokens": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 10,
      "description": "Launch tokens the user will place sell orders on: adds approve + depositToken steps that move the whole wallet balance of each into the position."
    },
    "sell_tokens": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 10,
      "description": "Former name of deposit_tokens; treated the same."
    }
  },
  "required": [
    "wallet"
  ],
  "additionalProperties": false
}
🟢build_order(wallet, token, side, kind, size, ...)

Read-only. Builds the EIP-712 typed data for an order that the USER signs (eth_signTypedData_v4), then pass it with the signature to submit_order. Kinds: buy limit (fills when the average fill price is at or below trigger_price), buy stop (one-touch: when spot rises to it, at market), sell limit / take_profit (fill price at or above it), sell stop (one-touch stop loss: spot falls to it, at market), trailing_stop (trail_pct or trail_price: a sell fires when spot falls that far from its high since activation, a buy when it rises that far from its low; trigger_price is an optional activation price, which on a sell above the market makes a trailing take-profit). A buy can carry a bracket: take_profit_*, stop_loss_* and trailing_stop_pct children that go live when the buy fills, sell exactly what it bought, and cancel each other when one fills (OCO). Price is tUSD per token; give a price or a percent from the current spot. Signing does not move money by itself; the keeper executes it through the order key session. Also checks the session, caps (if the user set any), the trading balance (buys) or the position on the trading account (sells) and says what is missing. A fill larger than the price guard allows in one trade stays open and retries each block. Orders run through the keeper order key: the user grants it a session once (prepare_order_session; no caps and 7 days by default, renewed by signing again), signs each order (build_order), and posts it (submit_order). The order key is a session key like any other: buy orders spend the trading balance and fill into the position on the trading account, sell orders sell from that position (never the wallet), and every fill must pass the price guard, so an order too large for the guard waits and retries. The order clientId stops a second fill. Revoke the session (prepare_revoke_session with the order key) to stop every order at once.

입력 스키마

{
  "type": "object",
  "properties": {
    "wallet": {
      "type": "string",
      "description": "The user who signs the order."
    },
    "token": {
      "type": "string",
      "description": "Launch token address (symbols are not unique; a symbol only works if exactly one recent launch uses it)."
    },
    "side": {
      "type": "string",
      "enum": [
        "buy",
        "sell"
      ]
    },
    "kind": {
      "type": "string",
      "enum": [
        "limit",
        "take_profit",
        "stop",
        "trailing_stop"
      ]
    },
    "size": {
      "type": "string",
      "description": "Buy: tUSD to spend. Sell: tokens to sell. Decimal string."
    },
    "trigger_price": {
      "type": "string",
      "description": "tUSD per token, decimal string. For trailing_stop: optional activation price."
    },
    "trigger_pct": {
      "type": "number",
      "minimum": -99,
      "maximum": 1000,
      "description": "Alternative to trigger_price: percent from the current spot price."
    },
    "trail_pct": {
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 50,
      "description": "trailing_stop: trail distance in percent of the high (sell) or low (buy)."
    },
    "trail_price": {
      "type": "string",
      "description": "trailing_stop: trail distance as an absolute tUSD price (instead of trail_pct)."
    },
    "take_profit_price": {
      "type": "string",
      "description": "Bracket (buy only): take-profit sell child at this fill price."
    },
    "take_profit_pct": {
      "type": "number",
      "exclusiveMinimum": -100,
      "maximum": 1000,
      "description": "Bracket: take-profit as percent from the current spot."
    },
    "stop_loss_price": {
      "type": "string",
      "description": "Bracket (buy only): stop-loss sell child when spot falls to this price."
    },
    "stop_loss_pct": {
      "type": "number",
      "exclusiveMinimum": -100,
      "maximum": 1000,
      "description": "Bracket: stop-loss as percent from the current spot (e.g. -20)."
    },
    "trailing_stop_pct": {
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 50,
      "description": "Bracket (buy only): trailing stop sell child, trail in percent."
    },
    "group": {
      "type": "string",
      "description": "Optional OCO group name: orders of this user with the same group cancel each other when one fills (brackets set one automatically)."
    },
    "slippage_bps": {
      "type": "integer",
      "minimum": 0,
      "maximum": 5000,
      "default": 300,
      "description": "Max slippage in basis points (300 = 3%). Sets the on-chain minimum out."
    },
    "hours": {
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 8760,
      "default": 24,
      "description": "Order expiry from now, in hours."
    },
    "client_id": {
      "type": "string",
      "description": "Optional order id. The contract rejects a reused id for the same user, so retries cannot double-fill. Hashed with keccak256 unless it is already 32 bytes hex. Random if omitted."
    }
  },
  "required": [
    "wallet",
    "token",
    "side",
    "kind",
    "size"
  ],
  "additionalProperties": false
}
🟡submit_order(order, signature, children)

Posts a signed order (from build_order) to the keeper's order book, with its bracket children if any. The keeper executes it when the trigger is met (within session caps if the user set any). Returns the order id, status, children and warnings (missing session, cap, balance or position). Does not spend by itself; the fill spends from the trading balance. Needs the order API (localhost on the keeper host on testnet).

입력 스키마

{
  "type": "object",
  "properties": {
    "order": {
      "type": "object",
      "description": "The message from build_order.typedData.message, unchanged."
    },
    "signature": {
      "type": "string",
      "description": "The user signature of build_order.typedData."
    },
    "children": {
      "type": "array",
      "maxItems": 4,
      "items": {
        "type": "object",
        "properties": {
          "order": {
            "type": "object"
          },
          "signature": {
            "type": "string"
          }
        },
        "required": [
          "order",
          "signature"
        ]
      },
      "description": "Bracket children from build_order.children: each child message with its user signature."
    }
  },
  "required": [
    "order",
    "signature"
  ],
  "additionalProperties": false
}
🟢list_orders(wallet, status)

Read-only. A wallet's limit, take-profit and stop orders from the keeper order book, newest first: status (waiting for a bracket parent, open, executing, filled, cancelled, expired, rejected), trigger, fill transaction and price, or the reason it has not filled. Also returns the typed data to sign for cancelling one (DELETE /orders/:id with the Cancel signature). Needs the order API (localhost on the keeper host on testnet).

입력 스키마

{
  "type": "object",
  "properties": {
    "wallet": {
      "type": "string",
      "description": "The signing wallet (EVM address). Also receives the output."
    },
    "status": {
      "type": "string",
      "enum": [
        "waiting",
        "open",
        "executing",
        "filled",
        "cancelled",
        "expired",
        "rejected"
      ]
    }
  },
  "required": [
    "wallet"
  ],
  "additionalProperties": false
}

커뮤니티

이 서버 평가하기

증거

최근 관측

검증됨버전이 기록되지 않음도구 25개