createSolanaRPC()
createSolanaRPC(
rpcUrlOrMoniker):Rpc<SolanaRpcApi>
Defined in: packages/orbit-solana/src/utils/createSolanaRPC.ts:35
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
Either a full RPC URL or a cluster moniker like ‘mainnet’.
rpcUrlOrMoniker
string
rpcUrls?
Partial<Record<SolanaClusterMoniker, string>>
Returns
Rpc<SolanaRpcApi>
The RPC client instance.
Last updated on