Skip to content

Fixed all priorityLevelWithMaxLamports references #576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions docs/2-apis/1-swap-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
})
})
Expand Down
18 changes: 7 additions & 11 deletions docs/2-apis/11-landing-transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
})
})
Expand Down Expand Up @@ -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"
}
})
})
Expand Down
2 changes: 1 addition & 1 deletion openapi/quoteV6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down