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.
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": {
"tranche_address": "<tranche_address>",
"assets": "<assets>",
"receiver": "<receiver>"
},
"name": "write_pool_deposit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assets | Yes | Amount of underlying asset to deposit, in raw units (e.g. '1000000' = 1 USDC since USDC has 6 decimals). | |
| chain_id | No | Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood) | |
| receiver | Yes | Address that receives the minted tranche shares. Usually the depositor's own wallet. | |
| tranche_address | Yes | Tranche contract address (ERC-4626 vault). Get this from read_pool_list: each pool's `tranches[0].address`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | Yes | ||
| transaction | Yes | ||
| predicted_account_address | No |