Type aliases
RpcTransportMainnet
RpcTransportMainnet =
RpcTransport
&object
A RpcTransport that communicates with the mainnet cluster.
Such transports are understood to communicate with a RPC server that services mainnet, and as such might only be accepted for use as the transport of a RpcMainnet.
This is useful in cases where you need to make assertions about what capabilities a RPC offers. For example, RPC methods like requestAirdrop are not available on mainnet. You can use the ability to assert on the type of RPC transport at compile time to prevent calling unimplemented methods or presuming the existence of unavailable capabilities.
Type declaration
Name | Type |
---|---|
~cluster | "mainnet" |