Skip to main content
Glama
arcadia-finance

arcadia-finance-mcp-server

write.account.withdraw

Build an unsigned transaction to withdraw assets from an Arcadia account to the owner's wallet, ensuring the account remains collateralized.

Instructions

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).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_addressYesArcadia account address
asset_addressesYesToken contract addresses to withdraw
asset_amountsYesAmounts in raw units/wei, one per asset
asset_idsNoToken IDs: 0 for ERC20, NFT token ID for ERC721
asset_typesNoV4 only. Asset types per asset: 1=ERC20, 2=ERC721, 3=ERC1155. If omitted, inferred from asset_ids (non-zero → ERC721).
account_versionNoOverride account version (3 or 4). Auto-detected on-chain if omitted.
chain_idNoChain ID: 8453 (Base) or 130 (Unichain)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/arcadia-finance/arcadia-finance-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server