Deposit and withdraw
Terms used in this lesson
- Collateral
- An asset pledged against a debt; it can be used to cover the debt if agreed conditions are breached.
- Vault
- A set of Bitcoin outputs and spending rules that holds collateral and represents the current loan state.
- UTXO
- Unspent transaction output: one discrete chunk of bitcoin that can be used as a transaction input.
- BTC
- The common market ticker for bitcoin.
- UNIT
- Ducat’s dollar-pegged stablecoin, the asset a borrower can create against bitcoin collateral.
- Outpoint
- A transaction ID plus output number that identifies one exact prior output.
- Guardian
- A Ducat policy-checking signer that can authorize or reject defined protocol transactions.
Collateral changes consume the current vault UTXO and create a successor while validation enforces allowed value and ratio transitions.
Loading lesson visuals...
Learn the idea
Deposit adds bitcoin collateral to a live vault. Withdraw removes some collateral. Both consume the current vault UTXO and create a successor; withdrawal must remain within the active collateral policy.
Read the live vault
The client selects the current vault outpoint and debt rather than a stale earlier version.
Inspect every idea above to open it.
Both are vault state transitions with action-specific successor and policy checks, not arbitrary movements from a normal address.
The questions unlock after every required learning activity
Inspect every guided idea, open the worked example, rebuild its mechanism, and complete the deterministic lesson tool. Your progress is saved automatically.