Query Parameters
granter
string
REQUIRED
Loading...
grantee
string
REQUIRED
Loading...
msg_type_url
string
Loading...
pagination.key
string
Loading...
pagination.offset
string
Loading...
pagination.limit
string
Loading...
pagination.count_total
boolean
Loading...
pagination.reverse
boolean
Loading...
Returns
grants
array
Loading...
authorization
object
Loading...
type_url
string
Loading...
value
string
Loading...
expiration
string
Loading...
pagination
object
Loading...
next_key
string
Loading...
total
string
Loading...
Request
1curl --location 'https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants?granter=GRANTER&grantee=GRANTEE'
1curl --location 'https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants?granter=GRANTER&grantee=GRANTEE'
1package main23import (4"context"5authz "cosmossdk.io/api/cosmos/authz/v1beta1"6"fmt"7"google.golang.org/grpc"8"log"9)1011func main() {12endpoint := "YOUR_QUICKNODE_ENDPOINT"13target, opts := getGrpcOptions(endpoint)14grpcConn, err := grpc.Dial(target, opts...)15if err != nil {16log.Fatal(err)17}18defer grpcConn.Close()1920authzClient := authz.NewQueryClient(grpcConn)21resp, err := authzClient.Grants(context.Background(), &authz.QueryGrantsRequest{Granter: "GRANTER", Grantee: "GRANTEE"})22if err != nil {23log.Fatal(err)24}25for _, grant := range resp.Grants {26fmt.Printf("granter %s, grantee %s, grants authorization: %s\n", grant.Granter, grant.Grantee, grant.Authorization.GetTypeUrl())27}28}29
1package main23import (4"context"5authz "cosmossdk.io/api/cosmos/authz/v1beta1"6"fmt"7"google.golang.org/grpc"8"log"9)1011func main() {12endpoint := "YOUR_QUICKNODE_ENDPOINT"13target, opts := getGrpcOptions(endpoint)14grpcConn, err := grpc.Dial(target, opts...)15if err != nil {16log.Fatal(err)17}18defer grpcConn.Close()1920authzClient := authz.NewQueryClient(grpcConn)21resp, err := authzClient.Grants(context.Background(), &authz.QueryGrantsRequest{Granter: "GRANTER", Grantee: "GRANTEE"})22if err != nil {23log.Fatal(err)24}25for _, grant := range resp.Grants {26fmt.Printf("granter %s, grantee %s, grants authorization: %s\n", grant.Granter, grant.Grantee, grant.Authorization.GetTypeUrl())27}28}29
1const requestOptions = {2method: "GET",3redirect: "follow"4};56fetch("https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants?granter=GRANTER&grantee=GRANTEE", requestOptions)7.then((response) => response.text())8.then((result) => console.log(result))9.catch((error) => console.error(error));
1const requestOptions = {2method: "GET",3redirect: "follow"4};56fetch("https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants?granter=GRANTER&grantee=GRANTEE", requestOptions)7.then((response) => response.text())8.then((result) => console.log(result))9.catch((error) => console.error(error));
1import requests23url = "https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants?granter=GRANTER&grantee=GRANTEE"45payload = {}6headers = {}78response = requests.request("GET", url, headers=headers, data=payload)910print(response.text)11
1import requests23url = "https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants?granter=GRANTER&grantee=GRANTEE"45payload = {}6headers = {}78response = requests.request("GET", url, headers=headers, data=payload)910print(response.text)11
1require "uri"2require "net/http"34url = URI("https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants?granter=GRANTER&grantee=GRANTEE")56https = Net::HTTP.new(url.host, url.port)7https.use_ssl = true89request = Net::HTTP::Get.new(url)1011response = https.request(request)12puts response.read_body13
1require "uri"2require "net/http"34url = URI("https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants?granter=GRANTER&grantee=GRANTEE")56https = Net::HTTP.new(url.host, url.port)7https.use_ssl = true89request = Net::HTTP::Get.new(url)1011response = https.request(request)12puts response.read_body13
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free