mancer-mcp

v0.2.4
@blockhash/mancer-mcp Checked 1 day ago Published 21 days ago

Mancer'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.

ParameterTypeDescription
wallet *stringThe 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.

ParameterTypeDescription
signature *stringThe 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.

ParameterTypeDescription
amount *stringThe amount spent: a decimal number in the token's own units, such as "0.25".
tokenIn *stringThe token spent: the token's address, or ETH for native ether. A symbol alone is never taken.
tokenOut *stringThe 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.

ParameterTypeDescription
amount *stringThe amount spent: a decimal number in the token's own units, such as "0.25".
tokenIn *stringThe token spent: the token's address, or ETH for native ether. A symbol alone is never taken.
tokenOut *stringThe token bought: the token's address, or ETH for native ether. A symbol alone is never taken.
maxFeeBpsintegerThe 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).
minOutstringThe 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…
recipientstringWho receives the output: an address; the wallet by default.
slippageBpsintegerThe 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…
trustQuotebooleanTake 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…
walletstringThe 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.

ParameterTypeDescription
to *stringThe recipient: an address, or @username.
amountstringHow much of the token, a decimal number in its own units. For an ERC-1155 piece, how many (1 by default).
collectionstringAn NFT's collection: its contract's address.
tokenstringWhat is sent: a token's address, or ETH. Leave it out to send an NFT.
tokenIdstringAn NFT's id, a whole number.
walletstringThe 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.

ParameterTypeDescription
query *stringA symbol, a name or an address.
limitintegerHow 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.

ParameterTypeDescription
token *stringThe 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.

ParameterTypeDescription
tokens *arrayToken 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.

ParameterTypeDescription
directionstringdesc by default.
filterstringall by default.
limitintegerHow many, 1 to 100; 25 by default.
minDepthUsdnumberOnly tokens with at least this many dollars of executable depth.
offsetintegerHow many to pass over, for the next page.
querystringA symbol or name to narrow the list.
sortstringThe 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.

ParameterTypeDescription
token *stringThe token: the token's address, or ETH for native ether. A symbol alone is never taken.
beforestringA page's nextBefore.
limitintegerHow many, 1 to 100; 30 by default.
minUsdnumberOnly trades of at least this many dollars.
sidestringOnly 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.

ParameterTypeDescription
token *stringThe token: the token's address, or ETH for native ether. A symbol alone is never taken.
limitintegerHow 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.

ParameterTypeDescription
token *stringThe token: the token's address, or ETH for native ether. A symbol alone is never taken.
sortstringpnl by default.
windowstring1d 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.

ParameterTypeDescription
token *stringThe token: the token's address, or ETH for native ether. A symbol alone is never taken.
beforeintegerUnix seconds: only candles before this time.
intervalstringThe candle size; 1h by default.
limitintegerHow many, 1 to 1000; 100 by default.

get_recent_swaps Get the chain's latest swaps

The latest swaps across Robinhood Chain, newest first.

ParameterTypeDescription
limitintegerHow 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.

ParameterTypeDescription
limitintegerHow many, 1 to 500; 100 by default.
walletstringThe 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.

ParameterTypeDescription
walletstringThe 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.

ParameterTypeDescription
daysintegerHow many days back, 1 to 365; 30 by default.
walletstringThe 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.

ParameterTypeDescription
walletstringThe 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.

ParameterTypeDescription
beforestringA page's nextBefore.
limitintegerHow many, 1 to 100; 30 by default.
tokenstringOnly the trades in which this token was either side: the token's address.
walletstringThe 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.

ParameterTypeDescription
collectionstringOne collection's pieces alone: the collection's address.
limitintegerHow many, 1 to 100; 50 by default.
offsetintegerA page's nextOffset.
querystringA search of the collections' names, or with a collection, of its pieces.
sortstringcount by default; rarity sorts one collection's pieces.
verifiedOnlybooleanOnly collections OpenSea verified.
walletstringThe 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.

ParameterTypeDescription
collection *stringThe collection's contract: an address, 0x and 40 hex digits.
tokenId *stringThe 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.

ParameterTypeDescription
hash *stringThe 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.

ParameterTypeDescription
hash *stringThe 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.

ParameterTypeDescription
signedTransaction *stringThe 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.

ParameterTypeDescription
amount *stringThe amount sold: a decimal number in the token's own units, such as "0.25".
minOut *stringThe least the fill delivers, in tokenOut: a decimal number in the token's own units, such as "0.25".
tokenIn *stringThe token sold: the token's address, or ETH for native ether. A symbol alone is never taken.
tokenOut *stringThe token bought: the token's address, or ETH for native ether. A symbol alone is never taken.
expiresInSecondsintegerSeconds from now until the order expires, 60 to a year. Leave it out for an order that never expires.
walletstringThe 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.

