Created
July 11, 2022 19:53
-
-
Save drewstaylor/f4961098d877a04e4f5dd47f3210bbfb to your computer and use it in GitHub Desktop.
CW null signer instance (read only)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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