@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / ExecuteOptions

Interface: ExecuteOptions

Defined in: packages/sdk/src/executor/types.ts:29

Per-call knobs the writer hands an executor. Everything is optional; an executor that has no use for a field ignores it.

Properties

gas?

optional gas?: bigint

Defined in: packages/sdk/src/executor/types.ts:31

Gas ceiling for the transaction (the writer's default when unset). Never estimated.


context?

optional context?: object

Defined in: packages/sdk/src/executor/types.ts:40

What the WRITE does, for error messages: the function name of the last call in the list. Each call names its own functionName and an executor reads that first; this is the fallback for a call that carries none. An executor threads it into the ContractRevertError it raises so a revert reads "placeBinaryOrder reverted: …" rather than naming only the address.

functionName?

optional functionName?: string


parentSpan?

optional parentSpan?: Span

Defined in: packages/sdk/src/executor/types.ts:45

The writer's debug span, so an executor that traces (the built-in ones do) nests its sign/broadcast spans under the write. Foreign executors ignore it.