Function setSuiNodeUrl

  • Set a new Sui node URL. This will invalidate the current SuiClient instance, ensuring that the next call to getSuiClient returns a new instance with the updated URL.

    Parameters

    • rpcNodeUrl: string

      The new RPC URL for the Sui client.

    Returns void

    GraphQL reads use a separate URL — see setGraphQLUrl(). This setter only affects the legacy SuiClient used for transaction signing/building.