write_account_upgrade
Builds an unsigned transaction for the account owner to upgrade an Arcadia account to its next version via the Factory, keeping positions, collateral, and debt unchanged.
Instructions
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.
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>"
},
"name": "write_account_upgrade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain_id | No | Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood) | |
| account_address | Yes | Arcadia account to upgrade |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | Yes | ||
| transaction | Yes | ||
| predicted_account_address | No |