From 5f7a01889dc874509b302e71fd7e467a03d45c2e Mon Sep 17 00:00:00 2001 From: John Mitsch Date: Tue, 17 Dec 2024 15:10:05 -0500 Subject: [PATCH] Update to use api_version 2 for solana prio fee api --- packages/libs/sdk/src/solana/solana.ts | 2 +- packages/libs/sdk/src/solana/types.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 {