Kit
Functions

createSolanaRpc

createSolanaRpc<TClusterUrl>(clusterUrl, config?): RpcFromTransport<SolanaRpcApiFromTransport<RpcTransportFromClusterUrl<TClusterUrl>>, RpcTransportFromClusterUrl<TClusterUrl>>

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

ParameterType
clusterUrlTClusterUrl
config?Omit<DefaultRpcTransportConfig<TClusterUrl>, "url">

Returns

RpcFromTransport<SolanaRpcApiFromTransport<RpcTransportFromClusterUrl<TClusterUrl>>, RpcTransportFromClusterUrl<TClusterUrl>>

On this page