Skip to content
docs

UnsignedTx

Defined in: protocol-swap2-core/dist/types.d.ts:151

A provider’s source-leg transaction, before the engine checks and signs it.

optional approvalAddress?: string

Defined in: protocol-swap2-core/dist/types.d.ts:159

ERC-20 spender that must be approved before the calldata is sent.


optional bodyBoc?: string

Defined in: protocol-swap2-core/dist/types.d.ts:172

TON: serialized message-body CELL (base64 BoC) — e.g. an Omniston escrow payload. NOT interchangeable with memo: a memo is a text comment, while sending a BoC as text strands the swap. Executors must decode it to a Cell.


chain: string

Defined in: protocol-swap2-core/dist/types.d.ts:152


optional chainId?: number

Defined in: protocol-swap2-core/dist/types.d.ts:156


optional data?: string

Defined in: protocol-swap2-core/dist/types.d.ts:155


optional gasLimit?: string

Defined in: protocol-swap2-core/dist/types.d.ts:157


optional memo?: string

Defined in: protocol-swap2-core/dist/types.d.ts:163

Native-chain memo/body required by the deposit protocol.


optional memoEncoding?: "utf8" | "hex"

Defined in: protocol-swap2-core/dist/types.d.ts:166

How memo becomes bytes on chains whose memo is a byte field (Tron raw_data.data): ‘utf8’ text (default) or ‘hex’ — a binary payload given as 0x-hex (a Chainflip vault-swap note).


optional orderExtension?: string

Defined in: protocol-swap2-core/dist/types.d.ts:187

Typed-order execution: the order extension (0x-hex) the order’s salt commits to — a 1inch Limit Order Protocol order’s amount getters and post-interaction, where an HTLC order’s escrow terms live. Carried so an app can open a remote build on the client (omnistonVerifyBuild, scan 2026-10-28 F6); the signature covers it through the salt.


optional serializedTx?: string

Defined in: protocol-swap2-core/dist/types.d.ts:161

Provider-native serialized transaction (for accounts that expose a hook).


optional stateInitBoc?: string

Defined in: protocol-swap2-core/dist/types.d.ts:174

TON: contract stateInit (base64 BoC) the message must carry, when present.


to: string

Defined in: protocol-swap2-core/dist/types.d.ts:153


optional typedData?: string

Defined in: protocol-swap2-core/dist/types.d.ts:181

GASLESS typed-order execution (Omniston EVM-source): the JSON EIP-712 payload the account must sign — there is NO source transaction. After signing, complete via CrossChainProvider.registerSignedOrder. When set, approvalAddress names the settlement contract that needs allowance.


value: string

Defined in: protocol-swap2-core/dist/types.d.ts:154