Reviewed Aug 2026
DE
DA-07 · LESSON 03

Client workflow

KEY DEFINITIONS

Terms used in this lesson

SDK
Software development kit: reusable code and tools for building applications against a system.
Validator
Software or a participant that independently checks state transitions under a system's rules. The exact role depends on the protocol being discussed.
Oracle
A system that reports outside information, such as a market price, for use by a protocol.
PSBT
Partially Signed Bitcoin Transaction: a format for passing an unsigned or partly signed transaction between constructors and signers.
Guardian
A Ducat policy-checking signer that can authorize or reject defined protocol transactions.
Outpoint
A transaction ID plus output number that identifies one exact prior output.
BTC
The common market ticker for bitcoin.
UNIT
Ducat’s dollar-pegged stablecoin, the asset a borrower can create against bitcoin collateral.
Vault
A set of Bitcoin outputs and spending rules that holds collateral and represents the current loan state.
Collateral
An asset pledged against a debt; it can be used to cover the debt if agreed conditions are breached.

The SDK coordinates validator reads, oracle data, funding selection, PSBT construction, wallet signatures, Guardian requests, and broadcasts.

55 min Difficulty 5/5 Not started

Loading lesson visuals...

01

Learn the idea

The client software development kit, or client SDK, coordinates a user action but is not an authority. A Partially Signed Bitcoin Transaction, or PSBT, carries an unsigned transaction plus the previous-output data and scripts needed by signers. The client reads current state, builds PSBTs, collects wallet and Guardian signatures, broadcasts transactions, and waits for confirmed validator reconstruction before reporting completion.

GUIDED EXPLANATION1/4 ideas inspected
1

Resolve current state

Fetch live outpoints, profile, oracle snapshot, accounts, fee information, and confirmation state.

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

Inspect every idea above to open it.

Important distinctionIf the client displays success, the vault state has changed.

Only confirmed Bitcoin transactions plus compatible reconstruction establish the new state. Client optimism can be stale or wrong.

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.