write_pool_deposit
Build an unsigned transaction to deposit an underlying asset into an Arcadia lending tranche and receive interest-bearing ERC-4626 shares; approve the token first.
Instructions
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.
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 |