adjust_sp_account
Deposit or withdraw iAssets from a stability pool account to adjust your position. Returns an unsigned transaction for client-side signing.
Instructions
Deposit to or withdraw from an existing stability pool account. Positive amount deposits, negative withdraws. Returns an unsigned transaction (CBOR hex) for client-side signing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | iAsset of the stability pool (iUSD, iBTC, iETH, or iSOL) | |
| amount | Yes | Amount to adjust (positive = deposit, negative = withdraw, in smallest unit) | |
| address | Yes | User Cardano bech32 address | |
| accountTxHash | Yes | Transaction hash of the account UTxO | |
| accountOutputIndex | Yes | Output index of the account UTxO |