Arcadia Finance

v0.8.1
io.github.arcadia-finance/mcp-server Checked 5 hours ago Published 5 hours ago

Concentrated liquidity on Uniswap/Aero (rebalance, compound, leverage) or single-sided lending.

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

read_account_info

Get full overview of an Arcadia account: health factor, collateral value, debt, deposited assets, liquidation price, and automation status. Health factor = 1 - (used_margin / liquidation_value): 1 = no debt (safest), >0 = healthy, 0 = liquidation threshold, <0 = past liquidation. Higher is safer. The `automation` object reports which asset managers are enabled (rebalancer, compounder, yield_claimer, cow_swapper, merkl_operator, gas_relayer), each as the position's dex_protocol when protocol-specific or true when account-level and active, plus `inferred_intents` (the automations those managers…

ParameterTypeDescription
account_address *stringArcadia account address
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

read_account_history

Get an Arcadia account's historical net value over time. Returns a time series of snapshots, oldest first, each `{ timestamp, net_value }` — `timestamp` is unix seconds and `net_value` is USD (human-readable, not raw units). Useful for charting account performance over a period. An empty `history` means the account has no snapshots in the window, not that the read failed.

ParameterTypeDescription
account_address *stringArcadia account address
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
daysnumberNumber of days of history (default 14)

read_account_pnl

Get PnL (cost basis) and yield earned for an Arcadia account. Returns lifetime totals: cost basis vs current value (negative cost_basis = net profit withdrawn), net transfers per token, total yield earned in USD and per token. cost_basis, current_value, cost_diff are in USD (human-readable). Per-token fields (net_transfers, summed_yields_earned) are in raw token units.

ParameterTypeDescription
account_address *stringArcadia account address
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

read_pool_list

List all Arcadia lending pools: TVL, utilization, available liquidity. Key fields: interest_rate = current borrow cost, lending_apy = lender yield. All rates are decimal fractions (1.0 = 100%, 0.06 = 6%). For APY history on a specific pool, use read_pool_info.

ParameterTypeDescription
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

read_pool_info

Get detailed info for a single lending pool including APY history over time. Useful for analyzing rate trends and comparing pools. Use read_pool_list to discover pool addresses.

ParameterTypeDescription
pool_address *stringPool address
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
daysnumberNumber of days of APY history

read_asset_list

List supported collateral assets on Arcadia. Returns compact list (address, symbol, decimals, type). Use search to filter by symbol substring. For USD prices, use read_asset_prices.

ParameterTypeDescription
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
searchstringFilter assets by symbol (case-insensitive substring match)

read_asset_prices

Get USD prices for one or more asset addresses on one chain. Pass a single address or comma-separated addresses. Returns a price map keyed by address. Unknown or unpriced addresses return 0, not an error. Prices are scoped to chain_id (default 8453, Base), so pass the chain the addresses live on. Read-only. To find asset addresses, use read_asset_list.

ParameterTypeDescription
asset_addresses *stringSingle address or comma-separated addresses for price lookup
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

read_strategy_list

Get Arcadia LP strategies. Use featured_only=true for curated top strategies (recommended first call); their apy is measured over the last 24 hours at the featured range width, and is 0.0 when that measurement fails. Otherwise returns a paginated list where strategy_apy_7d is the 7-day average APY at each strategy's default range. Increase limit or use offset for pagination. All APY values are decimal fractions (1.0 = 100%, 0.05 = 5%). For APY per range width over the last 24 hours, use read_strategy_info.

ParameterTypeDescription
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
featured_onlybooleanReturn only featured/curated strategies (recommended)
limitnumberMax strategies to return (default 25)
offsetnumberSkip first N strategies for pagination

read_strategy_info

Get full detail for a specific concentrated-liquidity LP strategy by ID: includes APY per range width over the last 24 hours, each range anchored on the current price (narrower range = higher APY but more rebalancing cost/risk), the 7-day average APY at the default range in the yield field, pool info, and configuration. For basic (constant-product) pools, use strategy_apy_7d from read_strategy_list. Use read_strategy_list to discover strategy IDs. All APY values are decimal fractions (1.0 = 100%, 0.05 = 5%).

ParameterTypeDescription
strategy_id *numberStrategy ID
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

