@somnia-chain/markets-sdk / index / TransactionActivityOptions
Type Alias: TransactionActivityOptions
TransactionActivityOptions =
object
Defined in: packages/sdk/src/activity.ts:389
Options for SomniaMarketsClient.getTransactionActivity.
Properties
limit?
optionallimit?:number
Defined in: packages/sdk/src/activity.ts:391
Max rows per event stream (default 100).
anchor?
optionalanchor?:object
Defined in: packages/sdk/src/activity.ts:414
The transaction's block and timestamp.
A PERFORMANCE FIX, not a filter. Without it, a transaction that produced no
event — one that only PLACED orders, common on a live book — can be found
only by probing Order.placedTxHash, and that column carries no index:
measured, the probe runs past the gateway timeout and the read fails
outright. The anchor skips the probe and goes straight to the
timestamp-anchored pass, which IS index-served.
WHAT IT DOES NOT FIX: a transaction that only CANCELLED orders stays
unreadable by hash, and no anchor can change that. The indexer stores no
cancellation record and Order carries only placedTxHash, so nothing in
it is keyed by a cancel's own hash — the anchor turns that read from a
timeout into a fast, honest "nothing indexed". Making those transactions
readable needs an append-only order-update entity in the indexer.
Normally left unset: the configured owner resolves it from its own transport. Pass it only when the block and timestamp are already in hand; both fields or neither, since the block names the transaction and the timestamp serves the query.
blockNumber
blockNumber:
bigint
timestamp
timestamp:
bigint