Kit
Type aliases

RpcTransportDevnet

RpcTransportDevnet = RpcTransport & object

A RpcTransport that communicates with the devnet cluster.

Such transports are understood to communicate with a RPC server that services devnet, and as such might only be accepted for use as the transport of a RpcDevnet.

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

NameType
~cluster"devnet"

On this page