Skip to content

Instantly share code, notes, and snippets.

@drewstaylor
Created July 11, 2022 19:53
Show Gist options
  • Save drewstaylor/f4961098d877a04e4f5dd47f3210bbfb to your computer and use it in GitHub Desktop.
Save drewstaylor/f4961098d877a04e4f5dd47f3210bbfb to your computer and use it in GitHub Desktop.
CW null signer instance (read only)
const CwStargate = require("@cosmjs/cosmwasm-stargate");
async function getClient() {
const cwClient = await CwStargate.SigningCosmWasmClient.connectWithSigner("https://rpc.constantine-1.archway.tech",null);
return cwClient;
}
async function main() {
let client = await getClient();
let queryHandler = client.queryClient.wasm.queryContractSmart;
console.log(queryHandler);
}
main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment