@tuwaio/satellite-connect-monorepo
createSolanaRPC()
createSolanaRPC(
rpcUrlOrMoniker
):Rpc
<SolanaRpcApi
>
Defined in: packages/orbit-solana/src/utils/createSolanaRPC.ts:44
Internal
Retrieves a cached RPC client for a given URL or cluster moniker. If no cached client exists, it creates a new instance.
Parameters
rpcUrlOrMoniker
string
Either a full RPC URL or a cluster moniker like ‘mainnet’.
Returns
Rpc
<SolanaRpcApi
>
The RPC client instance.
Last updated on