Skip to main content

Redelegations()

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 staking from "cosmjs-types/cosmos/staking/v1beta1/query"

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

const querystaking = new staking.QueryClientImpl(rpcClient)

Example

let Redelegations = await querystaking.Redelegations({
    "delegatorAddr": "",
    "srcValidatorAddr": "",
    "dstValidatorAddr": ""
})
console.log(Redelegations)