@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / reactivity / DEFAULT_SUBSCRIPTION_OPTIONS

Variable: DEFAULT_SUBSCRIPTION_OPTIONS

const DEFAULT_SUBSCRIPTION_OPTIONS: object

Defined in: packages/sdk/src/reactivity/index.ts:91

Callback gas/fee options for a subscription that doesn't care: no tip, a 20 gwei ceiling, 10M gas per callback. These are the protocol's own defaults (SomniaExtensions.DEFAULT_*), spelled out here because upstream's published build ships defaultSubscriptionOptions at runtime but leaves it out of its type declarations — a test pins these values against upstream's.

The precompile's own rules on these: gasLimit must be in (0, 200_000_000], and a non-zero maxFeePerGas must sit at least 6 gwei above priorityFeePerGas (pass 0 to skip that check).

Type Declaration

priorityFeePerGas

readonly priorityFeePerGas: 0n = 0n

maxFeePerGas

readonly maxFeePerGas: 20000000000n = 20_000_000_000n

gasLimit

readonly gasLimit: 10000000n = 10_000_000n