The class CosmWasmClient is exported from the CosmJS package @cosmjs/cosmwasm-stargate (🔗 Link). It already comes with a handful of methods that can be used to execute frequently used queries.
It is used only to execute queries. NOT to work with signed transactions. If you are looking for the documentation for this, please see the 🔗 CosmWasmSigningClient documentation.
import{CosmWasmClient}from"cosmwasm";// This is your rpc endpointconstrpcEndpoint="https://rpc.cliffnet.cosmwasm.com:443/";asyncfunctionmain(){constclient=awaitCosmWasmClient.connect(rpcEndpoint);console.log(client);‚}main();