createSolanaRpc
Creates a Rpc instance that exposes the Solana JSON RPC API given a cluster URL and some optional transport config. See createDefaultRpcTransport for the shape of the transport config.
Type Parameters
| Type Parameter |
|---|
TClusterUrl extends ClusterUrl |
Parameters
| Parameter | Type |
|---|---|
clusterUrl | TClusterUrl |
config? | Omit<DefaultRpcTransportConfig<TClusterUrl>, "url"> |
Returns
RpcFromTransport<SolanaRpcApiFromTransport<RpcTransportFromClusterUrl<TClusterUrl>>, RpcTransportFromClusterUrl<TClusterUrl>>