Table of Contents

Enum ContractScope

Namespace
NArk.Abstractions.Contracts
Assembly
NArk.Abstractions.dll

Identifies the layer a contract's funds live on: on-chain (a boarding UTXO, synced/swept via Esplora/NBXplorer) or off-chain (a VTXO, synced via the Arkade indexer). A contract whose funds can appear on both layers uses Onchain | Offchain.

[Flags]
public enum ContractScope

Fields

Offchain = 2

Funds live off-chain (a VTXO synced via the Arkade indexer).

Onchain = 1

Funds live on-chain (a boarding UTXO).

Remarks

Query this only via the bitwise form (Scope & X) == X, which EF Core translates to SQL across Npgsql, SQLite and SqlServer. A value carrying both flags therefore satisfies an Onchain-include and an Offchain-include filter alike. Never use HasFlag: EF Core does not translate it (it client-evaluates or throws).