@orca-so/tx-sender
    Preparing search index...

    Function rpcFromUrl

    • Creates an RPC client instance for interacting with the SVM blockchains using the provided RPC URL.

      Parameters

      • url: string

        The RPC endpoint URL.

      Returns Rpc<SolanaRpcApi>

      An RPC client configured with the Solana RPC API.

      const rpc = rpcFromUrl("https://api.mainnet-beta.solana.com");
      const slot = await rpc.getSlot().send();
      console.log(slot);