Interface ExecuteSwapParams

interface ExecuteSwapParams {
    build?: (() => Promise<BuildSwapTxResult>);
    dryRun?: boolean;
    payer: string;
    sendOpts?: {
        maxRetries?: number;
        preflightCommitment?: Commitment;
        skipPreflight?: boolean;
    };
    txBase64?: string;
}

Properties

build?: (() => Promise<BuildSwapTxResult>)
dryRun?: boolean

If true, return the prepared Transaction/VersionedTransaction without sending.

payer: string

Recipient/signer public key (payer).

sendOpts?: {
    maxRetries?: number;
    preflightCommitment?: Commitment;
    skipPreflight?: boolean;
}

Optional: max retries, skip preflight, etc.

txBase64?: string

Pre-built swap tx (base64) OR a builder callback