Programmable Bitcoin vaults

Put capital to work inside your application. Vaults hold and allocate Bitcoin and assets under terms written into them, without wrapping your Bitcoin or moving it to another chain.

Explore vaults
covered_call.arkArkade ScriptExcerpt · Source
contract CoveredCall(  // …  int strike,  int collateral,  int expiry,  // …) {  // Holder amount is collateral * (ST - K) / ST when ST is above the strike.  function settle() {    Option.open(strike, collateral, expiry, beaconTxid, beaconGidx);    int st = Option.price(expiry);    int ph = 0;    if (st > strike) {      ph = collateral * (st - strike) / st;    }    Option.pay(ph, collateral, readFee, holderScript, writerScript);  }  // …}
BTC covered callOption contractSettled
Strike$120,000.00
Collateral0.50000000 BTC
Expiry27 Mar 2027, 08:00 UTC
Settles onSigned BTC/USD price
Signed price$123,840.00
Holder receives0.01550387 BTC
You keep0.48448613 BTC

What a Bitcoin vault is

A Bitcoin vault holds capital and releases it only on the terms written into it: who can spend, when, and where the funds can go. The terms define the product, whether a lending pool, a yield vault running the strategy you choose, or an escrow. Within Arkade, every spend is checked against them before it settles on Bitcoin.

  1. 1

    Native Bitcoin, never wrapped Collateral never leaves Bitcoin: no wrapped BTC, no bridge, no other chain.

  2. 2

    Outcomes you can verify Every path the funds can take is set from the start, so each participant can check all of them before joining.

  3. 3

    Hybrid execution Run a vault fully onchain, or execute it offchain and settle on Bitcoin. Its terms hold the same way in both.

What you can build

  1. 01

    Bitcoin-backed lending

    Lending pools where lenders deposit stablecoins and earn yield on every loan, and borrowers draw against collateral that never leaves Bitcoin.

    lending_pool.ark
    function borrow(int take) {  // …  int coll = tx.inputs[1].assets.lookup(collTxid, collGidx);  require(coll >= take * satsPerUnit, "collateral");
  2. 02

    Bitcoin yield vaults

    Vaults that earn yield on native Bitcoin from the strategy written into them, such as writing covered calls or puts, with each payoff settled on a signed BTC/USD price.

    covered_call.ark
      if (st > strike) {    ph = collateral * (st - strike) / st;  }
  3. 03

    Bitcoin escrow

    Release on delivery or a signed outcome, or refund on timeout.

    escrow.ark
    function cancel() {  // …  require(checkTime(timeoutAt), "timeout not reached");

Frequently asked questions

A Bitcoin vault holds Bitcoin and assets and releases them only on the terms written into it: who can spend, when, and where the funds can go. Those terms can make it a lending pool, a yield vault running the strategy you choose, or an escrow, and Arkade lets you build any of them on Bitcoin today.

Not within Arkade, where vaults work on Bitcoin today with Taproot, without consensus changes. Proposals such as OP_VAULT (BIP 345) would add one kind of vault to Bitcoin itself. A vault within Arkade can take whatever terms you write into it, for lending, yield or an escrow.

A lending vault holds the lenders' stablecoins and the borrowers' collateral under the terms written into it, and that collateral never leaves Bitcoin. Borrowers draw stablecoins against it at a rate set when the vault is created, and repay with a fee that goes back to the pool the lenders hold shares in.

A lending vault pays its lenders a fee on every loan. A yield vault earns from the strategy written into it: writing covered calls on the Bitcoin it holds, for example, earns premiums and gives up the upside above the strike. The vault fixes each payoff and settles it on a signed price.

Yes. A covered call or a put locks the writer's collateral in a vault. The vault's terms fix the payoff, and the option settles on a signed BTC/USD price at expiry. Neither side hands Bitcoin to a custodian.

The payment sits in a vault that releases it to the seller on delivery or a signed outcome, and returns it to the buyer if the timeout passes first.

No. A vault within Arkade holds native Bitcoin, with no wrapped token to mint, no bridge to trust and no other chain to move to. Every spend from the vault settles on Bitcoin.

The terms written into the vault. The Arkade operator checks every spend against them before it cosigns, so a spend that breaks them can't settle, and the operator can't take funds.

No. A fixed-party vault names its parties when it's created, as an escrow does. A tokenized vault has open membership: it issues claims as assets that anyone holding them can redeem, which is how positions in a lending pool change hands.

Start in the docs: build, fund and spend a first vault with the Arkade SDK, then adapt one of the templates for escrow, savings, options, lending and more.

Explore the docs

Build your first Bitcoin vault

Write your first vault, start from a template, or settle one against signed prices.

Explore the docs
  1. Your first vault01Build, fund and spend a savings vault.
  2. Vault templates02Escrow, options, lending and more.
  3. Signed prices03Settle a vault against an oracle.

Launching a product? Ark Labs works with exchanges, custodians and treasuries on Options Vaults and Lending Vaults.