diff --git a/packages/libs/sdk/src/solana/solana.ts b/packages/libs/sdk/src/solana/solana.ts index c098f372..9f83a5bf 100644 --- a/packages/libs/sdk/src/solana/solana.ts +++ b/packages/libs/sdk/src/solana/solana.ts @@ -98,7 +98,7 @@ export class Solana { ): Promise { const payload: PriorityFeeRequestPayload = { method: 'qn_estimatePriorityFees', - params: args, + params: { api_version: 2, ...args }, id: 1, jsonrpc: '2.0', }; diff --git a/packages/libs/sdk/src/solana/types.ts b/packages/libs/sdk/src/solana/types.ts index 629ad90e..63ae9a45 100644 --- a/packages/libs/sdk/src/solana/types.ts +++ b/packages/libs/sdk/src/solana/types.ts @@ -63,6 +63,7 @@ export interface EstimatePriorityFeesParams { last_n_blocks?: number; // The program account to use for fetching the local estimate (e.g., Jupiter: JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4) account?: string; + api_version?: number; } export interface SolanaClientArgs {