Actions61
- Activity Actions
- Asset Actions
- Custom Query Actions
- Hub Actions
- Lending Actions
- Market Data Actions
- Position Management Actions
- Position Swap Actions
- Protocol Actions
- Reserve Actions
- Spoke Actions
- Swap Actions
- User Position Actions
Position Management → Set Collateral
AI-generatedSummary
Update collateral status for a position on Aave V4
Inputs
- chainId — Chain identifier or name; can be specified via expression
- pmCollateralChanges — Array of collateral modifications; each item defines a reserve and whether to enable it as collateral
- pmSenderAddress (required) — Sender wallet address that will sign the transaction
Output shape
object
Returns a transaction receipt object containing the hash and status; may include additional logs but no body is guaranteed on failure
Examples
Example 1: Enable collateral for a specific reserve
Set chainId to 'eth-mainnet', add a change with reserveId '0x123...' and enableCollateral true, and provide pmSenderAddress '0xSender...'
Example 2: Disable collateral for a reserve
Set chainId to 'eth-mainnet', add a change with reserveId '0x456...' and enableCollateral false, and provide pmSenderAddress '0xSender...'