/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
字符串
正在加载...
值
字符串
正在加载...
到期
字符串
正在加载...
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'
1包 main23导入 (4"上下文"5authz "cosmossdk.io/api/cosmos/authz/v1beta1"6"fmt"7"google.golang.org/grpc"8"日志"9)1011func main() {12端点 := "YOUR_QUICKNODE_ENDPOINT"13目标, opts := getGrpcOptions(endpoint)14grpcConn, err := grpc.Dial(目标, opts...)15如果 err != nil {16log.致命(err)17}18defer grpcConn.关闭()1920authzClient := authz.NewQueryClient(grpcConn)21resp, err := authzClient.GranteeGrants(context.Background(), &authz.QueryGranteeGrantsRequest{Grantee: "cosmos1s76g05ezntwysza65nrgr3xkxjhzvw3pxtggvk"})22如果 err != nil {23log.致命(err)24}25for _, grant := range resp.Grants {26fmt.Println(grant.Grantee, grant.Granter)27}28}29
1包 main23导入 (4"上下文"5authz "cosmossdk.io/api/cosmos/authz/v1beta1"6"fmt"7"google.golang.org/grpc"8"日志"9)1011func main() {12端点 := "YOUR_QUICKNODE_ENDPOINT"13目标, opts := getGrpcOptions(endpoint)14grpcConn, err := grpc.Dial(目标, opts...)15如果 err != nil {16log.致命(err)17}18defer grpcConn.关闭()1920authzClient := authz.NewQueryClient(grpcConn)21resp, err := authzClient.GranteeGrants(context.Background(), &authz.QueryGranteeGrantsRequest{Grantee: "cosmos1s76g05ezntwysza65nrgr3xkxjhzvw3pxtggvk"})22如果 err != nil {23log.致命(err)24}25for _, grant := range resp.Grants {26fmt.Println(grant.Grantee, grant.Granter)27}28}29
1const requestOptions = {2方法: "GET",3重定向: "follow"4};56fetch("https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/cosmos1s76g05ezntwysza65nrgr3xkxjhzvw3pxtggvk", requestOptions)7.然后((响应) => 响应.文本())8.然后((结果) => 控制台.log(result))9.catch((error) => 控制台.错误(error));
1const requestOptions = {2方法: "GET",3重定向: "follow"4};56fetch("https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/cosmos1s76g05ezntwysza65nrgr3xkxjhzvw3pxtggvk", requestOptions)7.然后((响应) => 响应.文本())8.然后((结果) => 控制台.log(result))9.catch((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
1require "uri"2require "net/http"34url = URI("https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/cosmos1s76g05ezntwysza65nrgr3xkxjhzvw3pxtggvk")56https = Net::HTTP.new(url.主机, url.端口)7https.use_ssl = true89请求 = Net::HTTP::Get.new(url)1011回复 = https.请求(请求)12返回响应.read_body13
1require "uri"2require "net/http"34url = URI("https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/cosmos1s76g05ezntwysza65nrgr3xkxjhzvw3pxtggvk")56https = Net::HTTP.new(url.主机, url.端口)7https.use_ssl = true89请求 = Net::HTTP::Get.new(url)1011回复 = https.请求(请求)12返回响应.read_body13