UnsignedTx
Defined in: protocol-swap2-core/dist/types.d.ts:151
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/dist/types.d.ts:159
ERC-20 spender that must be approved before the calldata is sent.
bodyBoc?
Section titled “bodyBoc?”
optionalbodyBoc?: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
chainId?
Section titled “chainId?”
optionalchainId?:number
Defined in: protocol-swap2-core/dist/types.d.ts:156
optionaldata?:string
Defined in: protocol-swap2-core/dist/types.d.ts:155
gasLimit?
Section titled “gasLimit?”
optionalgasLimit?:string
Defined in: protocol-swap2-core/dist/types.d.ts:157
optionalmemo?:string
Defined in: protocol-swap2-core/dist/types.d.ts:163
Native-chain memo/body required by the deposit protocol.
memoEncoding?
Section titled “memoEncoding?”
optionalmemoEncoding?:"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).
orderExtension?
Section titled “orderExtension?”
optionalorderExtension?: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.
serializedTx?
Section titled “serializedTx?”
optionalserializedTx?:string
Defined in: protocol-swap2-core/dist/types.d.ts:161
Provider-native serialized transaction (for accounts that expose a hook).
stateInitBoc?
Section titled “stateInitBoc?”
optionalstateInitBoc?: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
typedData?
Section titled “typedData?”
optionaltypedData?: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