/cosmos/authz/v1beta1/grants REST API Endpoint
쿼리 매개변수
granter
문자열
필수
로딩 중...
grantee
문자열
필수
로딩 중...
msg_type_url
문자열
로딩 중...
pagination.key
문자열
로딩 중...
pagination.offset
문자열
로딩 중...
pagination.limit
문자열
로딩 중...
pagination.count_total
부울
로딩 중...
pagination.reverse
부울
로딩 중...
반품
grants
배열
로딩 중...
authorization
객체
로딩 중...
type_url
문자열
로딩 중...
값
문자열
로딩 중...
expiration
문자열
로딩 중...
페이지 나누기
객체
로딩 중...
next_key
문자열
로딩 중...
합계
문자열
로딩 중...
요청
1curl --location 'https://docs-demo.sei-pacific.quiknode.pro/cosmos/authz/v1beta1/grants?granter=GRANTER&grantee=GRANTEE'
1curl --location 'https://docs-demo.sei-pacific.quiknode.pro/cosmos/authz/v1beta1/grants?granter=GRANTER&grantee=GRANTEE'
1패키지 main23import (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 {16로그.치명적(err)17}18defer grpcConn.닫기()1920authzClient := authz.NewQueryClient(grpcConn)21resp, err := authzClient.Grants(context.Background(), &authz.QueryGrantsRequest{Granter: "GRANTER", Grantee: "GRANTEE"})22만약 err != nil {23로그.치명적(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
1패키지 main23import (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 {16로그.치명적(err)17}18defer grpcConn.닫기()1920authzClient := authz.NewQueryClient(grpcConn)21resp, err := authzClient.Grants(context.Background(), &authz.QueryGrantsRequest{Granter: "GRANTER", Grantee: "GRANTEE"})22만약 err != nil {23로그.치명적(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 = {2메서드: "GET",3리디렉션: "follow"4};56fetch("https://docs-demo.sei-pacific.quiknode.pro/cosmos/authz/v1beta1/grants?granter=GRANTER&grantee=GRANTEE", requestOptions)7.그런 다음((응답) => 응답.text())8.그런 다음((결과) => console.log(result))9.catchcatch ((오류) => 콘솔.오류(오류));
1const requestOptions = {2메서드: "GET",3리디렉션: "follow"4};56fetch("https://docs-demo.sei-pacific.quiknode.pro/cosmos/authz/v1beta1/grants?granter=GRANTER&grantee=GRANTEE", requestOptions)7.그런 다음((응답) => 응답.text())8.그런 다음((결과) => console.log(result))9.catchcatch ((오류) => 콘솔.오류(오류));
1import 요청23url = "https://docs-demo.sei-pacific.quiknode.pro/cosmos/authz/v1beta1/grants?granter=GRANTER&grantee=GRANTEE"45페이로드 = {}6헤더 = {}78답변 = 요청.요청("GET", url, 헤더=헤더, data=페이로드)910인쇄(응답.text)11
1import 요청23url = "https://docs-demo.sei-pacific.quiknode.pro/cosmos/authz/v1beta1/grants?granter=GRANTER&grantee=GRANTEE"45페이로드 = {}6헤더 = {}78답변 = 요청.요청("GET", url, 헤더=헤더, data=페이로드)910인쇄(응답.text)11
1require "uri"2require "net/http"34url = URI("https://docs-demo.sei-pacific.quiknode.pro/cosmos/authz/v1beta1/grants?granter=GRANTER&grantee=GRANTEE")56https = Net::HTTP.new(url.호스트, url.포트)7https.use_ssl = true89요청 = 순::HTTP::Get.new(url)1011답변 = https.요청(요청)12응답을 넣습니다.read_body13
1require "uri"2require "net/http"34url = URI("https://docs-demo.sei-pacific.quiknode.pro/cosmos/authz/v1beta1/grants?granter=GRANTER&grantee=GRANTEE")56https = Net::HTTP.new(url.호스트, url.포트)7https.use_ssl = true89요청 = 순::HTTP::Get.new(url)1011답변 = https.요청(요청)12응답을 넣습니다.read_body13