diff --git a/docs/2-apis/1-swap-api.md b/docs/2-apis/1-swap-api.md index 81c9f7b0..fa70226b 100644 --- a/docs/2-apis/1-swap-api.md +++ b/docs/2-apis/1-swap-api.md @@ -499,11 +499,9 @@ const transaction = await ( userPublicKey: wallet.publicKey.toString(), dynamicComputeUnitLimit: true, // allow dynamic compute limit instead of max 1,400,000 // custom priority fee - prioritizationFeeLamports: { - priorityLevelWithMaxLamports: { - maxLamports: 10000000, - priorityLevel: "veryHigh" // If you want to land transaction fast, set this to use `veryHigh`. You will pay on average higher priority fee. - } + priorityLevelWithMaxLamports: { + maxLamports: 10000000, + priorityLevel: "veryHigh" // If you want to land transaction fast, set this to use `veryHigh`. You will pay on average higher priority fee. } }) }) diff --git a/docs/2-apis/11-landing-transactions.md b/docs/2-apis/11-landing-transactions.md index 296e2333..f3cbb894 100644 --- a/docs/2-apis/11-landing-transactions.md +++ b/docs/2-apis/11-landing-transactions.md @@ -45,11 +45,9 @@ const { swapTransaction } = await ( dynamicSlippage: { // This will set an optimized slippage to ensure high success rate maxBps: 300 // Make sure to set a reasonable cap here to prevent MEV }, - prioritizationFeeLamports: { - priorityLevelWithMaxLamports: { - maxLamports: 10000000, - priorityLevel: "veryHigh" // If you want to land transaction fast, set this to use `veryHigh`. You will pay on average higher priority fee. - } + priorityLevelWithMaxLamports: { + maxLamports: 10000000, + priorityLevel: "veryHigh" // If you want to land transaction fast, set this to use `veryHigh`. You will pay on average higher priority fee. } }) }) @@ -129,12 +127,10 @@ const { swapTransaction } = await ( body: JSON.stringify({ quoteResponse, userPublicKey: wallet.publicKey.toString(), - prioritizationFeeLamports: { - priorityLevelWithMaxLamports: { - maxLamports: 4000000, - global: false, - priorityLevel: "veryHigh" - } + priorityLevelWithMaxLamports: { + maxLamports: 4000000, + global: false, + priorityLevel: "veryHigh" } }) }) diff --git a/openapi/quoteV6.yaml b/openapi/quoteV6.yaml index 14c86f8a..2e590aaf 100644 --- a/openapi/quoteV6.yaml +++ b/openapi/quoteV6.yaml @@ -267,7 +267,7 @@ components: description: The compute unit price to prioritize the transaction, the additional fee will be `computeUnitLimit (1400000) * computeUnitPriceMicroLamports`. If `auto` is used, Jupiter will automatically set a priority fee and it will be capped at 5,000,000 lamports / 0.005 SOL. type: integer prioritizationFeeLamports: - description: "Prioritization fee lamports paid for the transaction in addition to the signatures fee. Mutually exclusive with compute_unit_price_micro_lamports. If `auto` is used, Jupiter will automatically set a priority fee and it will be capped at 5,000,000 lamports / 0.005 SOL. If `autoMultiplier` (`{\"autoMultiplier\"}: 3}`) is used, the priority fee will be a multplier on the `auto` fee. If `jitoTipLamports` (`{\"jitoTipLamports\": 5000}`) is used, a tip intruction will be included to Jito and no priority fee will be set. If `priorityLevelWithMaxLamports` (`{\"priorityLevelWithMaxLamports\": {\"priorityLevel\": \"high\", \"maxLamports\": 123423}}`) is used, it will suggest a priority fee based on `medium`, `high`, or `veryHigh` automatically with a cap set by `maxLamports`." + description: "Prioritization fee lamports paid for the transaction in addition to the signatures fee. Mutually exclusive with compute_unit_price_micro_lamports. If `auto` is used, Jupiter will automatically set a priority fee and it will be capped at 5,000,000 lamports / 0.005 SOL. If `autoMultiplier` (`{\"autoMultiplier\"}: 3}`) is used, the priority fee will be a multplier on the `auto` fee. If `jitoTipLamports` (`{\"jitoTipLamports\": 5000}`) is used, a tip intruction will be included to Jito and no priority fee will be set. If `priorityLevelWithMaxLamports` (`\"priorityLevelWithMaxLamports\": {\"priorityLevel\": \"high\", \"maxLamports\": 123423}`) is used, it will suggest a priority fee based on `medium`, `high`, or `veryHigh` automatically with a cap set by `maxLamports`. `priorityLevelWithMaxLamports` should not be nested under `prioritizationFeeLamports`" type: integer asLegacyTransaction: description: Default is false. Request a legacy transaction rather than the default versioned transaction, needs to be paired with a quote using asLegacyTransaction otherwise the transaction might be too large.