read_strategy_recommendation

Get a rebalancing recommendation for an Arcadia account: suggests asset changes to optimize yield. current_apy and proposed_apy are measured over the last 24 hours where possible (the account's positions at their own ranges, the proposal at its ranges), not the 7-day average of read_strategy_list, so recommended strategies may differ from the list ranking. APY values are decimal fractions (0.05 = 5%). weekly_earning_difference is in USD.

ParameterTypeDescription
account_address *stringArcadia account address
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

read_point_leaderboard

Get the Arcadia points leaderboard (paginated). For a specific wallet's points balance, use read_wallet_points.

ParameterTypeDescription
limitnumberMax leaderboard entries to return (default 25)
offsetnumberSkip first N leaderboard entries for pagination

read_guides

Get Arcadia workflow guides and reference documentation. Call this before multi-step workflows (opening LP positions, enabling automation, closing positions) or when you need contract addresses, asset manager addresses, or strategy parameters. Topics: overview (addresses + tool catalog), automation (intent-based automation setup), strategies (step-by-step templates), selection (how to evaluate and parameterize strategies).

ParameterTypeDescription
topicstringoverview = addresses + tool catalog, automation = intent-based automation setup, strategies = step-by-step LP templates, selection = pool evaluation + leverage sizing

read_wallet_balances

Get native ETH and ERC20 token balances for a wallet address. Reads directly from chain via RPC multicall. Use before write_account_add_liquidity or write_account_deposit to verify the wallet has sufficient tokens. Returns both raw balance (smallest unit/wei) and formatted (human-readable) per token.

ParameterTypeDescription
token_addresses *arrayERC20 token contract addresses to check
wallet_address *stringWallet address to check balances for
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

read_wallet_allowances

Check ERC20 token allowances for a spender address. Use before write_wallet_approve to avoid redundant approvals: skip approving if the current allowance is already sufficient.

ParameterTypeDescription
owner_address *stringToken owner address (the wallet granting approval)
spender_address *stringSpender address to check allowance for (e.g. Arcadia account address)
token_addresses *arrayERC20 token contract addresses to check
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

read_wallet_accounts

List all Arcadia accounts owned by a wallet address. Returns a summary of each account (address, name). Call read_account_info with a specific account_address for full details like health factor, collateral, and debt.

ParameterTypeDescription
wallet_address *stringWallet address to list accounts for
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

read_wallet_points

Get the Arcadia points balance for one wallet address. Returns points and wallet_address. A wallet with no points returns points 0 and wallet_address 'unknown', not an error. Read-only, no authentication. For the ranked list of wallets, use read_point_leaderboard.

ParameterTypeDescription
wallet_address *stringWallet address to get points for

read_asset_manager_intents

List the automation intents Arcadia supports, with the parameters each one accepts. Pass account_address to also get per-account availability: which intents can be enabled right now and, for any that cannot, the compatibility rule blocking it. Pass position_id as well to scope availability to one LP position. Without account_address this returns the catalog only.

ParameterTypeDescription
account_addressstringArcadia account address. Include it to get live per-account availability.
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
position_idintegerLP position (NFT) id to scope availability to. Requires account_address.

read_asset_manager_current

Read which asset managers are currently enabled on an account, with their decoded on-chain configuration. Returns the active managers (address, protocol, initiator, decoded strategy metadata, slippage and value-loss caps, fee recipient), the intents they map to, and Merkl claim state including whether reward tokens still need registering. Managers from superseded deployments are listed separately under `deprecated`: pass their addresses to write_account_automations_delta to clear them, or run write_account_automations which disables them as part of the save. A deprecated cow_swapper no longer…

ParameterTypeDescription
account_address *stringArcadia account address
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

read_account_aero_upgrade

Which Arcadia accounts have something to upgrade to Aero (MetadexCL V1): Slipstream V1 to V3 positions (Aerodrome on Base, Velodrome on Optimism, staked or not) and old AERO. Pass wallet_address for every account of a wallet, or account_address for one. Per account: status (ready | choices_required | waiting | not_open | nothing_to_upgrade), positions (every Slipstream position on it), movable (ready or needing a pool choice), waiting, blocked, old_aero (raw, 18 decimals). Accounts without a Slipstream position or old AERO are left out, including accounts whose positions already moved but whos…

ParameterTypeDescription
account_addressstringOne Arcadia account to check
chain_idnumberChain ID: 8453 (Base), 10 (Optimism) or 4663 (Robinhood, nothing to upgrade)
wallet_addressstringWallet whose accounts to check. Pass this or account_address, not both.

write_account_create

Build an unsigned transaction to create a new Arcadia account via the Factory contract. account_version: 4 → spot account (no borrowing, creditor is ignored, any ERC20 allowed). account_version: 3 or 5 with creditor → margin account (can borrow/leverage), created as V5 where the Factory has registered V5, else as V3. Without account_version: margin when a creditor is given, else spot. account_version: 0 → the Factory's latest version. Returns the predicted account address (deterministic via CREATE2).

ParameterTypeDescription
salt *numberUnique salt (uint32) for deterministic account address
wallet_address *stringWallet address that will send the transaction (tx.origin, needed for address prediction)
account_versionnumberAccount version: 4 = spot, 3 or 5 = margin (can borrow, created as the newest margin version on the chain), 0 = the Factory's latest version. 1/2 = legacy. Omitted: margin with a creditor, else spot.
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
creditorstringLending pool address for a margin account (version 5). Ignored for spot accounts (version 4).

write_account_upgrade

Build an unsigned transaction that upgrades an Arcadia account to its next account version via the Factory. Only the account owner can send it. Positions, collateral and debt stay as they are. write_account_borrow and write_account_add_liquidity include this upgrade automatically when the account needs it to take on debt.

ParameterTypeDescription
account_address *stringArcadia account to upgrade
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

write_account_deposit

Build an unsigned transaction to deposit assets into an Arcadia account as collateral. Supports ERC20 tokens and ERC721 NFTs (LP positions). NOT needed before write_account_add_liquidity: that tool deposits from wallet atomically. Ensure the account is approved first (call read_wallet_allowances to check, then write_wallet_approve if needed). Account version is auto-detected on-chain (override with account_version if needed).

ParameterTypeDescription
account_address *stringArcadia account address
asset_addresses *arrayToken contract addresses to deposit
asset_amounts *arrayAmounts in raw units/wei, one per asset
account_versionnumberOverride account version (3 or 4). Auto-detected on-chain if omitted.
asset_idsarrayToken IDs: 0 for ERC20, NFT token ID for ERC721
asset_typesarrayV4 only. Asset types per asset: 1=ERC20, 2=ERC721, 3=ERC1155. If omitted, inferred from asset_ids (non-zero → ERC721).
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

write_account_withdraw

Build an unsigned transaction to withdraw assets from an Arcadia account to the owner's wallet. Only the account owner can withdraw. Will revert if the account has debt and withdrawal would make it undercollateralized. Does not support max_uint256: pass exact amounts from read_account_info. Account version is auto-detected on-chain (override with account_version if needed).

ParameterTypeDescription
account_address *stringArcadia account address
asset_addresses *arrayToken contract addresses to withdraw
asset_amounts *arrayAmounts in raw units/wei, one per asset
account_versionnumberOverride account version (3 or 4). Auto-detected on-chain if omitted.
asset_idsarrayToken IDs: 0 for ERC20, NFT token ID for ERC721
asset_typesarrayV4 only. Asset types per asset: 1=ERC20, 2=ERC721, 3=ERC1155. If omitted, inferred from asset_ids (non-zero → ERC721).
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

write_account_borrow

Build an unsigned transaction to borrow from an Arcadia lending pool against account collateral. NOT needed for leveraged LP: write_account_add_liquidity handles borrowing internally when leverage > 0. Only works with margin accounts (created with a creditor/lending pool). Spot accounts (no creditor) cannot borrow: the tool will validate this and reject. When the lending pool no longer lends to the account's version, the response is `transactions`: the account upgrade, then the borrow. Sign and broadcast them in order, each after the previous one confirms. Before borrowing, verify the account…

ParameterTypeDescription
account_address *stringArcadia account address used as collateral
amount *stringAmount in raw units
pool_address *stringLending pool: LP_WETH=0x803ea69c7e87D1d6C86adeB40CB636cC0E6B98E2, LP_USDC=0x3ec4a293Fb906DD2Cd440c20dECB250DeF141dF1, LP_CBBTC=0xa37E9b4369dc20940009030BfbC2088F09645e3B
to *stringAddress to receive borrowed tokens
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

write_account_repay

Repay debt to an Arcadia lending pool using tokens from the wallet (requires ERC20 allowance). To repay using account collateral instead (no wallet tokens needed), use write_account_deleverage. Check allowance first (read_wallet_allowances), then approve the pool if needed (write_wallet_approve). Check outstanding debt with read_account_info.

ParameterTypeDescription
account_address *stringArcadia account address with debt
amount *stringAmount in raw units, or 'max_uint256' to repay all debt in full
pool_address *stringLending pool address. Base: LP_WETH=0x803ea69c7e87D1d6C86adeB40CB636cC0E6B98E2, LP_USDC=0x3ec4a293Fb906DD2Cd440c20dECB250DeF141dF1, LP_CBBTC=0xa37E9b4369dc20940009030BfbC2088F09645e3B
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

write_account_add_liquidity

Multi-step flash-action: atomically combines [deposit from wallet] + [use account collateral] + [swap to optimal ratio] + [mint LP] + [borrow if leveraged] in ONE transaction. Do NOT call write_account_deposit separately. Capital sources: wallet tokens (deposits array), existing account collateral (use_account_assets=true), or both. Check allowances first (read_wallet_allowances), then approve if needed (write_wallet_approve). With leverage, when the lending pool no longer lends to the account's version, the response is `transactions`: the account upgrade, then this flash-action, simulated as…

ParameterTypeDescription
account_address *stringArcadia account address
positions *arrayLP positions to mint. For a single position, pass one entry.
wallet_address *stringWallet address of the account owner
accept_price_checksarrayThe accept_price_checks list returned with the price warnings of a previous call, passed unchanged and only after the user has explicitly confirmed those warnings. Never set it on the first call.
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
depositsarrayWallet tokens to deposit. Approve each token first (write_wallet_approve). Omit to use only account collateral.
leveragenumber0 = no borrow, 2 = 2x leverage. Margin accounts only.
slippagenumberBasis points, 100 = 1%
use_account_assetsbooleanIf true, use ALL existing account collateral for LP minting. Fetched automatically.

write_account_remove_liquidity

Flash-action: PARTIALLY decreases liquidity from an LP position. The position remains open with reduced liquidity; underlying tokens stay in the account. For FULL position exit (burn LP + swap + repay + withdraw), use write_account_close instead: it batches everything into one atomic transaction. The returned calldata is time-sensitive — sign and broadcast within 30 seconds. If the transaction reverts due to price movement, rebuild and sign again immediately (retry at least once before giving up). Response includes tenderly_sim_url and tenderly_sim_status for pre-broadcast validation.

ParameterTypeDescription
account_address *stringArcadia account address
adjustment *stringLiquidity amount to remove (raw uint128 value as string). Must be less than total liquidity: for full removal use write_account_close.
asset_address *stringPosition manager contract
asset_id *numberNFT token ID
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

write_account_swap

Flash-action: swaps assets within an Arcadia account in one atomic transaction. The backend finds the optimal swap route. NOTE: If you are closing a position (swap + repay + withdraw), prefer write_account_close which batches everything atomically. Only use this tool for standalone swaps within an active position. The returned calldata is time-sensitive: sign and broadcast within 30 seconds. If the transaction reverts due to price movement, rebuild and sign again immediately (retry at least once before giving up). Response includes tenderly_sim_url and tenderly_sim_status for pre-broadcast val…

ParameterTypeDescription
account_address *stringArcadia account address
amount_in *stringRaw units
asset_from *stringToken address to swap from
asset_to *stringToken address to swap to
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
slippagenumberBasis points, 100 = 1%

write_account_deleverage

Multi-step flash-action: sells account collateral to the debt token and repays in one atomic transaction: no wallet tokens needed. To repay from wallet tokens instead, use write_account_repay. NOTE: If you are closing a position (remove LP + swap + repay + withdraw), prefer write_account_close which batches everything atomically. Only use this tool for standalone repayment while keeping the position active. The returned calldata is time-sensitive: sign and broadcast within 30 seconds. If the transaction reverts due to price movement, rebuild and sign again immediately (retry at least once befo…

ParameterTypeDescription
account_address *stringArcadia account address
amount_in *stringCollateral amount to sell (raw units)
asset_from *stringCollateral token to sell
creditor *stringLending pool address
numeraire *stringDebt token address
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
slippagenumberBasis points, 100 = 1%

write_account_stake

Flash-action: stake, unstake, or claim rewards for an LP position in one atomic transaction. Use the `action` parameter to select the operation. `asset_address` is the position manager contract: pass the non-staked PM address when staking, or the staked PM address when unstaking. The returned calldata is time-sensitive, sign and broadcast within 30 seconds. If the transaction reverts due to price movement, rebuild and sign again immediately (retry at least once before giving up). Tenderly simulation may not be available for this endpoint. Verify the position exists with read_account_info befor…

ParameterTypeDescription
account_address *stringArcadia account address
action *stringAction to perform
asset_address *stringPosition manager contract address
asset_id *numberNFT token ID of the LP position
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

write_account_close

Atomic flash-action that closes an Arcadia account position in ONE transaction. Combines up to 3 steps atomically: [burn LP position] + [swap all tokens to a single target asset] + [repay debt]. Tokens remain in the account after closing: use write_account_withdraw to send them to your wallet. ALWAYS try this tool first when closing/exiting a position. Only fall back to individual tools (write_account_remove_liquidity, write_account_swap, write_account_deleverage, write_account_withdraw) if this tool fails. Supports two modes: - close_lp_only=true: Burns LP and leaves underlying tokens in th…

ParameterTypeDescription
account_address *stringArcadia account address
assets *arrayAssets to close/sell from the account. IMPORTANT: For LP positions (NFTs), always use amount='1' and decimals=1: do NOT pass the liquidity amount. asset_address = position manager, asset_id = NFT toke…
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
close_lp_onlybooleantrue = only burn LP positions, leave underlying tokens in account. false = full close (burn + swap + repay).
receive_assetsarrayTarget assets to receive after closing. For a single target, pass one entry. Required when close_lp_only=false. Omit for close_lp_only=true.
slippagenumberBasis points, 100 = 1%

write_account_aero_upgrade

Upgrade one Arcadia account to Aero (MetadexCL V1) in one flashAction: every Slipstream V1/V2/V3 position (dex_protocol slipstream*, staked or not, see read_account_info) moves to the Aero CL pool with the same pair and variant at the same range and tick spacing (when Aero has no pool at that tick spacing, the user picks another one), and every unit of old AERO (loose, in rewards, in an old-AERO pair) becomes the new AERO. Returns the plan and, when anything can go now, the unsigned transaction. Only the account owner can sign it. The backend decides what moves: report items[].status and items…

ParameterTypeDescription
account_addressstringArcadia account to upgrade. Pass this or accounts, not both.
accountsarrayUp to 10 Arcadia accounts of one owner: one plan and transaction each
chain_idnumberChain ID: 8453 (Base), 10 (Optimism) or 4663 (Robinhood, nothing to upgrade)
choicesarrayPool picks for positions with status choose (or waiting with a selectable option), from a previous call's options (disabled_reason null)
min_blockintegerBlock of the transaction you just confirmed, so the plan reads state at or after it
slippageintegerPrice band the mint accepts, in bps. Omit for the backend default: 150, or 500 when the owner is a contract (a Safe).

write_account_adjust_range

Move one LP position in an Arcadia account to a new tick range in one flashAction: the position is burned, its own tokens (fees included, less the protocol share) are swapped to the new range's ratio and it is minted again, staked again when it was. Nothing else in the account moves and the debt is unchanged, so other collateral keeps backing the account. Use this to re-range a position the account already holds; use write_account_add_liquidity to open a position or add capital. Supports Uniswap V3, Uniswap V4, Slipstream and Aero positions in spot and margin accounts. position_manager and pos…

ParameterTypeDescription
account_address *stringArcadia account address
position_id *integerNFT id of the position
position_manager *stringAsset address of the position in the account (from read_account_info)
tick_lower *integerLower tick of the new range
tick_upper *integerUpper tick of the new range
accept_price_checksarrayThe accept_price_checks list returned with the price warnings of a previous call, passed unchanged and only after the user has explicitly confirmed those warnings. Never set it on the first call.
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
min_blockintegerBlock of the transaction you just confirmed, so the build reads state at or after it
slippageintegerSwap slippage in bps. Omit for the backend default (50).

write_wallet_approve

Build an unsigned approval transaction. For ERC20 tokens: generates approve(spender, amount). For ERC721/ERC1155 NFTs (e.g. LP positions): generates setApprovalForAll(operator, true). Required before write_account_deposit or write_account_add_liquidity (when depositing from wallet). Tip: call read_wallet_allowances first to check if approval already exists: skip this if the current allowance is sufficient.

ParameterTypeDescription
spender_address *stringAddress being approved — use the Arcadia account address for deposits
token_address *stringToken contract address to approve
amountstringERC20 only: amount in raw units, or 'max_uint256' for unlimited. Ignored for NFTs.
asset_typestringToken type: 'erc20' (default) for fungible tokens, 'erc721' or 'erc1155' for NFTs (LP positions)
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

write_wallet_upgrade_velo

Upgrade VELO held in a wallet on Optimism to the new AERO on Base: ordered unsigned wallet transactions from owner_address, an approve when the allowance is short, then depositLiquid on the Velodrome migration with the Hyperlane fee as value. 0.044 new AERO per VELO arrives at the same address on Base once the message lands. VELO inside an Arcadia account must be withdrawn to the wallet first (write_account_withdraw). VELO stays usable, so this is optional. Optimism (chain_id 10) only. 'upgrade unavailable' names the contract's reason: not_open (with the opening time), paused, budget_exhausted…

ParameterTypeDescription
owner_address *stringWallet holding the VELO on Optimism; receives the AERO on Base
amountstringRaw units (18 decimals). Omit for the wallet's full VELO balance.
chain_idnumberChain ID: 10 (Optimism)

write_pool_deposit

Build an unsigned deposit transaction into an Arcadia lending tranche (ERC-4626). Lenders deposit the pool's underlying asset (USDC/WETH/cbBTC) and receive tranche shares that accrue interest from borrowers. Requires prior ERC-20 approval to the tranche (see write_wallet_approve). To check current lender yield, call read_pool_list or read_pool_info.

ParameterTypeDescription
assets *stringAmount of underlying asset to deposit, in raw units (e.g. '1000000' = 1 USDC since USDC has 6 decimals).
receiver *stringAddress that receives the minted tranche shares. Usually the depositor's own wallet.
tranche_address *stringTranche contract address (ERC-4626 vault). Get this from read_pool_list: each pool's `tranches[0].address`.
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

write_pool_redeem

Build an unsigned redeem transaction to withdraw from an Arcadia lending tranche (ERC-4626). Burns tranche shares and returns the corresponding amount of underlying asset, including accrued interest. The owner must be the shares holder; receiver is where the underlying asset is sent.

ParameterTypeDescription
owner *stringAddress that owns the tranche shares being burned. Normally the signer's own wallet.
receiver *stringAddress that receives the underlying asset. Usually the owner's own wallet.
shares *stringAmount of tranche shares to burn, in raw units. To redeem everything, use the owner's full share balance.
tranche_address *stringTranche contract address (ERC-4626 vault). Get this from read_pool_list: each pool's `tranches[0].address`.
chain_idnumberChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)

write_account_automations

Configure an account's automations from a list of intents and return the unsigned setAssetManagers transaction. The backend resolves which asset managers each intent needs, validates that the combination is compatible, encodes the metadata and builds the calldata, so you describe the desired outcome rather than the contracts. With mode 'save' (the default) the intents array is the complete desired state: the backend diffs it against what is currently enabled, so any automation you leave out is DISABLED by the returned transaction. Pass a single intent with enabled: false to turn everything of…

write_account_automations_delta

Apply an explicit change to an account's automations and return the unsigned setAssetManagers transaction. Unlike write_account_automations this is a delta, not a full desired state: automations you do not mention are left untouched. Use it to switch one automation on or off without restating the others. The enable array takes intents to switch on (same shapes as write_account_automations). To turn an automation OFF, call read_asset_manager_current, take the address of the manager serving it, and pass that address in the disable array: an intent with enabled: false in `enable` is rejected bec…