# Runnable programs The programs in `crates/kuatia/examples/` drive a real ledger over SQLite in memory, so each one runs with no setup: ```sh cargo run -p kuatia --example create_accounts cargo run -p kuatia --example fund_and_trade cargo run -p kuatia --example withdraw cargo run -p kuatia --example inflight_hold cargo run -p kuatia --example escrow ``` They are included below from source, so what the book shows is the code `cargo test` compiles. ## Create accounts ```rust {{#include ../../crates/kuatia/examples/create_accounts.rs}} ``` ## Fund and trade A deposit into two accounts, then a cross-asset trade settled as one transfer: each asset conserves independently, so a swap needs no special verb. ```rust {{#include ../../crates/kuatia/examples/fund_and_trade.rs}} ``` ## Withdraw ```rust {{#include ../../crates/kuatia/examples/withdraw.rs}} ``` ## Inflight hold Authorize, confirm and void through a per-destination holding subaccount; see [inflight holds](../inflight.md). ```rust {{#include ../../crates/kuatia/examples/inflight_hold.rs}} ``` ## Escrow Explained in [Pending states](../pending-states.md). ```rust {{#include ../../crates/kuatia/examples/escrow.rs}} ```