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.
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": {
"address": "<address>",
"asset": "<asset>",
"amount": "<amount>",
"accountTxHash": "<accountTxHash>",
"accountOutputIndex": "<accountOutputIndex>"
},
"name": "adjust_sp_account"
}
}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 |