@drift-labs/sdk
Version:
SDK for Drift Protocol
12 lines (11 loc) • 423 B
TypeScript
import type { AccountMeta, PublicKey, TransactionInstruction } from '@solana/web3.js';
import type { DriftProgram } from '../../config';
export declare function buildSettlePnlInstruction(args: {
program: DriftProgram;
marketIndex: number;
state: PublicKey;
authority: PublicKey;
user: PublicKey;
spotMarketVault: PublicKey;
remainingAccounts: AccountMeta[];
}): Promise<TransactionInstruction>;