@somnia-chain/markets-sdk


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

Interface: CancelAllOrdersSent

Defined in: packages/sdk/src/trade.ts:752

Result of Trader.cancelAllOrders when orders were resting and a cancel transaction went out. Carries everything CancelOrdersResult does.

Extends

Properties

hash

hash: `0x${string}`

Defined in: packages/sdk/src/trade.ts:126

The transaction hash.

Inherited from

CancelOrdersResult.hash


receipt

receipt: TransactionReceipt

Defined in: packages/sdk/src/trade.ts:128

The mined receipt (status, gas used, logs).

Inherited from

CancelOrdersResult.receipt


executionTimeMicros?

optional executionTimeMicros?: number

Defined in: packages/sdk/src/trade.ts:139

Node-side end-to-end time of the write in microseconds: from the node receiving the send to its answer, which covers mempool, finality and execution inside Somnia. Set when the node reports it with the receipt (eth_sendRawTransactionSync and session sends on a current Somnia node, or an executor that passes it through). Absent on an older node, on the eth_sendRawTransaction fallback, and for a wallet-client send. For a write with prerequisites (an approval first), it times the last transaction only.

Inherited from

CancelOrdersResult.executionTimeMicros


outcomes

outcomes: BatchCancelOutcome[]

Defined in: packages/sdk/src/trade.ts:697

Per-id outcomes, index-aligned with the orderIds input.

Inherited from

CancelOrdersResult.outcomes


sent

sent: true

Defined in: packages/sdk/src/trade.ts:754

Always true here: a cancel transaction was broadcast.


orderIds

orderIds: bigint[]

Defined in: packages/sdk/src/trade.ts:756

The ids the read found resting, in the order they were sent to the pool.