Reviewed Aug 2026
DE
DA-03 · LESSON 02

Deposit and withdraw

KEY DEFINITIONS

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.

45 min Difficulty 4/5 Not started

Loading lesson visuals...

01

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.

GUIDED EXPLANATION1/4 ideas inspected
1

Read the live vault

The client selects the current vault outpoint and debt rather than a stale earlier version.

Inspect each idea before the worked example.
The worked example follows the explanation

Inspect every idea above to open it.

Important distinctionA deposit and withdrawal are opposite ordinary wallet payments.

Both are vault state transitions with action-specific successor and policy checks, not arbitrary movements from a normal address.

02
FINISH LEARNING FIRST

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.