/cosmos/authz/v1beta1/grants/grantee/{grantee} REST API Endpoint
路徑參數
grantee
字串
必填
載入中...
查詢參數
pagination.key
字串
載入中...
pagination.offset
字串
載入中...
pagination.limit
字串
載入中...
pagination.count_total
布林值
載入中...
pagination.reverse
布林值
載入中...
退貨
grants
陣列
載入中...
granter
字串
載入中...
grantee
字串
載入中...
authorization
物件
載入中...
type_url
字串
載入中...
值
字串
載入中...
expiration
字串
載入中...
pagination
物件
載入中...
next_key
字串
載入中...
總計
字串
載入中...
請求
1curl --location 'https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/cosmos1s76g05ezntwysza65nrgr3xkxjhzvw3pxtggvk'
1curl --location 'https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/cosmos1s76g05ezntwysza65nrgr3xkxjhzvw3pxtggvk'
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.GranteeGrants(context.Background(), &authz.QueryGranteeGrantsRequest{Grantee: "cosmos1s76g05ezntwysza65nrgr3xkxjhzvw3pxtggvk"})22if err != nil {23log.Fatal(err)24}25for _, grant := range resp.Grants {26fmt.Println(grant.Grantee, grant.Granter)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.GranteeGrants(context.Background(), &authz.QueryGranteeGrantsRequest{Grantee: "cosmos1s76g05ezntwysza65nrgr3xkxjhzvw3pxtggvk"})22if err != nil {23log.Fatal(err)24}25for _, grant := range resp.Grants {26fmt.Println(grant.Grantee, grant.Granter)27}28}29
1const requestOptions = {2method: "GET",3redirect: "follow"4};56fetch("https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/cosmos1s76g05ezntwysza65nrgr3xkxjhzvw3pxtggvk", 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/grantee/cosmos1s76g05ezntwysza65nrgr3xkxjhzvw3pxtggvk", requestOptions)7.then((response) => response.text())8.then((result) => console.log(result))9.catch((error) => console.error(error));
1匯入 請求23url = "https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/cosmos1s76g05ezntwysza65nrgr3xkxjhzvw3pxtggvk"45有效載荷 = {}6標題 = {}78回應 = 請求.請求("GET", url, headers=headers, data=有效載荷)910列印(回應.text)11
1匯入 請求23url = "https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/cosmos1s76g05ezntwysza65nrgr3xkxjhzvw3pxtggvk"45有效載荷 = {}6標題 = {}78回應 = 請求.請求("GET", url, headers=headers, data=有效載荷)910列印(回應.text)11
1需要 "uri"2需要 "net/http"34url = URI("https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/cosmos1s76g05ezntwysza65nrgr3xkxjhzvw3pxtggvk")56https = 網::HTTP.new(url.主機, url.port)7https.use_ssl = true89請求 = 淨::HTTP::Get.new(url)1011回應 = https.請求(請求)12將回應。read_body13
1需要 "uri"2需要 "net/http"34url = URI("https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/cosmos1s76g05ezntwysza65nrgr3xkxjhzvw3pxtggvk")56https = 網::HTTP.new(url.主機, url.port)7https.use_ssl = true89請求 = 淨::HTTP::Get.new(url)1011回應 = https.請求(請求)12將回應。read_body13