# Sundial Protocol - [Sundial Protocol: an institutional-grade L2 stack for Bitcoin yield](https://docs.sundialprotocol.com/introduction.md): Sundial is a stack for generating yield on Bitcoin: yield products whose BTC stays on Bitcoin, and an optimistic rollup for programmable execution. - [Status and security](https://docs.sundialprotocol.com/overview/status.md): The stage each Sundial component has reached, and the audits, reviews and formal verification behind it. - [Tokenomics](https://docs.sundialprotocol.com/overview/tokenomics.md): The economics of the Sundial L2: no new token, transaction fees, operator bonds, slashing, and the rewards that keep watchers checking blocks. - [Glossary](https://docs.sundialprotocol.com/overview/glossary.md): The canonical names for Sundial's products, components and L2 protocol terms. - [Whitepaper](https://docs.sundialprotocol.com/overview/whitepaper.md): Sundial Protocol: Architecture, Ledger Rules, and Implementation. What the whitepaper covers and how these docs relate to it. - [Frequently asked questions](https://docs.sundialprotocol.com/faq.md): Answers to common questions about Sundial: what it is, what runs today, how the yield products and the L2 work, and how to build on it. - [Yield Marketplace](https://docs.sundialprotocol.com/products/yield-marketplace.md): The Yield Marketplace is where BTC holders choose a Yield Provider and its terms. The provider chooses the rail behind the listing. - [Dawn: segregated BTC staking on Bitcoin](https://docs.sundialprotocol.com/products/dawn.md): Dawn connects your Bitcoin to traditional finance yield. Each deposit sits in its own pair of Bitcoin scripts. Learn the four-transaction lifecycle and what Bitcoin enforces. - [Solstice: pooled BTC vaults with a receipt token](https://docs.sundialprotocol.com/products/solstice.md): Solstice pools deposits in one BTC vault per Yield Provider and issues a fixed-supply receipt token that redeems at the vault's rising Claim Ratio. - [For Yield Providers](https://docs.sundialprotocol.com/products/yield-providers.md): How a Yield Provider lists on the Sundial Yield Marketplace: choosing between Dawn and Solstice, and what a program listing contains. - [Sunbeam: beaming Bitcoin assets to other chains](https://docs.sundialprotocol.com/products/sunbeam.md): Sunbeam moves Bitcoin-native assets to a destination chain. Built on Charms: the asset is destroyed on Bitcoin and re-created on the destination, authorized by a proof. - [Alchemy: FIRE and ICE Bitcoin-Backed Reserve Assets](https://docs.sundialprotocol.com/products/alchemy.md): Alchemy issues two claims against one BTC reserve: ICE, a senior USD-denominated claim, and FIRE, a junior claim that takes the volatility and the upside. - [Sundial L2: an optimistic rollup for UTXO ledgers](https://docs.sundialprotocol.com/l2/overview.md): How the Sundial L2 works: operators commit block headers to L1, watchers prove fraud, and blocks merge into the confirmed state after a maturity period. - [Ledger and transactions](https://docs.sundialprotocol.com/l2/ledger.md): The Sundial L2 ledger: blocks and their 10-field headers, the UTXO set, how events are applied, and how the L2 transaction type differs from Cardano's. - [Deposits, withdrawals and transaction orders](https://docs.sundialprotocol.com/l2/user-events.md): How users move funds between L1 and the Sundial L2, and how inclusion times stop operators from censoring deposits, withdrawals and transactions. - [Consensus](https://docs.sundialprotocol.com/l2/consensus.md): The Sundial L2's consensus runs as L1 smart contracts: the operator directory, the scheduler, the state queue, settlement and the escape hatch. - [Fraud proofs and ledger rules](https://docs.sundialprotocol.com/l2/fraud-proofs.md): How an invalid Sundial L2 block is challenged: the 21 ledger rules, the fraud proof catalogue, multi-step computation threads, and a worked double-spend example. - [Data availability](https://docs.sundialprotocol.com/l2/data-availability.md): Why block data must stay retrievable through the maturity period, how a watcher retrieves and verifies a block, and which storage backings satisfy the protocol. - [Performance](https://docs.sundialprotocol.com/l2/performance.md): Measured throughput and L1 cost of the Sundial L2 node: 1,000 transactions per second sustained, with more than 1.5 million transactions committed. - [Security model](https://docs.sundialprotocol.com/l2/security-model.md): The six invariants the Sundial L2 protocol guarantees and the threat model that sets the protocol's parameters. - [Get started on testnet](https://docs.sundialprotocol.com/guides/testnet.md): Set up a wallet, claim test funds from the Sundial faucet, and open the dashboard. Includes network details and faucet troubleshooting. - [Stake BTC with Dawn](https://docs.sundialprotocol.com/guides/stake-with-dawn.md): Open a Dawn staking position from the Sundial dashboard: deposit, track the provider's claim and distribution, and withdraw after the deadline. - [Use the Sundial L2](https://docs.sundialprotocol.com/guides/use-the-l2.md): Send a transaction on the Sundial L2 testnet with the midgard CLI, and learn how deposits, withdrawals and forced transaction orders work. - [Run an operator node](https://docs.sundialprotocol.com/guides/run-an-operator.md): What a Sundial L2 operator does, what it needs, and how to bring up the reference node with Docker Compose. - [Run a watcher](https://docs.sundialprotocol.com/guides/run-a-watcher.md): What a Sundial L2 watcher does: read committed blocks, check them against the ledger rules, and prove fraud on L1 for a share of the operator's bond. - [Sundial Node API: Overview, Auth, and All Endpoints](https://docs.sundialprotocol.com/api/overview.md): The Sundial node API is an unversioned RPC-style HTTP API for submitting L2 transactions, querying UTxOs and block data, and monitoring node health. - [Transaction API: Submit and Query Sundial L2 Transactions](https://docs.sundialprotocol.com/api/transactions.md): Submit hex-encoded CBOR transactions to the Sundial L2 queue, look up individual transactions by hash, and paginate address transaction history. - [UTxO Query API: Fetch L2 Unspent Transaction Outputs](https://docs.sundialprotocol.com/api/utxos.md): GET /utxos returns the current UTxO set for an address on the Sundial L2. Returns CBOR-encoded UTxO data including lovelace and multi-asset balances. - [Block API: Query Sundial L2 Blocks and State Queue](https://docs.sundialprotocol.com/api/blocks.md): GET /block retrieves the transaction hashes committed to an L2 block. GET /stateQueue returns committed block headers from the L1 state queue. - [Faucet API: Claim Testnet Funds on the Sundial L2](https://docs.sundialprotocol.com/api/faucet.md): POST /faucet/claims sends test funds to an address on the Sundial L2. Requires a bearer token and returns an L2 transaction hash with structured error codes. - [btc-locker SDK: build Bitcoin staking transactions](https://docs.sundialprotocol.com/sdk/btc-locker.md): TypeScript library for P2WSH Bitcoin staking on Sundial. Build deposit, claim, distribution, and withdrawal PSBTs programmatically in browser or Node.js. - [Midgard SDK: Build Sundial L2 Transactions in TypeScript](https://docs.sundialprotocol.com/sdk/midgard-sdk.md): The official TypeScript SDK for Sundial L2. Build deposits, withdrawals, tx orders, and fraud proofs using Effect and Lucid Evolution. - [Midgard TypeScript Types: Blocks, Transactions & Validation](https://docs.sundialprotocol.com/sdk/midgard-ts.md): TypeScript types and validation for Sundial L2. Covers blocks, transactions, user events, binary codec, and Phase A and B validation pipelines. - [Deploy a Sundial layer node: Docker and monitoring](https://docs.sundialprotocol.com/operators/layer-node.md): Deploy the Sundial layer node with Docker Compose. Configure node roles, start the Grafana observability stack, and verify your node is healthy. - [Sundial Node Configuration: L1 Provider, Network & Timing](https://docs.sundialprotocol.com/operators/configuration.md): Reference for all Sundial node environment variables: L1 provider, network, operator wallets, timing intervals, PostgreSQL, Redis, and Prometheus metrics. - [midgard CLI Reference: Wallets, Transactions & Node Status](https://docs.sundialprotocol.com/operators/cli-reference.md): Full reference for the midgard CLI: wallet management, transaction submission, node status checks, and key generation for Sundial L2 operators and users. - [Protocol parameters](https://docs.sundialprotocol.com/reference/parameters.md): The consensus and ledger parameters of the Sundial L2, with their meanings, design ranges and the constraints between them. - [Reject codes](https://docs.sundialprotocol.com/reference/reject-codes.md): The 21 codes the Sundial L2 node's rule engine reports when it rejects a transaction, with the rule each one enforces and how to fix it. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.