Proposals()
Less than 1 minute
Connect rpc
import { Tendermint37Client } from "@cosmjs/tendermint-rpc"
import { createProtobufRpcClient, QueryClient } from "@cosmjs/stargate"
import * as gov from "cosmjs-types/cosmos/gov/v1beta1/query"
const client = await Tendermint37Client.connect('{rpc_url}')
const queryClient = new QueryClient(client)
const rpcClient = createProtobufRpcClient(queryClient)
const querygov = new gov.QueryClientImpl(rpcClient)
Example
let Proposals = await querygov.Proposals({
"proposalStatus": 0,
"voter": "",
"depositor": ""
})
console.log(Proposals)