Skip to content
docs

zeroExPreflightDeposit

zeroExPreflightDeposit(quote, tx, ctx): Promise<void>

Defined in: protocol-swap2-0x/src/provider.ts:612

The device’s last check before the engine signs a 0x swap, run by the preflightDeposit of both providers (in remote mode before the backend’s own preflight is asked): the transaction must be the quoted one, its gas limit (when it carries one) within the chain’s cap, and its target must still be a Settler the registry names now — a fresh read through resolver (the device’s own RPC), so a Settler paused, replaced or removed since the quote (on the review screen, during an approval) is refused here, with nothing signed or sent.

Quote

UnsignedTx

Readonly<Record<number, ZeroExChain>>

SettlerResolver

Promise<void>