redeem_cdp
Redeem iAssets from a CDP by building an unsigned transaction (CBOR hex) for client-side signing. Pass the total minted amount to redeem the maximum possible.
Instructions
Redeem iAssets from a CDP — builds an unsigned transaction (CBOR hex) for client-side signing. To redeem the maximum possible, pass the total minted amount.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | ||
| amount | Yes | iAsset amount to redeem in smallest unit (pass total minted amount to redeem max) | |
| address | Yes | User Cardano bech32 address (addr1... or addr_test1...) | |
| cdpTxHash | Yes | Transaction hash of the CDP UTxO | |
| cdpOutputIndex | Yes | Output index of the CDP UTxO |