/cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address REST API Endpoint
Path Parameters
delegator_address
string
REQUIRED
Loading...
Returns
withdraw_address
string
Loading...
Request
curl --location 'https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/distribution/v1beta1/delegators/cosmos1c4k24jzduc365kywrsvf5ujz4ya6mwymy8vq4q/withdraw_address'
package main
import (
"context"
dist "cosmossdk.io/api/cosmos/distribution/v1beta1"
"fmt"
"google.golang.org/grpc"
"log"
)
func main() {
endpoint := "YOUR_QUICKNODE_ENDPOINT"
target, opts := getGrpcOptions(endpoint)
grpcConn, err := grpc.Dial(target, opts...)
if err != nil {
log.Fatal(err)
}
defer grpcConn.Close()
req := &dist.QueryDelegatorWithdrawAddressRequest{
DelegatorAddress: "cosmos1c4k24jzduc365kywrsvf5ujz4ya6mwymy8vq4q",
}
distribution := dist.NewQueryClient(grpcConn)
resp, err := distribution.DelegatorWithdrawAddress(context.Background(), req)
if err != nil {
log.Fatal(err)
}
fmt.Println("withdraw address", resp.GetWithdrawAddress())
}
const myHeaders = new Headers();
myHeaders.append("Accept", "*/*");
const requestOptions = {
method: "GET",
headers: myHeaders,
redirect: "follow"
};
fetch("https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/distribution/v1beta1/delegators/cosmos1c4k24jzduc365kywrsvf5ujz4ya6mwymy8vq4q/withdraw_address", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));import requests
url = "https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/distribution/v1beta1/delegators/cosmos1c4k24jzduc365kywrsvf5ujz4ya6mwymy8vq4q/withdraw_address"
payload = {}
headers = {
'Accept': '*/*'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
require "uri"
require "net/http"
url = URI("https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/distribution/v1beta1/delegators/cosmos1c4k24jzduc365kywrsvf5ujz4ya6mwymy8vq4q/withdraw_address")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "*/*"
response = https.request(request)
puts response.read_body
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free