Open a trove
POST/v1/actions/river/open
Open a trove on a River market: deposit collateral, mint satUSD.
River (rebranded Satoshi Protocol) is a Prisma-lineage pooled CDP minting satUSD behind one SatoshiXApp diamond per chain (BNB, Base, Hemi). One TroveManager per collateral = one RIVER_<chainId>_<TM_INDEX> market; troves are keyed by OWNER ADDRESS — at most one per user per market, no ids. Interest is protocol-set (currently 0%); the only borrowing cost is a one-off decaying-baseRate mint fee (0.5%–5%) on open/borrow-more, guarded by maxFeePercentage (quoted automatically).
Standard lending actions cover the day-to-day ops:
- satUSD deposit/withdraw → the single per-chain Stability Pool (attached to market index 0; zero approvals)
- collateral deposit/withdraw →
addColl/withdrawColl(no troveId — address-keyed) - borrow →
withdrawDebt(mint fee applies) - repay →
repayDebtclamped toentireDebt − gasComp − minNetDebt;isAll=trueroutes tocloseTrove(burnsentireDebt − gasCompfrom the wallet, returns all collateral; blocked in Recovery Mode)
The 2-satUSD debt-side gas compensation is minted on open and burned from the GasPool on close — it never touches the wallet.
Validates the diamond-level minNetDebt and rejects paused/sunsetting markets; quotes the mint-fee guard live. Returns the transaction plus the collateral approval (to the diamond).
Request
Responses
- 200
- 400