# Choose a rule the ledger already understands.

LDGR recognizes named declarative models with fixed validation rules. There is no uploaded bytecode or general-purpose contract VM. Each signed action settles through the authoritative ledger.

## Fund locks and explicit claims

Opening a normal fund lock burns the live native contract-opening fee in addition to collateral. Exact asset codes and decimal strings identify the funds. Time usually gates an action: vesting and subscription claims still require a fresh signature. Scheduled splits and AMM reprice schedules are the bounded autonomous exceptions, using only prepaid funds and fees.

**Claimable distribution `claim_distribution_v1`**

The funder prepays 1-64 unique Ed25519 recipient allocations in one asset. Recipients independently claim their entire fixed allocation once before expiry. Only the funder recovers unclaimed funds at or after expiry. Claims and refunds are fee-free; no early cancellation or mutable allocations.

**Ordered milestone escrow `milestone_escrow_v1`**

The payer prepays 2-16 ordered steps for a different beneficiary. Only the payer can approve the next step before the single expiry; approval immediately pays it. At or after expiry, the payer refunds only the remaining escrow. Released payments stay final; there is no early cancellation or arbitration.

**Payment escrow `escrow_v1`**

The payer locks an exact asset amount for a fixed payee and expiry. The payer signs release before expiry or reclaims the funds after expiry.

**Hash and time lock `htlc_v1`**

The funder locks funds for a recipient under a SHA-256 hashlock and expiry. The recipient claims with the preimage; the funder refunds after expiry. Funder and recipient may be the same address.

**Threshold payment `multisig_v1`**

The funder locks funds for a fixed payee and listed signers. Signed approvals automatically release the payment at the threshold; the funder can refund after expiry.

**Vesting `vesting_v1`**

The beneficiary explicitly claims newly unlocked funds, linear between the cliff and end time. Nothing unlocks before the cliff; the full amount unlocks at the end. There is no funder clawback, and self-locks are supported.

**Prepaid subscription `subscription_lock_v1`**

The payer locks periodAmount × periodCount for a different payee. The payee explicitly claims one unlocked period at a time, starting at startAt. Payer cancellation refunds the unclaimed remainder. A plan-bound opening must match an active merchant plan; this never authorizes later wallet debits.

**Atomic split `split_payment_v1`**

The funder locks exact amounts for 2–16 distinct recipients. Positive shares sum to the locked amount. The funder signs one atomic release before expiry or refunds after expiry; streaming is unsupported.

**Scheduled split `scheduled_split_v1`**

The owner pre-funds one asset for 1–120 dated releases to 1–16 fixed recipients with positive integer weights, plus a separate native fee reserve. The ledger alarm releases due steps at most once; the final recipient receives rounding remainder. Insufficient fees pause before movement. Owner cancellation refunds residual funds; completion returns unused reserve.

**Secret gift `gift_v1`**

The funder locks 1–8 assets under a globally unique SHA-256 secret hash and expiry, without a fixed recipient. Anyone with the secret signs a claim into their own address before expiry; the funder refunds after expiry. Claim and refund are fee-free. Claiming reveals the secret publicly, and its hash cannot be reused.

## Atomic fungible offers

`atomic_offer_v1` lets a maker lock an exact fungible amount for one fixed taker in exchange for an exact amount of a different asset. Both asset codes, both amounts, expiry and native fee caps are immutable terms. Only that taker can accept before expiry: payment to the maker and collateral to the taker settle together or neither settles.

The maker can cancel before expiry or refund at or after expiry, without a cancellation or refund fee. Opening burns the capped live native contract-opening fee; acceptance burns one capped live native transfer fee paid by the taker. All actions use the actor's native nonce, including token-for-token exchanges.

The extension and Web Wallet support creating a fixed-taker offer and loading an offer by contract ID. Explicit review shows the immutable terms before local signing. Browser integrations use typed `openAtomicOffer`, `acceptAtomicOffer`, `cancelAtomicOffer` and `refundAtomicOffer` provider methods; backends use the corresponding `@ldgr/client` methods and `getAtomicOffer`. There is no public orderbook or arbitrary-taker offer.

## Markets, inventory and bounded automation

**Inventory bridge `issuer_bridge_v1`**

A user-token issuer pre-funds inventory. Attested deposits credit recipients from that inventory; withdrawals hold funds pending release, and attested settlement returns them to inventory. A user can cancel a pending withdrawal, reclaiming the lock while its processing fee stays burned. Opening and processing use dedicated bridge fees. This does not mint bridge tokens or change the token's bridge policy.

**Constant-product pool `amm_v1`**

Fixed pool rules support exact-input swaps, proportional liquidity, LP fee claims, and authorized pool administration. The current owner controls supported fee changes, repricing, closure and ownership transfer. Signed swaps enforce minimum output; no uploaded trading program runs.

**Prepaid repricing `amm_reprice_schedule_v1`**

The pool owner locks trade escrow and a separate native fee reserve for capped reprices toward a fixed ratio or resolved USD-oracle target. Ledger alarms and an optional after-swap hook use only this budget. Safety failures pause execution. The original owner can cancel or resume eligible schedules and increase the per-cycle run limit up to 10,000. Optional auto-renew repeats windows from remaining prepaid funds; it never debits the wallet or guarantees a peg.

**NFT market offer `nft_market_offer_v1`**

A buyer-funded offer locks payment for an existing NFT and its bound seller. Acceptance is allowed through the exact expiry millisecond: the seller must still own the item and sign acceptance. Payment and NFT ownership move atomically, and the seller pays the live native transfer fee. The buyer may cancel strictly before expiry or refund strictly after expiry. There are no platform fees, royalties, auctions or seller listings in this model.

## Adjacent named subsystems, not fund locks

**Merchant plan `subscription_plan_v1`**

A reusable merchant catalog row defines tier, asset and prepaid period terms. Merchants can update display fields or deactivate new subscriptions without stopping existing locks. Entitlement follows the prepaid wall-clock window unless cancelled; completing claims early does not end access early.

**NFT ownership `nft_v1`**

Collections and items record distinct ownership rather than fungible balances. Issuers mint and owners transfer; mint-time item metadata is immutable. A single-item collection uses the same subsystem. NFT offers are the separate funded model above.

**Usernames `name_registry_v1`**

Renewable, transferable, expiring usernames resolve to Bech32 owners. Owners may set a primary name; expired names can be reclaimed. These are neither NFTs nor proof of a service's identity.

**Public objects `object_v1` and key bindings `keymap_v1`**

Owners create and update public JSON records and bind namespace/key pairs to owned objects. These records store public data, not executable programs, private secrets or fund locks. Their signed actions use native fees and nonce lanes.

These model names describe supported ledger behavior. Not every subsystem carries a literal template field in its signed payload. Ordinary transfers and payment-verification helpers are separate actions and APIs.

Review the authority and the receipt

User keys stay in local wallets. Read canonical live terms before signing; indexed discovery can lag settlement. Use the settled transaction hash as the receipt, with the exact network and asset codes. A contract ID identifies the record and is not a substitute for its transaction hash.

[Claimable distribution lifecycle →](/docs/guides/claim-distributions)[Milestone escrow lifecycle →](/docs/guides/milestone-escrow)[Verify merchant payments →](/docs/guides/payments)[Scheduled split lifecycle →](/docs/guides/scheduled-splits)[Reprice schedule limits →](/docs/guides/amm-reprice-schedules)[Bridge authority boundaries →](/docs/guides/bridges)[Developer recipes →](/docs/developers/cookbook)
