@arkade-os/sdk Documentation - v0.5.0-rc.11
    Preparing search index...

    Variable UnilateralExitConst

    UnilateralExit: {
        estimate: (opts: ExitOptions) => Promise<ExitQuote>;
        execute: (
            wallet: Wallet,
            pkg: ExitPackage,
            opts?: ExecutorOptions & { provider?: OnchainProvider },
        ) => Promise<Executor>;
        Executor: typeof Executor;
        prepare: (opts: ExitOptions) => Promise<ExitPackage>;
    } = ...

    Pre-signed unilateral exit.

    estimate quotes the cost (tx count, fees, funding required) without touching funds; prepare signs every transaction needed to land the VTXOs onchain and broadcasts the fee-funding splitter; Executor drives the resulting package to completion with nothing but an Esplora-compatible endpoint — no keys, no Arkade infrastructure.

    execute is the wallet-side shorthand for that last step: the same executor, with the exit observer wired so the wallet's own repository re-reads each outpoint as its branch confirms and again as its sweep does — picking the exit up as it lands, indexer lag permitting. See exitObserverFor for why that is a prompt rather than a guarantee.

    Type Declaration