From 3851ef370339d4a049a28340931512ae0d571e7c Mon Sep 17 00:00:00 2001 From: Nathan DM Date: Wed, 18 Mar 2026 16:47:35 +0100 Subject: [PATCH] feat: add optional svmPriorityFeeLevel api param --- src/api.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/api.ts b/src/api.ts index 72c81e9f..10e7805b 100644 --- a/src/api.ts +++ b/src/api.ts @@ -22,6 +22,12 @@ import type { TokenTag, } from './tokens/index.js' +export enum SVMPriorityFeeLevel { + NORMAL = 'NORMAL', + FAST = 'FAST', + ULTRA = 'ULTRA', +} + /** * Used as a bigint replacement for TransactionRequest because bigint is not serializable */ @@ -167,6 +173,9 @@ export interface RouteOptions extends RouteOptionsBase { /** SVM specific option, wallet to sponsor tx costs */ svmSponsor?: string + /** SVM specific option, priority fee level */ + svmPriorityFeeLevel?: SVMPriorityFeeLevel + /** Mayan specific option to bridge from non-EVM chain to Hyperliquid */ mayanNonEvmPermitSignature?: boolean @@ -385,6 +394,9 @@ export interface QuoteRequest extends ToolConfiguration, TimingStrings { /** SVM specific option, wallet to sponsor tx costs */ svmSponsor?: string + /** SVM specific option, priority fee level */ + svmPriorityFeeLevel?: SVMPriorityFeeLevel + /** Preset configuration for stablecoin routing optimization * When provided, this preset will override other route options with optimized settings */ preset?: string