@somnia-chain/markets-sdk / index / UnsignedCall
Interface: UnsignedCall
Defined in: packages/sdk/src/writer.ts:110
One unsigned call, ready for any signer: spread into viem's sendTransaction,
wrap as an ERC-4337 UserOp call field, or hand to a relayer.
Deliberately minimal, following BridgeTransaction in the /chains bridge
module: no nonce, no fees, no gas — those are the signer's job, and pinning
them here would stale the moment the call is cached. description is a human
label for a confirmation UI.
Unlike BridgeTransaction there is no chainId: these calls are always on the
chain the client is already connected to, whereas a bridge leg is explicitly
cross-chain. Note value is a bigint, so JSON.stringify throws on it —
convert it yourself if the call crosses a serialization boundary.
Properties
to
to:
`0x${string}`
Defined in: packages/sdk/src/writer.ts:112
Contract to call.
data
data:
`0x${string}`
Defined in: packages/sdk/src/writer.ts:114
ABI-encoded calldata.
value
value:
bigint
Defined in: packages/sdk/src/writer.ts:116
Native value to attach, in wei. 0n unless the call pays native.
description
description:
string
Defined in: packages/sdk/src/writer.ts:118
What this call does, for a UI to label a confirmation with.