Block Reference
ANCHOR_ORACLE
Anchor Family
TYPE 0x0506 · ANCHOR FAMILY

ANCHOR_ORACLE

Oracle anchor. Verifies an oracle pubkey and outcome count. Used for DLC oracle attestations, price feed anchoring, and event outcome commitments.

Anchor Invertible
ANCHOR_ORACLE ORACLE_KEY OUTCOME_COUNT pubkey + outcome_count > 0 → SATISFIED
FieldData TypeSizeSideDescription
outcome_countNUMERIC1-4 BConditionsNumber of possible outcomes (must be > 0)

Public key folded into Merkle leaf via merkle_pub_key (PubkeyCountForBlock = 1). No key field in conditions.

No witness fields required. The outcome count is committed in conditions.

0x0506 0 2 PUBKEY · 33B NUMERIC · 3B Conditions = 44 bytes
0x0506 0 0 Witness = 4 bytes (empty block)
Total 48 bytes
1.Extract PUBKEY field for oracle_key (verified via Merkle leaf)
2.If no pubkey field present → ERROR
3.Read outcome_count from NUMERIC field
4.If outcome_count ≤ 0 → UNSATISFIED
5.Otherwise → SATISFIED
ConditionResult
Missing pubkey field (no oracle key)ERROR
Missing NUMERIC fieldERROR
outcome_count ≤ 0UNSATISFIED
Pubkey present + outcome_count > 0SATISFIED
Conditions (oracle with 3 possible outcomes)
{
  "type": "ANCHOR_ORACLE",
  "inverted": false,
  "fields": [
    { "type": "PUBKEY", "hex": "02f1a2b3...oracle public key...33 bytes" },
    { "type": "NUMERIC", "value": 3 }
  ]
}

Anchors an oracle attestation with 3 possible outcomes (e.g., home win, draw, away win). The oracle key identifies who will sign the outcome.

DLC Oracle Attestations
Anchor Discreet Log Contract oracle parameters on-chain. The oracle key identifies the attestor, and the outcome count defines the event space. Contract execution branches are determined by which outcome the oracle signs.
Price Feed Anchoring
Commit a price oracle's key and the number of price buckets on-chain. Enables trustless price-dependent contracts where the oracle attests to which price range was reached, without revealing the exact price.
Event Outcome Commitment
Anchor the parameters for any real-world event with discrete outcomes. Sports results, election outcomes, or weather events can be committed with a specific oracle and outcome count, enabling conditional contract execution.
← ANCHOR_SEAL DATA_RETURN →