Repository navigation
Bid a fee from fee stats instead of the minimum in Java examples - #3110
Merged
Merged
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Contributor
|
yes, please make a separate PR to update the |
ElliotFriend
approved these changes
Nov 11, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated message from the Stellar Triage Bot.
Refs #3106
Working this because @oceans404 asked with /triage, and @ElliotFriend chose one PR per language. This is the Java PR. Python is #3108 and Go is #3109.
The Java examples now bid the fee-stats p90, capped at
maxFee, in place ofTransaction.MIN_BASE_FEEor100. This matches the JavaScript change in #3107.getFeeStats():getInclusionFee()for classic transactions,getSorobanInclusionFee()for contract calls.feeStats().execute().getFeeCharged().getP90().Fixed in blocks this PR already edits:
working-with-contract-specs.mdx: thehelloexample set no base fee and no timeout. The Java SDK requires both, sobuild()failed. It now sets both.create-account.mdxcalledSorobanServer.loadAccount, which does not exist. It now callsgetAccount.Not fixed: the rest of the Java block on
create-account.mdxstill does not compile. Its wildcard imports oforg.stellar.sdk.*andorg.stellar.sdk.xdr.*clash onTransactionandAsset. Fixing that means rewriting the block. I can do that in a separate PR if you want it.Verified against java-stellar-sdk 6.0.0 source:
GetFeeStatsResponseandFeeStatsResponsep90areLong,setBaseFee(long), and both fee-stats calls throw only unchecked exceptions. I also checked the live testnet RPC and Horizon responses. The issue cites no version. Two pages pin 3.1.0 in a comment.getFeeStats(),getAccount(), theLong p90fields andsetBaseFee(long)are the same in 3.1.0.Not verified: I did not compile the Java code. No JDK is available in this lane.
Merge order: #3107 first. This PR overlaps #3107 on 7 pages (all but
working-with-contract-specs.mdxandinvoke-contract-tx-sdk.mdx), #3108 on 8 pages and #3109 on 4 pages. The edits are in other code blocks.pnpm checkpasses.pnpm check:linksreports only the known broken links in.mintlify/skills/.