Warden Token Terminal

v1.1.0
org.wardenprotocol/token-terminal Checked 1 day ago Published 27 days ago

Find tokens, price swaps and trade onchain on Base, BNB Chain, Robinhood Chain and Arc.

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

list_chains List chains

Chains Warden supports, with each chain’s native coin, dollar stable and gasless support.

search_tokens Search tokens

Find tokens by name, ticker or contract address across the supported chains. Tickers are not unique: many contracts call themselves USDC, USDT or ETH. Prefer rows with verifiedByWarden true (Warden reviewed the team, or it is a Warden token) or establishedAsset true (a well-known token at its genuine contract, not reviewed by Warden); never trade a row that carries a warning as if it were the real asset, and for dollars and gas use `cash` and `native` from list_chains.

ParameterTypeDescription
query *string
chainIdnumber

price_history Price history

Candles for a token on its deepest pool, oldest first, priced in USD: time (unix seconds), open, high, low, close, volume. Also returns a summary: the change over the window, its high and low, and how far the last close sits below the high and above the low, to judge a pullback or a breakout before buying. Read-only.

ParameterTypeDescription
chainId *number
token *string
intervalstring
limitinteger

agent_permissions Agent permissions

What this connected wallet has authorised agents to do, whether an unattended trading session is open, and the daily limits that apply.

request_session Ask for hands-free trading

Ask the wallet owner to turn on hands-free trading, so execute_swap works. Returns an approveUrl and a code: give both to the person and ask them to open the link and check the code matches. They approve with one tap in Warden; nothing changes until they do. Then poll session_request_status every few seconds (the request lasts 10 minutes). hours is how long the session lasts. limits is optional and replaces the wallet's daily and per-trade limits in whole dollars; leave it out to keep them.

ParameterTypeDescription
hours *
agentNamestring
limitsobject

session_request_status Hands-free request status

Whether the person has answered a request_session: pending, approved, denied or expired. Once approved, execute_swap works until the session ends.

ParameterTypeDescription
code *string

quote_swap Quote a swap

Price a swap without committing to it. Read-only. Works for the native coin (use its address from list_chains), across EVM chains (buyChainId) and on Solana (base58 mints, case intact).

ParameterTypeDescription
buyToken *string
chainId *number
sellAmount *string
sellToken *string
buyChainIdnumber

prepare_swap Prepare a swap

Build a swap for the user to sign. Does not broadcast. Requires the "swap" permission. Native coin, cross-chain (buyChainId) and gasless (typed-data payloads instead of calldata) are all supported. Give the user reviewUrl: it opens the app with this exact trade filled in, ready to sign. If hands-free trading is on, use execute_swap instead. On Solana it is quoted for the user’s own Solana wallet and signed in the app.

ParameterTypeDescription
buyToken *string
chainId *number
sellAmount *string
sellToken *string
buyChainIdnumber
gaslessboolean
slippageBpsinteger

execute_swap Execute a swap

Sign and broadcast a swap from the user’s wallet without asking them. Only works while the user has hands-free trading on (agent_permissions → handsFree), and within the same limits as prepare_swap; if it is off, tell the user how to turn it on (handsFree.tellUser). Spends real funds: check agent_permissions first, and reuse the idempotencyKey on any retry. Sell the native coin by its address from list_chains. If the wallet has no gas coin (see get_wallet), sell an ERC-20 with gasless=true. Set buyChainId to land the bought token on another chain; then follow the trade with swap_status. On…

ParameterTypeDescription
buyToken *string
chainId *number
idempotencyKey *string
sellAmount *string
sellToken *string
buyChainIdnumber
gaslessboolean
slippageBpsinteger

swap_status Swap status

Where a gasless (relayed) or cross-chain (bridged) trade stands, or a Solana swap (kind "solana", its signature) that execute_swap left unconfirmed. Poll every few seconds until done is true. Plain EVM same-chain swaps confirm on-chain and need no polling.

ParameterTypeDescription
chainId *number
hash *string
kind *string

get_wallet Connected wallet

The connected wallet, its X handle if linked, and everything it holds on every chain: the gas coin and each token, with the exact raw amount to use as sellAmount and a USD value where Warden can price it. A chain with no gas coin means: sell an ERC-20 with gasless=true where gaslessAvailable, or fund it first. Tokens under unrecognised were sent to the wallet unasked (not listed, not bought): never count them as money or suggest selling them unless the person names one. Where Solana is on, `solana` is the agent Solana wallet execute_swap trades from, and its holdings.