@somnia-chain/markets-sdk


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

Interface: PreparedAccountExecution

Defined in: packages/sdk/src/smartAccounts.ts:88

A prepared account execution for the sign-now-send-later flow: the signer signs typedData (or digest) HERE, and toCall(signature) is the finished call ANY funded sender may broadcast — your backend, a relayer, a different key. Nothing about it is bound to this client's transport.

Details

Send the resulting call with at least gasFloor gas: safe frames run nested, and EIP-150 makes the execution need a floor of gas REMAINING that no estimate of gas spent supplies. Assert the receipt's status yourself — a hand-rolled send has no writer to do it.

Properties

typedData

readonly typedData: MessageDefinition

Defined in: packages/sdk/src/smartAccounts.ts:94

The EIP-712 payload to sign: the account's own Safe transaction when the signer owns it directly, or the outermost parent's SafeMessage envelope when through names parents. Chain-bound either way.


digest

readonly digest: `0x${string}`

Defined in: packages/sdk/src/smartAccounts.ts:96

The same thing as 32 bytes, for a signer that will not render the payload.


signer

readonly signer: `0x${string}`

Defined in: packages/sdk/src/smartAccounts.ts:98

The address the signature must recover to.


gasFloor

readonly gasFloor: bigint

Defined in: packages/sdk/src/smartAccounts.ts:100

The least gas the broadcast must carry. A floor, not an estimate.

Methods

toCall()

toCall(signature): UnsignedCall

Defined in: packages/sdk/src/smartAccounts.ts:102

Turn the signature into the call. Aimed at the account; any funded sender may broadcast it.

Parameters

signature

`0x${string}`

Returns

UnsignedCall