Skip to content

Commit

Permalink
Update to use api_version 2 for solana prio fee api
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpmitsch committed Dec 17, 2024
1 parent 3c465d8 commit 5f7a018
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/libs/sdk/src/solana/solana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class Solana {
): Promise<PriorityFeeResponseData> {
const payload: PriorityFeeRequestPayload = {
method: 'qn_estimatePriorityFees',
params: args,
params: { api_version: 2, ...args },
id: 1,
jsonrpc: '2.0',
};
Expand Down
1 change: 1 addition & 0 deletions packages/libs/sdk/src/solana/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5f7a018

Please sign in to comment.