Const
When you create Rpc instances with custom transports but otherwise the default RPC API behaviours, use this.
const myCustomRpc = createRpc({ api: createSolanaRpcApi(DEFAULT_RPC_CONFIG), transport: myCustomTransport,}); Copy
const myCustomRpc = createRpc({ api: createSolanaRpcApi(DEFAULT_RPC_CONFIG), transport: myCustomTransport,});
When you create Rpc instances with custom transports but otherwise the default RPC API behaviours, use this.