Functions
createDefaultRpcTransport
createDefaultRpcTransport<
TClusterUrl
>(config
):RpcTransportFromClusterUrl
<TClusterUrl
>
Creates a RpcTransport with some default behaviours.
The default behaviours include:
- An automatically-set
Solana-Client
request header, containing the version of@solana/kit
- Logic that coalesces multiple calls in the same runloop, for the same methods with the same arguments, into a single network request.
- [node-only] An automatically-set
Accept-Encoding
request header asking the server to compress responses
Type Parameters
Type Parameter |
---|
TClusterUrl extends ClusterUrl |
Parameters
Parameter | Type | Description |
---|---|---|
config | DefaultRpcTransportConfig <TClusterUrl > |
Returns
RpcTransportFromClusterUrl
<TClusterUrl
>