UnsignedTx
Defined in: protocol-swap2-core/src/types.ts:152
A provider’s source-leg transaction, before the engine checks and signs it.
Properties
Section titled “Properties”approvalAddress?
Section titled “approvalAddress?”
optionalapprovalAddress?:string
Defined in: protocol-swap2-core/src/types.ts:160
ERC-20 spender that must be approved before the calldata is sent.
bodyBoc?
Section titled “bodyBoc?”
optionalbodyBoc?:string
Defined in: protocol-swap2-core/src/types.ts:173
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/src/types.ts:153
chainId?
Section titled “chainId?”
optionalchainId?:number
Defined in: protocol-swap2-core/src/types.ts:157
optionaldata?:string
Defined in: protocol-swap2-core/src/types.ts:156
gasLimit?
Section titled “gasLimit?”
optionalgasLimit?:string
Defined in: protocol-swap2-core/src/types.ts:158
optionalmemo?:string
Defined in: protocol-swap2-core/src/types.ts:164
Native-chain memo/body required by the deposit protocol.
memoEncoding?
Section titled “memoEncoding?”
optionalmemoEncoding?:"utf8"|"hex"
Defined in: protocol-swap2-core/src/types.ts:167
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).
orderExtension?
Section titled “orderExtension?”
optionalorderExtension?:string
Defined in: protocol-swap2-core/src/types.ts:188
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.
serializedTx?
Section titled “serializedTx?”
optionalserializedTx?:string
Defined in: protocol-swap2-core/src/types.ts:162
Provider-native serialized transaction (for accounts that expose a hook).
stateInitBoc?
Section titled “stateInitBoc?”
optionalstateInitBoc?:string
Defined in: protocol-swap2-core/src/types.ts:175
TON: contract stateInit (base64 BoC) the message must carry, when present.
to:
string
Defined in: protocol-swap2-core/src/types.ts:154
typedData?
Section titled “typedData?”
optionaltypedData?:string
Defined in: protocol-swap2-core/src/types.ts:182
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/src/types.ts:155