Function setSuiClient

  • Set a new SuiClient instance with the specified RPC node URL. This function directly creates a new instance of the SuiClient, overriding the existing instance and using the provided URL for future requests.

    If the RPC node URL is different from the currently stored URL, a new instance of SuiClient will be created and assigned, allowing the client to communicate with a new Sui node.

    Parameters

    • rpcNodeUrl: string

      The new RPC URL to be used for the SuiClient.

    Returns void