Type aliases
RpcSubscriptionsChannelMainnet
RpcSubscriptionsChannelMainnet<
TOutboundMessage
,TInboundMessage
> =RpcSubscriptionsChannel
<TOutboundMessage
,TInboundMessage
> &object
A RpcSubscriptionsChannel that communicates with the mainnet cluster.
Such channels are understood to communicate with a RPC server that services mainnet, and as such might only be accepted for use as the channel of a RpcSubscriptionsTransportMainnet.
This is useful in cases where you need to make assertions about what capabilities a RPC offers. You can use the ability to assert on the type of RPC channel at compile time to prevent calling unimplemented methods or presuming the existence of unavailable programs or data.
Type declaration
Name | Type |
---|---|
~cluster | "mainnet" |
Type Parameters
Type Parameter |
---|
TOutboundMessage |
TInboundMessage |