Skip to content

fix: switch default NEAR RPC from rpc.near.org to FastNEAR - #513

Open
r-near wants to merge 1 commit into
release/v0.23.0-stablefrom
fix/legacy-fastnear-rpc
Open

r-near wants to merge 1 commit into
release/v0.23.0-stablefrom
fix/legacy-fastnear-rpc

Conversation

@r-near

@r-near r-near commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

Backports the RPC change from 7a2c620 (already on main) to the legacy omni-bridge-sdk release branch.

  • Mainnet: https://rpc.near.org → https://free.rpc.fastnear.com
  • Testnet: https://rpc.testnet.near.org → https://test.rpc.fastnear.com
  • Patch changeset for omni-bridge-sdk

NearWalletSelectorBridgeClient makes view calls (balances, storage) through addresses.near.rpcUrls before signAndSendTransaction(s). On rpc.near.org each call takes ~3s (vs ~0.2s on FastNEAR), which pushes the wallet popup outside the user-gesture window, so browsers block it.

@changeset-bot

changeset-bot Bot commented Sep 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 906bd83

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

This PR includes changesets to release 1 package
Name Type
omni-bridge-sdk 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-29T17:08:14.274837Z 906bd83 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 4/5

[Medium risk] Switches the default blockchain RPC endpoint for NEAR.

The PR appears safe to merge, with a non-blocking gap in regression coverage for the changed mainnet RPC path.

Summary

This backport changes the default NEAR RPC URLs to FastNEAR for mainnet and testnet, updates configuration assertions, and adds a patch changeset. The remaining review concern is coverage of the mainnet and wallet-selector paths that motivate the change.

Reviews (1) · Last reviewed commit: "fix: switch default NEAR RPC from rpc.ne..."

Comment thread src/config.test.ts
setNetwork("mainnet")
expect(addresses.near.contract).toBe("omni.bridge.near")
expect(addresses.near.rpcUrls).toEqual(["https://rpc.near.org"])
expect(addresses.near.rpcUrls).toEqual(["https://free.rpc.fastnear.com"])

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Mainnet RPC behavior remains untested

This assertion checks the new URL string, but it does not exercise the mainnet FastNEAR endpoint or the wallet-selector view calls whose latency motivates the change. The existing live decimals test covers testnet only. A slow or incompatible mainnet endpoint could therefore pass the suite unnoticed; please add coverage for the mainnet RPC path and the relevant wallet-selector calls.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Fix in Claude Code Fix in Codex

This branch has not been deployed

No deployments
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.

1 participant