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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account_address": "<account_address>",
"asset_addresses": "<asset_addresses>",
"asset_amounts": "<asset_amounts>"
},
"name": "write_account_deposit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain_id | No | Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood) | |
| asset_ids | No | Token IDs: 0 for ERC20, NFT token ID for ERC721 | |
| asset_types | No | V4 only. Asset types per asset: 1=ERC20, 2=ERC721, 3=ERC1155. If omitted, inferred from asset_ids (non-zero → ERC721). | |
| asset_amounts | Yes | Amounts in raw units/wei, one per asset | |
| account_address | Yes | Arcadia account address | |
| account_version | No | Override account version (3 or 4). Auto-detected on-chain if omitted. | |
| asset_addresses | Yes | Token contract addresses to deposit |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | Yes | ||
| transaction | Yes | ||
| predicted_account_address | No |