@somnia-chain/markets-sdk


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

Interface: AmendOrdersResult

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

Result of a batch amend — the ids of the replacement orders.

Extends

Properties

hash

hash: `0x${string}`

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

The transaction hash.

Inherited from

TxResult.hash


receipt

receipt: TransactionReceipt

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

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

Inherited from

TxResult.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

TxResult.executionTimeMicros


newOrderIds

newOrderIds: bigint[]

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

New order ids, index-aligned with the submitted amendments. Reconstructed from OrderPlaced logs, since the pool's uint128[] return is not readable from a receipt.

0n means the id could not be reconstructed — the receipt carried fewer OrderPlaced events than there were amendments. It does not mean the replacement failed to rest: OrderPlaced fires for every accepted order, including one that fills completely and never reaches the book (OrderRested is the rest-only event). Amend is all-or-nothing, so in a successful tx every slot is populated.


fills

fills: OrderFill[]

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

Fills executed by the replacement orders.