Skip to main content

PinnedCodes()

atmon3rLess than 1 minute

Info

This doc is generated with

Connect rpc

import { Tendermint37Client } from "@cosmjs/tendermint-rpc"
import { createProtobufRpcClient, QueryClient } from "@cosmjs/stargate"
import * as cosmwasm from "cosmjs-types/cosmwasm/wasm/v1/query.js"

const client = await Tendermint37Client.connect('{rpc_url}')
const queryClient = new QueryClient(client)
const rpcClient = createProtobufRpcClient(queryClient)

const querywasm = new cosmwasm.QueryClientImpl(rpcClient)

Example

let PinnedCodes = await querywasm.PinnedCodes({})
console.log(PinnedCodes)