@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / native / SessionTransactionRequest

Interface: SessionTransactionRequest

Defined in: packages/sdk/src/native/types.ts:222

A transaction to submit through a session — the node derives the key from seed, assigns the nonce, signs, submits, retries, and returns the receipt.

⚠️ seed is a secret with the authority of a private key: anyone who knows it controls the derived account (the derivation is public — see sessionAddress). Treat it exactly as you would a key.

Properties

seed

seed: `0x${string}`

Defined in: packages/sdk/src/native/types.ts:224

32-byte seed identifying the session, and therefore the sending account.


gas

gas: bigint

Defined in: packages/sdk/src/native/types.ts:226

Execution gas limit. Required — the node does not estimate it.


to?

optional to?: `0x${string}`

Defined in: packages/sdk/src/native/types.ts:228

Recipient. Omit to deploy a contract (data is then the init code).


value?

optional value?: bigint

Defined in: packages/sdk/src/native/types.ts:230

Native value to send, in wei. Defaults to 0.


data?

optional data?: `0x${string}`

Defined in: packages/sdk/src/native/types.ts:232

Calldata, or contract init code when to is omitted. Defaults to empty.