fix(sdk-coin-sui): use live JSON-RPC nodes and surface recover errors - #9558
Merged
Merged
Conversation
Sui Foundation disabled JSON-RPC on fullnode.*.sui.io, so every SDK consumer hit "Method not found" and Sui.recover() reported "no funds" because the RPC error was swallowed. Point sdk-core defaults at PublicNode for mainnet and testnet, and rethrow getBalance failures with address, index, and RPC URL so the real cause surfaces. Ticket: WCI-1455 Co-authored-by: Cursor <cursoragent@cursor.com>
vibhavgo
force-pushed
the
fix/sdk-core/sdk-coin-sui/rpc-endpoint-fix
branch
from
August 25, 2026 08:29
b97847a to
66f2c98
Compare
vibhavgo
marked this pull request as ready for review
August 25, 2026 09:00
abhishekagrawal080
approved these changes
Aug 25, 2026
Contributor
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.
Summary
Sui Foundation disabled JSON-RPC on
fullnode.mainnet.sui.ioandfullnode.testnet.sui.io(week of 27 Jul 2026, per official migration guide), breaking everysdk-coin-suirecover flow withMethod not found.Sui.recover()swallowed the RPC error and reported the misleading "Did not find an address with sufficient funds" message.Linear: WCI-1455
Changes
@bitgo/sdk-core(environments.ts): pointprod.suiNodeUrlathttps://sui-rpc.publicnode.comandtest.suiNodeUrlathttps://sui-testnet-rpc.publicnode.com.@bitgo/sdk-coin-sui(sui.ts):recover()rethrowsgetBalancefailures with the address, index, and RPC URL instead ofcontinue-ing, so RPC outages surface the real cause.Recover Transaction Failuresverifying a rejectedgetBalancepropagates asFailed to query Sui balance … Method not found. Existing recover suites unaffected.References — Sui JSON-RPC deprecation
Timeline from the migration guide:
Longer-term we should migrate
sdk-coin-suito gRPC / GraphQL RPC (tracked separately); for now, PublicNode's JSON-RPC keeps recover flows working without an SDK API rewrite.Test Plan
Closes the WRW-only workaround PR BitGo/wallet-recovery-wizard#733 (now redundant once this ships).