What are Notes?
Miden's cross-account communication mechanism — programmable UTXOs that carry assets, execute scripts, and trigger logic on consuming accounts.
Note Scripts
Write note scripts using #[note] and #[note_script] macros to define logic that executes when notes are consumed.
Standard Note Types
Built-in note types from miden-standards: P2ID, P2IDE (with expiration), and SWAP (atomic exchange).
Reading Notes
Read the active note's data and access input notes by index during transactions.
Output Notes
Create output notes, attach assets, set attachments, and compute recipients.