Skip to content

fix: attach finalized blockHash to transactions created from Account.createTransaction#1818

Merged
gagdiez merged 1 commit into
masterfrom
attach-finalized-block-to-tx
Jan 20, 2026
Merged

fix: attach finalized blockHash to transactions created from Account.createTransaction#1818
gagdiez merged 1 commit into
masterfrom
attach-finalized-block-to-tx

Conversation

@denbite

@denbite denbite commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

Pre-flight checklist

  • I have read the Contributing Guidelines on pull requests.
  • Commit messages follow the conventional commits spec
  • If this is a code change: I have written unit tests.
  • If this changes code in a published package: I have run pnpm changeset to create a changeset JSON document appropriate for this change.
  • If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

Motivation

This PR attaches the finalized blockHash to transactions created using Account.createTransaction to prevent TransactionExpiredError errors.

Previously, transactions could be created with a blockHash that had not yet fully propagated across the network. In some cases, receiver RPC nodes were unable to look up the referenced block, resulting in TransactionExpiredError failures (often due to a small propagation delay of a few milliseconds).

Test Plan

Related issues/PRs

@changeset-bot

changeset-bot Bot commented Jan 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a82e47f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
near-api-js Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gagdiez gagdiez merged commit d4c270f into master Jan 20, 2026
4 checks passed
@gagdiez gagdiez deleted the attach-finalized-block-to-tx branch January 20, 2026 22:32
@github-project-automation github-project-automation Bot moved this from NEW❗ to Shipped 🚀 in DevTools Jan 20, 2026
@github-actions github-actions Bot mentioned this pull request Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Shipped 🚀

Development

Successfully merging this pull request may close these issues.

3 participants