ParameterTypeDescription
amount *stringThe amount sold: a decimal number in the token's own units, such as "0.25".
minOut *stringThe least the fill delivers, in tokenOut, under trigger: a decimal number in the token's own units, such as "0.25".
tokenIn *stringThe token sold: the token's address, or ETH for native ether. A symbol alone is never taken.
tokenOut *stringThe token bought: the token's address, or ETH for native ether. A symbol alone is never taken.
trigger *stringThe output, in tokenOut, the market falls to before the stop fills: a decimal number in the token's own units, such as "0.25".
expiresInSecondsintegerSeconds from now until the order expires, 60 to a year. Leave it out for an order that never expires.
walletstringThe 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.

ParameterTypeDescription
amount *stringThe amount sold: a decimal number in the token's own units, such as "0.25".
stopMinOut *stringThe stop's least output, in tokenOut, under its trigger: a decimal number in the token's own units, such as "0.25".
stopTrigger *stringThe stop's trigger, in tokenOut: a decimal number in the token's own units, such as "0.25".
takeProfitMinOut *stringThe take-profit's least output, in tokenOut: a decimal number in the token's own units, such as "0.25".
tokenIn *stringThe token sold: the token's address, or ETH for native ether. A symbol alone is never taken.
tokenOut *stringThe token bought: the token's address, or ETH for native ether. A symbol alone is never taken.
expiresInSecondsintegerSeconds from now until the order expires, 60 to a year. Leave it out for an order that never expires.
walletstringThe 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.

ParameterTypeDescription
amountPerFill *stringThe amount each fill sells: a decimal number in the token's own units, such as "0.25".
everySeconds *integerSeconds between fills, 60 to 90 days.
fills *integerHow many fills, 2 to 10,000.
tokenIn *stringThe token sold: the token's address, or ETH for native ether. A symbol alone is never taken.
tokenOut *stringThe token bought: the token's address, or ETH for native ether. A symbol alone is never taken.
expiresInSecondsintegerSeconds from now until the order expires, 60 to a year. Leave it out for an order that never expires.
maxOutPerFillstringThe most each fill may deliver, in tokenOut: a fill waits while the market pays more.
minOutPerFillstringThe least each fill delivers, in tokenOut; leave it out to fill at the market.
startAtintegerUnix seconds of the earliest first fill; at once by default.
walletstringThe 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.

ParameterTypeDescription
contract *stringThe orders contract, as the prepare answered it: an address.
order *objectThe order, as the prepare answered it.
signature *stringThe 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.

ParameterTypeDescription
limitintegerHow many, 1 to 500; 50 by default.
statusstring
walletstringOnly 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.

ParameterTypeDescription
hash *stringThe 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.

ParameterTypeDescription
limitintegerHow many, 1 to 500; 50 by default.
orderHashstringAn order's hash.
walletstringThe 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.

ParameterTypeDescription
hashes *arrayThe orders' hashes, one maker's on one book.
contractstringThe orders contract the orders rest on, as their prepare answered it; the current one by default.
walletstringThe 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.

ParameterTypeDescription
hashes *array
issuedAt *integerAs prepare_cancel_orders answered it.
signature *stringThe 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.

ParameterTypeDescription
hash *stringThe order's hash.
orderobjectThe order, as the prepare answered it: needed where no sign-in of the maker reaches the order.
walletstringThe 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.

ParameterTypeDescription
salt *string32 random bytes of your own, as 0x and 64 hex digits, never zero and never reused.
walletstringThe 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.

ParameterTypeDescription
limitintegerHow many, 1 to 100; 20 by default.
offsetinteger
orderstring
phasestringA comma list of raising, graduated, trading, frozen, settled and aborted; every phase but aborted by default.
querystringA name or symbol, or the exact address of a Book's token, vault, dev or trader.
sortstring

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.

ParameterTypeDescription
token *stringThe 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.

ParameterTypeDescription
token *stringThe Book's token address, which names the Book.
beforeintegerA page's nextBefore.
limitintegerHow 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.

ParameterTypeDescription
token *stringThe Book's token address, which names the Book.
cursorstringA page's nextCursor.
limitintegerHow 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.

ParameterTypeDescription
walletstringThe 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.

ParameterTypeDescription
walletstringThe 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.

ParameterTypeDescription
token *stringThe Book's token address, which names the Book.
walletstringThe 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.

ParameterTypeDescription
amount *stringWhat 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 *stringThe Book's token address, which names the Book.
minOutstringThe least the trade may deliver, a decimal number in what it delivers: the floor is held to it as well.
payWithstringWhat a buy pays with, or a sale pays out: eth (a WETH Book's default) or quote, the base pair.
slippageBpsintegerThe floor under the quote, in basis points; 100 by default.
walletstringThe 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.

ParameterTypeDescription
action *stringThe act.
token *stringThe Book's token address, which names the Book.
amountstringstake, unstake and redeem: the Book's tokens, a decimal number, or all.
expectPendingobjectconfirmTrade 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…
inQuotebooleansetSettleAsset: true settles the Book in its own base pair, false in WETH. Built until five minutes before the Book ends.
minOutstringAn 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.
orderHashstringcancelOrder: the granted order's hash.
quoteobjectproposeTrade, and sweepLeftover of a token other than the Book's settlement asset and its own: the signed quote get_book_vault_quote answered, unused.
spenderstringcancelOrder and revokeAllowance: the order book the grant names.
sweepTokenstringsweepLeftover 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.
tokensarraysyncTracked: the tokens to sync.
trustQuotebooleanAn 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.
unwrapbooleanpadClaim on a WETH Book: false takes the claim as WETH; it is paid as ether otherwise.
walletstringThe 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.

ParameterTypeDescription
purpose *string
token *stringThe Book's token address, which names the Book.
tokenIn *stringWhat the vault sells: an address, 0x and 40 hex digits.
amountInstringHow much the vault sells, a decimal number; a sweep's whole holding by default.
minOutstringAn 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.
previewbooleanEvery check and the simulation, and no signature.
slippageBpsnumberThe floor's band under the route: 10 to 30 with one trader, 30 to 100 with several, 50 to 150 for a sweep.
tokenOutstringWhat 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).
trustQuotebooleanAn 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.
walletstringThe 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.

ParameterTypeDescription
token *stringThe Book's token address, which names the Book.
slippageBpsnumberThe sales' band, 50 to 150; 100 by default.
walletstringThe 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.

ParameterTypeDescription
name *string
symbol *stringThe ticker: 2 to 11 letters and digits.
targets *arrayThe 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.
descriptionstring
factorystringThe 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.
linksobjectwebsite, 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.

ParameterTypeDescription
draftId *stringThe saved Book's id, as create_book_draft answered it.
terms *objectopenBook's terms: traders and durationSecs, and any of lpFeeMode, startMcapUsd8, gradMcapUsd8, startTaxBps, taxDecayPerMinBps, windowSecs, buysOnly, bondAfterSecs, guaranteedBond, quote, venue, hook.
factorystringThe draft's factory, where it was saved on another connection: an address.
namestringThe draft's name, where it was saved on another connection: a draft this connection saved is held to its own.
symbolstringThe draft's ticker, where it was saved on another connection.
walletstringThe 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.

ParameterTypeDescription
beforestringA page's nextBefore.
limitintegerHow many, 1 to 100; 30 by default.
unreadbooleanUnread notices alone.

mark_notifications_read Mark notifications read

Mark notices read: by their ids, every notice through one id, or all of them.

ParameterTypeDescription
allbooleanMark every notice read.
idsarrayNotice ids.
throughstringA 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.

ParameterTypeDescription
beforestringA page's nextBefore.
limitintegerHow 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.

ParameterTypeDescription
limitintegerHow many, 1 to 500; 100 by default.
sincestringA 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.

ParameterTypeDescription
id *stringThe profile: an address, or a username.

search_people Search people

Search profiles by username, X handle or address.

ParameterTypeDescription
query *string
limitintegerHow 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.

ParameterTypeDescription
id *stringThe wallet: an address, or a username.
cursorstring
limitintegerHow 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.

ParameterTypeDescription
id *stringThe wallet: an address, or a username.
cursorstring
limitintegerHow 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.

ParameterTypeDescription
bioUp to 500 characters and 10 lines.
displayName1 to 50 characters, with no link and no address.
showPortfoliobooleanShow the wallet's holdings on its profile.
websiteOne http or https link, never a social network.

follow Follow a wallet

Follow a wallet. Its trades join the Following feed.

ParameterTypeDescription
id *stringThe wallet: an address, or a username.

unfollow Unfollow a wallet

Unfollow a wallet. Its trade alerts end with it.

ParameterTypeDescription
id *stringThe 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.

ParameterTypeDescription
id *stringThe wallet: an address, or a username.
on *booleantrue 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.

ParameterTypeDescription
token *stringThe token's address.
cursorstring
limitintegerHow 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.

ParameterTypeDescription
side *stringup or down.
token *stringThe token's address.
thesisstringWhy, 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.

ParameterTypeDescription
token *stringThe 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.

ParameterTypeDescription
side *stringup or down.
token *stringThe Book's token address.
thesisstringWhy, 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.

ParameterTypeDescription
token *stringThe Book's token address.