/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
문자열
로딩 중...
max_tokens
문자열
로딩 중...
allow_list
객체
로딩 중...
주소
배열
로딩 중...
authorization_type
문자열
로딩 중...
msg
문자열
로딩 중...
expiration
문자열
로딩 중...
페이지 나누기
객체
로딩 중...
next_key
문자열
로딩 중...
합계
문자열
로딩 중...
요청
1curl --location 'https://docs-demo.celestia-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025'
1curl --location 'https://docs-demo.celestia-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025'
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.GranteeGrants(context.Background(), &authz.QueryGranteeGrantsRequest{Grantee: "celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025"})22만약 err != nil {23로그.치명적(err)24}25for _, grant := range resp.Grants {26fmt.Println(grant.Grantee, grant.Granter)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.GranteeGrants(context.Background(), &authz.QueryGranteeGrantsRequest{Grantee: "celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025"})22만약 err != nil {23로그.치명적(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.celestia-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025", requestOptions)7.그런 다음((응답) => 응답.text())8.그런 다음((결과) => console.log(result))9.catchcatch ((오류) => 콘솔.오류(오류));
1const requestOptions = {2메서드: "GET",3리디렉션: "follow"4};56fetch("https://docs-demo.celestia-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025", requestOptions)7.그런 다음((응답) => 응답.text())8.그런 다음((결과) => console.log(result))9.catchcatch ((오류) => 콘솔.오류(오류));
1import 요청23url = "https://docs-demo.celestia-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025"45페이로드 = {}6헤더 = {}78답변 = 요청.요청("GET", url, 헤더=헤더, data=페이로드)910인쇄(응답.text)11
1import 요청23url = "https://docs-demo.celestia-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025"45페이로드 = {}6헤더 = {}78답변 = 요청.요청("GET", url, 헤더=헤더, data=페이로드)910인쇄(응답.text)11
1require "uri"2require "net/http"34url = URI("https://docs-demo.celestia-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025")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.celestia-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/grantee/celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025")56https = Net::HTTP.new(url.호스트, url.포트)7https.use_ssl = true89요청 = 순::HTTP::Get.new(url)1011답변 = https.요청(요청)12응답을 넣습니다.read_body13