createDefaultRpcTransport
Creates a RpcTransport with some default behaviours.
The default behaviours include:
- An automatically-set
Solana-Clientrequest 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-Encodingrequest header asking the server to compress responses
Type Parameters
| Type Parameter |
|---|
TClusterUrl extends ClusterUrl |
Parameters
| Parameter | Type | Description |
|---|---|---|
config | DefaultRpcTransportConfig<TClusterUrl> |
Returns
RpcTransportFromClusterUrl<TClusterUrl>