Skip to content

doc: fix txnbuild basic example timebounds usage#5917

Open
kevinsheth wants to merge 4 commits intostellar:mainfrom
kevinsheth:doc/fix-txnbuild-timebounds-preconditions
Open

doc: fix txnbuild basic example timebounds usage#5917
kevinsheth wants to merge 4 commits intostellar:mainfrom
kevinsheth:doc/fix-txnbuild-timebounds-preconditions

Conversation

@kevinsheth
Copy link
Copy Markdown

What

Updates docs/reference/examples.md to set time bounds via
TransactionParams.Preconditions.TimeBounds in the basic txnbuild example.

Why

The previous snippet used Timebounds directly in TransactionParams, which is outdated.
Current txnbuild usage sets time bounds under Preconditions, so this change prevents confusion
for developers following the example.

Known limitations

N/A (docs-only change).

Copilot AI review requested due to automatic review settings March 12, 2026 15:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the txnbuild “Create an account” basic example to use the current txnbuild API for setting time bounds via TransactionParams.Preconditions.TimeBounds instead of the deprecated/older TransactionParams.Timebounds field.

Changes:

  • Replace TransactionParams.Timebounds usage with TransactionParams.Preconditions.TimeBounds in the Go example.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

@Shaptic Shaptic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thank you!

@Shaptic Shaptic enabled auto-merge (squash) March 14, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants