cosmos{grantee} REST API Endpoint
경로 매개변수
수혜자
문자열
필수
로딩 중...
쿼리 매개변수
pagination.key
문자열
로딩 중...
페이지 번호 매기기 오프셋
문자열
로딩 중...
페이지 나누기.한도
문자열
로딩 중...
pagination.count_total
부울
로딩 중...
페이지 매김.역순
부울
로딩 중...
반품
수당
배열
로딩 중...
권한 부여자
문자열
로딩 중...
수혜자
문자열
로딩 중...
수당
객체
로딩 중...
type_url
문자열
로딩 중...
값
문자열
로딩 중...
페이지 나누기
객체
로딩 중...
next_key
문자열
로딩 중...
합계
문자열
로딩 중...
요청
1curl --location 'cosmos'
1curl --location 'cosmos'
1패키지 main23가져오기 (4"문맥"5fg "cosmossdk.cosmos"6"fmt"7"google.golang.grpc"8"로그"9)1011func main() {12endpoint := "YOUR_QUICKNODE_ENDPOINT"13대상, opts opts := getGrpcOptions(endpoint)14grpcConn, err := grpc.Dial(대상, opts...)15만약 err != nil {16로그.치명적(err)17}18defer grpcConn.닫기()1920feegrant := fg.NewQueryClient(grpcConn)21resp, err := feegrant.Allowances(context.Background(), &fg.QueryAllowancesRequest{Grantee: "cosmos1we0w0l0ascgh8xyz009ttlyjfz3fr2xf479u88"})22만약 err != nil {23로그.치명적(err)24}25for _, allowance := range resp.Allowances {26fmt.PrintlnPrintln수당.String)())27}28}29
1패키지 main23가져오기 (4"문맥"5fg "cosmossdk.cosmos"6"fmt"7"google.golang.grpc"8"로그"9)1011func main() {12endpoint := "YOUR_QUICKNODE_ENDPOINT"13대상, opts opts := getGrpcOptions(endpoint)14grpcConn, err := grpc.Dial(대상, opts...)15만약 err != nil {16로그.치명적(err)17}18defer grpcConn.닫기()1920feegrant := fg.NewQueryClient(grpcConn)21resp, err := feegrant.Allowances(context.Background(), &fg.QueryAllowancesRequest{Grantee: "cosmos1we0w0l0ascgh8xyz009ttlyjfz3fr2xf479u88"})22만약 err != nil {23로그.치명적(err)24}25for _, allowance := range resp.Allowances {26fmt.PrintlnPrintln수당.String)())27}28}29
1const myHeaders = new Headers();2myHeaders.추가("Accept", "*/*");34const requestOptions = {5메서드: "GET",6헤더: myHeaders,7리디렉션: "팔로우"8};910가져오기("cosmos", requestOptions)11.그런 다음((응답) => 응답.text())12.그런 다음((결과) => console.log(result))13.catchcatch ((오류) => console.오류(오류));
1const myHeaders = new Headers();2myHeaders.추가("Accept", "*/*");34const requestOptions = {5메서드: "GET",6헤더: myHeaders,7리디렉션: "팔로우"8};910가져오기("cosmos", requestOptions)11.그런 다음((응답) => 응답.text())12.그런 다음((결과) => console.log(result))13.catchcatch ((오류) => console.오류(오류));
1import 요청23url = "cosmos"45페이로드 = {}6헤더 = {7'수락': '*/*'8}910답변 = 요청.요청("GET", url, 헤더=헤더, data=페이로드)1112인쇄(응답.text)13
1import 요청23url = "cosmos"45페이로드 = {}6헤더 = {7'수락': '*/*'8}910답변 = 요청.요청("GET", url, 헤더=헤더, data=페이로드)1112인쇄(응답.text)13
1require "uri"2require "net/http"34url = URI("cosmos")56https = Net::HTTP.new(url.호스트, url.포트)7https.use_ssl = true89요청 = 순::HTTP::Get.new(url)10요청["수락"] = "*/*"1112답변 = https.요청(요청)13응답을 반환합니다.read_body14
1require "uri"2require "net/http"34url = URI("cosmos")56https = Net::HTTP.new(url.호스트, url.포트)7https.use_ssl = true89요청 = 순::HTTP::Get.new(url)10요청["수락"] = "*/*"1112답변 = https.요청(요청)13응답을 반환합니다.read_body14