mancer-mcp
v0.2.4Mancer's MCP server: an AI agent reads Mancer and builds swaps, sends, orders and Books acts as unsigned transactions its own wallet signs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
sign_in Begin signing in with your wallet
Begin a sign-in to Mancer with your own wallet. It answers Mancer's sign-in message for that wallet: sign it exactly as given with personal_sign (EIP-191) from the wallet, then call complete_sign_in with the signature. A sign-in reaches the account's own tools and makes the wallet every build's default.
| Parameter | Type | Description |
|---|---|---|
wallet * | string | The wallet that signs in: an address, 0x and 40 hex digits. |
complete_sign_in Finish signing in
Finish the sign-in sign_in began, with your wallet's personal_sign signature of its message. This server keeps the session for this connection and never shows it. Until it ends (seven days at most), the account's tools act for that wallet and builds default to it.
| Parameter | Type | Description |
|---|---|---|
signature * | string | The wallet's personal_sign signature of the message sign_in answered. |
sign_out Sign out
Forget this connection's sign-in. Builds then name their wallet (or take a wallet key's, where the connection sends one), and the account's tools wait for a new sign-in. It ends nothing on Mancer's side: the session is never sent again.
get_quote Quote a swap
What a swap of this size delivers now: the output, its dollar values, the route's tokens and venues, the price impact, the fee, the slippage Mancer recommends, and the floor build_swap with trustQuote builds at. No transaction is built: build_swap builds one. With no sign-in and no API key the answer is a price estimate with no route.
| Parameter | Type | Description |
|---|---|---|
amount * | string | The amount spent: a decimal number in the token's own units, such as "0.25". |
tokenIn * | string | The token spent: the token's address, or ETH for native ether. A symbol alone is never taken. |
tokenOut * | string | The token bought: the token's address, or ETH for native ether. A symbol alone is never taken. |
build_swap Build a swap
Build a swap for your wallet to sign: the exact approval where its allowance falls short, then the swap through MancerRouter, each simulated from the wallet. Name its floor: minOut, from a price of your own, or trustQuote: true, Mancer's quote less slippageBps (for WETH against USDG held within 300 bps of the Uniswap pool, for any other pair Mancer's word alone). The build is held to the SDK's check (the pinned router and allowance target, the exact approval, every leg a venue of Mancer's routing, the floor) or refused build-mismatch. Needs no key. Mancer never signs.
| Parameter | Type | Description |
|---|---|---|
amount * | string | The amount spent: a decimal number in the token's own units, such as "0.25". |
tokenIn * | string | The token spent: the token's address, or ETH for native ether. A symbol alone is never taken. |
tokenOut * | string | The token bought: the token's address, or ETH for native ether. A symbol alone is never taken. |
maxFeeBps | integer | The most Mancer's fee may be: the published rate for the pair by default (a token in its first day pays 50: name 50 to accept it), in basis points (0 to 100). |
minOut | string | The least the swap may deliver, a decimal number in tokenOut's own units, such as "30": set it from a price of your own. Mancer builds no route under it, and the swap's floor is at least it. Name this… |
recipient | string | Who receives the output: an address; the wallet by default. |
slippageBps | integer | The most the output may fall under the quote: the floor the swap carries is the quote less this, and with minOut the higher of the two. 50 by default; get_quote names Mancer's recommendation, in basis… |
trustQuote | boolean | Take the floor from Mancer's quote: the quote less slippageBps. For WETH against USDG it is refused more than 300 bps under the Uniswap pool's answer; for any other pair nothing of yours bounds it. Na… |
wallet | string | The wallet that signs, pays and sends: an address. The signed-in wallet, or the wallet key's, by default. |
build_transfer Build a send
Build a send of ether, a token or an NFT from your wallet, simulated from the wallet at the head. The recipient is checked by mancer.xyz's own rules: an address, or @username for the wallet that holds it. The step must be the kit's own transfer of what you asked to whom you named, byte for byte, or the build is refused build-mismatch. Needs no key.
| Parameter | Type | Description |
|---|---|---|
to * | string | The recipient: an address, or @username. |
amount | string | How much of the token, a decimal number in its own units. For an ERC-1155 piece, how many (1 by default). |
collection | string | An NFT's collection: its contract's address. |
token | string | What is sent: a token's address, or ETH. Leave it out to send an NFT. |
tokenId | string | An NFT's id, a whole number. |
wallet | string | The wallet that sends: an address. The signed-in wallet, or the wallet key's, by default. |
search_tokens Search tokens
Search Robinhood Chain's tokens by symbol, name or address. Each result names its address, decimals, tier, price, liquidity and volume. Many tokens share a symbol: choose by address, liquidity and tier.
| Parameter | Type | Description |
|---|---|---|
query * | string | A symbol, a name or an address. |
limit | integer | How many, 1 to 50; 20 by default. |
get_token Get a token
One token's page: its price, 24-hour change, liquidity, depth, volume, market cap, holders, supply, trust marks and deepest pools.
| Parameter | Type | Description |
|---|---|---|
token * | string | The token: the token's address, or ETH for native ether. A symbol alone is never taken. |
get_prices Get prices
Prices in US dollars of up to 50 tokens, keyed by address.
| Parameter | Type | Description |
|---|---|---|
tokens * | array | Token addresses, or ETH for native ether. |
discover_tokens Browse tokens
Rank the chain's tokens: by volume for what is trending, by 24-hour change for movers, by age for new launches, or by liquidity. Filter to verified tokens, issued stocks or Book tokens.
| Parameter | Type | Description |
|---|---|---|
direction | string | desc by default. |
filter | string | all by default. |
limit | integer | How many, 1 to 100; 25 by default. |
minDepthUsd | number | Only tokens with at least this many dollars of executable depth. |
offset | integer | How many to pass over, for the next page. |
query | string | A symbol or name to narrow the list. |
sort | string | The order; tier by default. volume is the day's trading, change the day's move, new the newest first. |
get_token_trades Get a token's trades
A token's trades, newest first, each with its maker, side, amounts and dollar value. Pass a page's nextBefore as before for the next page.
| Parameter | Type | Description |
|---|---|---|
token * | string | The token: the token's address, or ETH for native ether. A symbol alone is never taken. |
before | string | A page's nextBefore. |
limit | integer | How many, 1 to 100; 30 by default. |
minUsd | number | Only trades of at least this many dollars. |
side | string | Only the trades that bought the token, or sold it. |
get_token_holders Get a token's holders
A token's largest holders, with each one's balance and share of the supply.
| Parameter | Type | Description |
|---|---|---|
token * | string | The token: the token's address, or ETH for native ether. A symbol alone is never taken. |
limit | integer | How many, 1 to 500; 50 by default. |
get_top_traders Get a token's top traders
A token's top traders over the last day or week, ranked by profit, by dollars bought, or by dollars sold.
| Parameter | Type | Description |
|---|---|---|
token * | string | The token: the token's address, or ETH for native ether. A symbol alone is never taken. |
sort | string | pnl by default. |
window | string | 1d by default. |
get_token_chart Get a token's chart
A token's price candles in US dollars: open, high, low, close and volume a bucket, oldest first. Pass an earlier time as before to page back.
| Parameter | Type | Description |
|---|---|---|
token * | string | The token: the token's address, or ETH for native ether. A symbol alone is never taken. |
before | integer | Unix seconds: only candles before this time. |
interval | string | The candle size; 1h by default. |
limit | integer | How many, 1 to 1000; 100 by default. |
get_recent_swaps Get the chain's latest swaps
The latest swaps across Robinhood Chain, newest first.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many, 1 to 200; 50 by default. |
get_balances Get a wallet's balances
A wallet's ether and token balances, each with its dollar value, largest first.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many, 1 to 500; 100 by default. |
wallet | string | The wallet: an address. The signed-in wallet, or the wallet key's, by default. |
get_portfolio Get a wallet's profit and loss
A wallet's profit and loss by token: its cost basis, realized and unrealized gains, and what it holds now.
| Parameter | Type | Description |
|---|---|---|
wallet | string | The wallet: an address. The signed-in wallet, or the wallet key's, by default. |
get_portfolio_history Get a wallet's value over time
A wallet's value in US dollars, one point a day.
| Parameter | Type | Description |
|---|---|---|
days | integer | How many days back, 1 to 365; 30 by default. |
wallet | string | The wallet: an address. The signed-in wallet, or the wallet key's, by default. |
get_positions Get a wallet's liquidity positions
A wallet's liquidity positions in pools, with what each holds.
| Parameter | Type | Description |
|---|---|---|
wallet | string | The wallet: an address. The signed-in wallet, or the wallet key's, by default. |
get_wallet_trades Get a wallet's trades
A wallet's trades, newest first: what left the wallet and what reached it in each. Pass a page's nextBefore as before for the next page.
| Parameter | Type | Description |
|---|---|---|
before | string | A page's nextBefore. |
limit | integer | How many, 1 to 100; 30 by default. |
token | string | Only the trades in which this token was either side: the token's address. |
wallet | string | The wallet: an address. The signed-in wallet, or the wallet key's, by default. |
get_nfts Get a wallet's NFTs
A wallet's NFTs by collection, each piece with its name, picture, rarity rank and best offer, and the collections' value at offers.
| Parameter | Type | Description |
|---|---|---|
collection | string | One collection's pieces alone: the collection's address. |
limit | integer | How many, 1 to 100; 50 by default. |
offset | integer | A page's nextOffset. |
query | string | A search of the collections' names, or with a collection, of its pieces. |
sort | string | count by default; rarity sorts one collection's pieces. |
verifiedOnly | boolean | Only collections OpenSea verified. |
wallet | string | The wallet: an address. The signed-in wallet, or the wallet key's, by default. |
get_nft Get an NFT
One NFT: its traits, rarity rank, owners, market and history.
| Parameter | Type | Description |
|---|---|---|
collection * | string | The collection's contract: an address, 0x and 40 hex digits. |
tokenId * | string | The piece's id, a whole number. |
get_transaction Get a transaction
What a transaction did: its sender and owner, every token that moved and between whom, its swaps, and a sentence that sums it up.
| Parameter | Type | Description |
|---|---|---|
hash * | string | The transaction's hash. |
get_transaction_receipt Get a transaction's receipt
Whether a sent transaction landed: pending, success or reverted, with its block and the gas it used. Read it after sending each transaction a build answered, before sending the next.
| Parameter | Type | Description |
|---|---|---|
hash * | string | The transaction's hash. |
send_signed_transaction Send a signed transaction
Broadcast a transaction your own wallet signed, through Mancer's chain endpoint, as it was signed. Sign each transaction a build answered, in order, and send each only after the one before it landed. Only a transaction for Robinhood Chain (4663) is sent. Your wallet may send it itself instead.
| Parameter | Type | Description |
|---|---|---|
signedTransaction * | string | The signed transaction, serialized, as 0x and hex. |
get_contracts Get the contracts to check against
The contracts every build is held to, as the kit this server was built with pins them, each with its address and the hash of its code: MancerRouter, the one spender a swap's input is approved to, MancerOrders and its typed-data domain, WETH, USDG and the launch stack. Mancer's API must name the same ones, or the tool refuses build-mismatch, as every build would. Check a transaction's to and an approval's spender against these before signing, and read each code hash on a node of your own.
get_limits Get rate limits
Who Mancer takes this caller for (no credential, a key and its class, or the signed-in wallet), and every rate limit with what is left of it.
prepare_limit_order Prepare a limit order
A limit order to sign: one fill of the amount, at minOut or better. It answers the order's EIP-712 typed data for the pinned orders contract and the wrap and bounded approval it needs first, or refuses build-mismatch. Mancer's executor fills it once the market pays minOut. Needs no key.
| Parameter | Type | Description |
|---|---|---|
amount * | string | The amount sold: a decimal number in the token's own units, such as "0.25". |
minOut * | string | The least the fill delivers, in tokenOut: a decimal number in the token's own units, such as "0.25". |
tokenIn * | string | The token sold: the token's address, or ETH for native ether. A symbol alone is never taken. |
tokenOut * | string | The token bought: the token's address, or ETH for native ether. A symbol alone is never taken. |
expiresInSeconds | integer | Seconds from now until the order expires, 60 to a year. Leave it out for an order that never expires. |
wallet | string | The maker: the wallet that signs and pays: an address. The signed-in wallet, or the wallet key's, by default. |
prepare_stop_order Prepare a stop order
A stop order to sign: once the market's output for the amount falls to trigger, it fills at minOut or better. minOut sits under trigger. It answers the order's typed data and the setup it needs first, or refuses build-mismatch. Needs no key.
| Parameter | Type | Description |
|---|---|---|
amount * | string | The amount sold: a decimal number in the token's own units, such as "0.25". |
minOut * | string | The least the fill delivers, in tokenOut, under trigger: a decimal number in the token's own units, such as "0.25". |
tokenIn * | string | The token sold: the token's address, or ETH for native ether. A symbol alone is never taken. |
tokenOut * | string | The token bought: the token's address, or ETH for native ether. A symbol alone is never taken. |
trigger * | string | The output, in tokenOut, the market falls to before the stop fills: a decimal number in the token's own units, such as "0.25". |
expiresInSeconds | integer | Seconds from now until the order expires, 60 to a year. Leave it out for an order that never expires. |
wallet | string | The maker: an address. The signed-in wallet, or the wallet key's, by default. |
prepare_oco_order Prepare a take-profit and stop pair
One-cancels-the-other: a take-profit limit and a stop on the same amount, signed under one group. The orders contract lets only one of the two fill. It answers both orders' typed data and the setup they need, or refuses build-mismatch. Sign and submit both. Needs no key.
| Parameter | Type | Description |
|---|---|---|
amount * | string | The amount sold: a decimal number in the token's own units, such as "0.25". |
stopMinOut * | string | The stop's least output, in tokenOut, under its trigger: a decimal number in the token's own units, such as "0.25". |
stopTrigger * | string | The stop's trigger, in tokenOut: a decimal number in the token's own units, such as "0.25". |
takeProfitMinOut * | string | The take-profit's least output, in tokenOut: a decimal number in the token's own units, such as "0.25". |
tokenIn * | string | The token sold: the token's address, or ETH for native ether. A symbol alone is never taken. |
tokenOut * | string | The token bought: the token's address, or ETH for native ether. A symbol alone is never taken. |
expiresInSeconds | integer | Seconds from now until the order expires, 60 to a year. Leave it out for an order that never expires. |
wallet | string | The maker: an address. The signed-in wallet, or the wallet key's, by default. |
prepare_recurring_order Prepare a recurring order
A recurring order to sign: fills of amountPerFill, everySeconds apart, each within the price range where one is named. It answers the typed data and the setup it needs, which approves every fill at once, or refuses build-mismatch. Needs no key.
| Parameter | Type | Description |
|---|---|---|
amountPerFill * | string | The amount each fill sells: a decimal number in the token's own units, such as "0.25". |
everySeconds * | integer | Seconds between fills, 60 to 90 days. |
fills * | integer | How many fills, 2 to 10,000. |
tokenIn * | string | The token sold: the token's address, or ETH for native ether. A symbol alone is never taken. |
tokenOut * | string | The token bought: the token's address, or ETH for native ether. A symbol alone is never taken. |
expiresInSeconds | integer | Seconds from now until the order expires, 60 to a year. Leave it out for an order that never expires. |
maxOutPerFill | string | The most each fill may deliver, in tokenOut: a fill waits while the market pays more. |
minOutPerFill | string | The least each fill delivers, in tokenOut; leave it out to fill at the market. |
startAt | integer | Unix seconds of the earliest first fill; at once by default. |
wallet | string | The maker: an address. The signed-in wallet, or the wallet key's, by default. |
submit_order Submit a signed order
Rest a signed order on Mancer's book. Pass the order as a prepare answered it, the maker's EIP-712 signature over its typedData, and the contract. The API checks the signature against the maker on the book before it takes the order. Needs no key.
| Parameter | Type | Description |
|---|---|---|
contract * | string | The orders contract, as the prepare answered it: an address. |
order * | object | The order, as the prepare answered it. |
signature * | string | The maker's EIP-712 signature. |
list_orders List orders
The signed-in wallet's orders, newest first, with each one's terms, fills and status. With an API key, the orders submitted through it.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many, 1 to 500; 50 by default. |
status | string | |
wallet | string | Only this maker's orders: an address. |
get_order Get an order
One order by its hash: its terms, its fills, its status and what holds it. Answered to its maker's signed-in wallet, or the key that submitted it.
| Parameter | Type | Description |
|---|---|---|
hash * | string | The order's hash. |
get_fills List fills
An order's fills, or a maker's, newest first: what each fill spent and delivered and its fee. Fills are public.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many, 1 to 500; 50 by default. |
orderHash | string | An order's hash. |
wallet | string | The maker, where no order is named: an address. The signed-in wallet, or the wallet key's, by default. |
prepare_cancel_orders Prepare a cancel by signature
The message a maker signs to cancel up to 50 of its open orders on one book, with no transaction and no gas. Sign it with personal_sign (EIP-191) from the maker, then call submit_cancel_orders within 10 minutes. Mancer's executor obeys it; build_cancel_order cancels on chain. An API that names another orders contract than the kit's is refused build-mismatch.
| Parameter | Type | Description |
|---|---|---|
hashes * | array | The orders' hashes, one maker's on one book. |
contract | string | The orders contract the orders rest on, as their prepare answered it; the current one by default. |
wallet | string | The maker: an address. The signed-in wallet, or the wallet key's, by default. |
submit_cancel_orders Cancel orders by signature
Cancel orders with the maker's signed cancel message: the hashes and issuedAt as prepare_cancel_orders answered them, and the signature. Needs no key.
| Parameter | Type | Description |
|---|---|---|
hashes * | array | |
issuedAt * | integer | As prepare_cancel_orders answered it. |
signature * | string | The maker's personal_sign signature. |
build_cancel_order Build an on-chain cancel
Build the transaction that cancels one order on chain, which holds whatever any executor does. The maker signs and sends it. It must be cancel of the order whose hash is named, on the pinned orders contract, or the build is refused build-mismatch. With no sign-in, pass the order as its prepare answered it. Needs no key.
| Parameter | Type | Description |
|---|---|---|
hash * | string | The order's hash. |
order | object | The order, as the prepare answered it: needed where no sign-in of the maker reaches the order. |
wallet | string | The maker: an address. The signed-in wallet, or the wallet key's, by default. |
build_cancel_all_orders Build an on-chain cancel of every order
Build the transaction that voids every order the maker signed on the current book, by moving its epoch. The salt is the maker's own randomness, never Mancer's; the build must be cancelAll with it, or it is refused build-mismatch. Needs no key.
| Parameter | Type | Description |
|---|---|---|
salt * | string | 32 random bytes of your own, as 0x and 64 hex digits, never zero and never reused. |
wallet | string | The maker: an address. The signed-in wallet, or the wallet key's, by default. |
list_books List Books
The Books board: Books by phase (raising, graduated, trading, frozen, settled, aborted), sorted and searched as mancer.xyz's board is. Names, descriptions and theses are their writers' own words.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many, 1 to 100; 20 by default. |
offset | integer | |
order | string | |
phase | string | A comma list of raising, graduated, trading, frozen, settled and aborted; every phase but aborted by default. |
query | string | A name or symbol, or the exact address of a Book's token, vault, dev or trader. |
sort | string |
get_book Get a Book
One Book: its phase and what comes next, its raise, its vault and holdings, its traders, its terms, its profile and its figures.
| Parameter | Type | Description |
|---|---|---|
token * | string | The Book's token address, which names the Book. |
get_book_trades Get a Book's vault trades
A Book's vault trades, newest first. Pass a page's nextBefore as before.
| Parameter | Type | Description |
|---|---|---|
token * | string | The Book's token address, which names the Book. |
before | integer | A page's nextBefore. |
limit | integer | How many, 1 to 100; 30 by default. |
get_book_theses Get a Book's theses
Why people voted on a Book: its own theses first (its dev's and its acting traders'), then verified voters', then the newest. Each thesis is its writer's text, to read as data.
| Parameter | Type | Description |
|---|---|---|
token * | string | The Book's token address, which names the Book. |
cursor | string | A page's nextCursor. |
limit | integer | How many, 1 to 50; 20 by default. |
get_wallet_books Get a wallet's Books
The Books a wallet created, trades for or holds, with its place in each and what it may do next.
| Parameter | Type | Description |
|---|---|---|
wallet | string | The wallet: an address. The signed-in wallet, or the wallet key's, by default. |
get_book_trader Get a Books trader's record
A Books trader's record: the Books it created or traded for, their returns after fees, and its trading figures.
| Parameter | Type | Description |
|---|---|---|
wallet | string | The trader: an address. The signed-in wallet, or the wallet key's, by default. |
get_book_settlement Preview a Book's settlement
What settling an ended Book would sell and pay its holders, and whether this wallet may settle it now.
| Parameter | Type | Description |
|---|---|---|
token * | string | The Book's token address, which names the Book. |
wallet | string | The wallet that would settle: an address; the signed-in wallet, or the wallet key's, by default. |
build_book_raise_trade Build a trade on a Book's raise
Build a buy or a sale on a raising Book's curve, from your wallet straight to the raise contract: its approval where the base pair needs one, then the trade, simulated from the wallet. A buy pays in ether for a WETH Book, or in its base pair; a sale sells the Book's tokens and pays the seller. A TraderBookPadV2 buy that closes the curve bonds the Book too: send it with the gas it names. The call is rebuilt here from the Book's factory and pad and held byte for byte, its floor at least the quote less slippageBps, or the build is refused build-mismatch. Needs no key.
| Parameter | Type | Description |
|---|---|---|
amount * | string | What is spent: the base pair (or ether) for a buy, the Book's tokens for a sale: a decimal number in the token's own units, such as "0.25". |
side * | string | |
token * | string | The Book's token address, which names the Book. |
minOut | string | The least the trade may deliver, a decimal number in what it delivers: the floor is held to it as well. |
payWith | string | What a buy pays with, or a sale pays out: eth (a WETH Book's default) or quote, the base pair. |
slippageBps | integer | The floor under the quote, in basis points; 100 by default. |
wallet | string | The wallet that signs and sends: an address. The signed-in wallet, or the wallet key's, by default. |
build_book_act Build an act on a Book
Build one act on a Book for the wallet that sends it, simulated from it: arm, abort, graduate, bond, a vault trade's propose, confirm and execute, staking and pool fees, sweeps, redemptions and the traders' cut (in the Book's settlement asset), padClaim on a TraderBookPadV2 pad, and setSettleAsset where a Book may settle in its base pair. The API checks the phase and the wallet's role; the call is rebuilt here byte for byte, or refused build-mismatch. An act that signs a trade's floor names minOut or trustQuote; a confirm or execute names its pending trade (expectPending). Needs no key.
| Parameter | Type | Description |
|---|---|---|
action * | string | The act. |
token * | string | The Book's token address, which names the Book. |
amount | string | stake, unstake and redeem: the Book's tokens, a decimal number, or all. |
expectPending | object | confirmTrade and executeTrade: the pending trade you mean, as the signed quote that proposed it names it (get_book_vault_quote's salt, tokenIn, tokenOut, amountIn and minOut). The act is refused where… |
inQuote | boolean | setSettleAsset: true settles the Book in its own base pair, false in WETH. Built until five minutes before the Book ends. |
minOut | string | An act that signs a trade's floor (proposeTrade, confirmTrade, executeTrade, a signed sweep): the least it may deliver, a decimal number in the trade's output token. Name this or trustQuote. |
orderHash | string | cancelOrder: the granted order's hash. |
quote | object | proposeTrade, and sweepLeftover of a token other than the Book's settlement asset and its own: the signed quote get_book_vault_quote answered, unused. |
spender | string | cancelOrder and revokeAllowance: the order book the grant names. |
sweepToken | string | sweepLeftover of the Book's settlement asset (WETH unless the Book settles in its base pair) or of its own token, and revokeAllowance: the token's address. |
tokens | array | syncTracked: the tokens to sync. |
trustQuote | boolean | An act that signs a trade's floor: hold it to the floor Mancer's quote names (for WETH against USDG, within 300 bps of the Uniswap pool's answer). Name this or minOut. |
unwrap | boolean | padClaim on a WETH Book: false takes the claim as WETH; it is paid as ether otherwise. |
wallet | string | The wallet that signs and sends: an address. The signed-in wallet, or the wallet key's, by default. |
get_book_vault_quote Get a signed quote for a Book's vault
Mancer's signed quote for a Book's vault: a trade while the Book trades (for one of its traders), or a sweep once it settled. Pass it to build_book_act as proposeTrade's quote. preview runs every check and signs nothing. Its route is held to the vault's own rules leg by leg, and a trade's floor to minOut or trustQuote, or the quote is refused build-mismatch. Needs the signed-in trader's wallet, or an API key Mancer enabled for Books signing.
| Parameter | Type | Description |
|---|---|---|
purpose * | string | |
token * | string | The Book's token address, which names the Book. |
tokenIn * | string | What the vault sells: an address, 0x and 40 hex digits. |
amountIn | string | How much the vault sells, a decimal number; a sweep's whole holding by default. |
minOut | string | An act that signs a trade's floor (proposeTrade, confirmTrade, executeTrade, a signed sweep): the least it may deliver, a decimal number in the trade's output token. Name this or trustQuote. |
preview | boolean | Every check and the simulation, and no signature. |
slippageBps | number | The floor's band under the route: 10 to 30 with one trader, 30 to 100 with several, 50 to 150 for a sweep. |
tokenOut | string | What a trade buys: an address, which a trade names. A sweep sells for the Book's settlement asset (WETH unless the Book settles in its base pair). |
trustQuote | boolean | An act that signs a trade's floor: hold it to the floor Mancer's quote names (for WETH against USDG, within 300 bps of the Uniswap pool's answer). Name this or minOut. |
wallet | string | The trader, or the wallet that sweeps: an address. The signed-in wallet, or the wallet key's, by default. |
build_book_settlement Build a Book's settlement
Build the settlement of an ended Book: Mancer's signed sales of its vault into the Book's settlement asset (WETH unless the Book settles in its base pair), then the liquidation from your wallet, simulated. Each sale's route is held to the vault's own rules, each sale pays the asset the Book's settler names on the chain (asked again where it moved), and the liquidation is rebuilt here byte for byte, or the build is refused build-mismatch. Its traders and dev may settle from the unlock, and any wallet two days on. Needs the signed-in wallet, or an API key Mancer enabled for Books signing.
| Parameter | Type | Description |
|---|---|---|
token * | string | The Book's token address, which names the Book. |
slippageBps | number | The sales' band, 50 to 150; 100 by default. |
wallet | string | The wallet that settles: an address. The signed-in wallet, or the wallet key's, by default. |
create_book_draft Save a Book before its open
Save a Book's record before it opens: its name, ticker, description, links and targets, on the factory new Books open on, as mancer.xyz saves one. Then build_book_open answers the open's transaction. Needs the dev's signed-in wallet.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
symbol * | string | The ticker: 2 to 11 letters and digits. |
targets * | array | The tokens the vault may buy: verified tokens or issued stocks. WETH keeps a place, since a Book settles in WETH unless a trader or its dev picks its base pair. |
description | string | |
factory | string | The Books factory new Books open on: this server's kit names it, and it is the default. A factory that opens no new Books is refused. |
links | object | website, x and telegram links. |
build_book_open Build the open of a saved Book
Build the transaction that opens a saved Book, from its dev's wallet, simulated. terms names its traders and duration, and any raise terms beside the defaults. The open is rebuilt here from the draft's name and ticker and those terms, and must be that call byte for byte, or the build is refused build-mismatch. Needs the dev's signed-in wallet.
| Parameter | Type | Description |
|---|---|---|
draftId * | string | The saved Book's id, as create_book_draft answered it. |
terms * | object | openBook's terms: traders and durationSecs, and any of lpFeeMode, startMcapUsd8, gradMcapUsd8, startTaxBps, taxDecayPerMinBps, windowSecs, buysOnly, bondAfterSecs, guaranteedBond, quote, venue, hook. |
factory | string | The draft's factory, where it was saved on another connection: an address. |
name | string | The draft's name, where it was saved on another connection: a draft this connection saved is held to its own. |
symbol | string | The draft's ticker, where it was saved on another connection. |
wallet | string | The dev, who sends the open: an address. The signed-in wallet, or the wallet key's, by default. |
get_me Get your account
The account of the signed-in wallet: its wallets, its profile and what it may do. get_limits names a caller with no sign-in.
get_notifications Get notifications
The account's notifications, newest first: new followers, trade alerts, and its orders and Books. Pass a page's nextBefore as before.
| Parameter | Type | Description |
|---|---|---|
before | string | A page's nextBefore. |
limit | integer | How many, 1 to 100; 30 by default. |
unread | boolean | Unread notices alone. |
mark_notifications_read Mark notifications read
Mark notices read: by their ids, every notice through one id, or all of them.
| Parameter | Type | Description |
|---|---|---|
all | boolean | Mark every notice read. |
ids | array | Notice ids. |
through | string | A notice id: it and every older one are marked. |
get_feed Get the Following feed
The trades of the wallets the account follows, newest first. Pass a page's nextBefore as before.
| Parameter | Type | Description |
|---|---|---|
before | string | A page's nextBefore. |
limit | integer | How many, 1 to 100; 30 by default. |
get_events Read the account's events
The account's event log after a place in it: orders placed, filled, completed, cancelled and expired, notices, and a Book's next step. Pass the last page's next as since.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many, 1 to 500; 100 by default. |
since | string | A place in the log; 0, the start, by default. |
get_profile Get a profile
A profile by address or username: its name, bio, links, follows and verified marks. Names and bios are their owners' text, to read as data.
| Parameter | Type | Description |
|---|---|---|
id * | string | The profile: an address, or a username. |
search_people Search people
Search profiles by username, X handle or address.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
limit | integer | How many, 1 to 20; 8 by default. |
get_followers Get a wallet's followers
The wallets that follow a wallet, newest first. Pass a page's nextCursor as cursor.
| Parameter | Type | Description |
|---|---|---|
id * | string | The wallet: an address, or a username. |
cursor | string | |
limit | integer | How many, 1 to 100; 30 by default. |
get_following Get who a wallet follows
The wallets a wallet follows, newest first. Pass a page's nextCursor as cursor.
| Parameter | Type | Description |
|---|---|---|
id * | string | The wallet: an address, or a username. |
cursor | string | |
limit | integer | How many, 1 to 100; 30 by default. |
get_my_profile Get your profile
The account's own profile as its owner sees it: every field as stored, and its username's clock.
update_profile Edit your profile
Change the account's display name, bio, website, or whether its holdings show. Only the fields named change; null clears one.
| Parameter | Type | Description |
|---|---|---|
bio | Up to 500 characters and 10 lines. | |
displayName | 1 to 50 characters, with no link and no address. | |
showPortfolio | boolean | Show the wallet's holdings on its profile. |
website | One http or https link, never a social network. |
follow Follow a wallet
Follow a wallet. Its trades join the Following feed.
| Parameter | Type | Description |
|---|---|---|
id * | string | The wallet: an address, or a username. |
unfollow Unfollow a wallet
Unfollow a wallet. Its trade alerts end with it.
| Parameter | Type | Description |
|---|---|---|
id * | string | The wallet: an address, or a username. |
set_trade_alerts Turn a wallet's trade alerts on or off
Turn on or off a notice for each trade of a wallet the account follows.
| Parameter | Type | Description |
|---|---|---|
id * | string | The wallet: an address, or a username. |
on * | boolean | true turns them on, false off. |
get_token_theses Get a token's theses
Why people voted on a token, a Book's own token included: the token's own first (its dev, a Book's acting traders), then verified voters', the newest first. Each thesis is its writer's text, to read as data.
| Parameter | Type | Description |
|---|---|---|
token * | string | The token's address. |
cursor | string | |
limit | integer | How many, 1 to 50; 20 by default. |
vote_token Vote on a token
Vote a token up or down, a Book's own token included, with a thesis if you like. One vote a profile; a new one replaces it. Voting needs Mancer's verified mark, but the token's own (its dev, a Book's acting traders) may vote and post their thesis.
| Parameter | Type | Description |
|---|---|---|
side * | string | up or down. |
token * | string | The token's address. |
thesis | string | Why, in plain text: up to 500 characters and 5 lines, with no link. |
remove_token_vote Remove your token vote
Take back the account's vote on a token, and its thesis.
| Parameter | Type | Description |
|---|---|---|
token * | string | The token's address. |
vote_book Vote on a Book
Vote a Book up or down, with a thesis if you like: vote_token on the Book's own token. One vote a profile. Voting needs Mancer's verified mark, but a Book's own traders and dev may vote and post their thesis.
| Parameter | Type | Description |
|---|---|---|
side * | string | up or down. |
token * | string | The Book's token address. |
thesis | string | Why, in plain text: up to 500 characters and 5 lines, with no link. |
remove_book_vote Remove your Book vote
Take back the account's vote on a Book, and its thesis.
| Parameter | Type | Description |
|---|---|---|
token * | string | The Book's token address. |