close_sp_account
Close a stability pool account, withdraw all deposited iAssets, and get an unsigned Cardano transaction for client-side signing.
Instructions
Close a stability pool account and withdraw all deposited iAssets. 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>",
"accountTxHash": "<accountTxHash>",
"accountOutputIndex": "<accountOutputIndex>"
},
"name": "close_sp_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | User Cardano bech32 address | |
| accountTxHash | Yes | Transaction hash of the account UTxO | |
| accountOutputIndex | Yes | Output index of the account UTxO |