Skip to main content
One oracle coin can be spent once per Arkade transaction. Several contracts cannot each spend it on their own unless they share that spend or the coin is split. Share the spend when one keeper can settle the contracts together. Split the coin only when separate keepers must read it at the same time.

Shared Spend

One Arkade transaction spends the oracle coin once and settles N consumer contracts with it. A contract such as DiaBtcUsdOracle.verify (DIA BTC/USD Live Oracle) already allows more than one input and continues the coin on output 0. Some consumers hardcode the oracle at input 1 and payouts at outputs 1 and 2, as Loans does. Those contracts need an input index plus a monotonic output cursor, so two of them cannot claim the same payout output. A keeper can batch signatureless spends, and script size and PSBT size bound a practical batch to about 8 to 32. Only the oracle input uses OP_CHECKSIGFROMSTACK.

Splitting the Coin

Persistent shards of a stateless coin need a guard that exactly one unit of the oracle asset enters and leaves. Without that guard, a second unit can escape to a wallet. Shards do not fit a stateful single-print beacon such as DIA BTC/USD Expiry Oracle. A master coin that mints burn-on-read clones is the heavier path when a consumer also needs output 0, such as a lending pool or an automated market maker.