cosmos{granter}/{grantee} REST API Endpoint
경로 매개변수
권한 부여자
문자열
필수
로딩 중...
수혜자
문자열
필수
로딩 중...
반품
수당
객체
로딩 중...
권한 부여자
문자열
로딩 중...
수혜자
문자열
로딩 중...
수당
객체
로딩 중...
type_url
문자열
로딩 중...
값
문자열
로딩 중...
요청
1curl --location 'https://docs-demo.mainnet.quiknode.cosmos
1curl --location 'https://docs-demo.mainnet.quiknode.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.Allowance(context.Background(), &fg.QueryAllowanceRequest{Granter: "cosmos1qcual5kgmw3gqc9q22hlp0aluc3t7rnsprewgy", Grantee: "cosmos1we0w0l0ascgh8xyz009ttlyjfz3fr2xf479u88"})22만약 err != nil {23로그.치명적(err)24}25fmt.PrintlnPrintlnresp.GetAllowance)().String())26}27
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.Allowance(context.Background(), &fg.QueryAllowanceRequest{Granter: "cosmos1qcual5kgmw3gqc9q22hlp0aluc3t7rnsprewgy", Grantee: "cosmos1we0w0l0ascgh8xyz009ttlyjfz3fr2xf479u88"})22만약 err != nil {23로그.치명적(err)24}25fmt.PrintlnPrintlnresp.GetAllowance)().String())26}27
1const myHeaders = new Headers();2myHeaders.추가("Accept", "*/*");34const requestOptions = {5메서드: "GET",6헤더: myHeaders,7리디렉션: "팔로우"8};910가져오기("https://docs-demo.mainnet.quiknode.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가져오기("https://docs-demo.mainnet.quiknode.cosmos", requestOptions)11.그런 다음((응답) => 응답.text())12.그런 다음((결과) => console.log(result))13.catchcatch ((오류) => console.오류(오류));
1import 요청23url = "https://docs-demo.mainnet.quiknode.cosmos"45페이로드 = {}6헤더 = {7'수락': '*/*'8}910답변 = 요청.요청("GET", url, 헤더=헤더, data=페이로드)1112인쇄(응답.text)13
1import 요청23url = "https://docs-demo.mainnet.quiknode.cosmos"45페이로드 = {}6헤더 = {7'수락': '*/*'8}910답변 = 요청.요청("GET", url, 헤더=헤더, data=페이로드)1112인쇄(응답.text)13
1require "uri"2require "net/http"34url = URI("https://docs-demo.mainnet.quiknode.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("https://docs-demo.mainnet.quiknode.cosmos")56https = Net::HTTP.new(url.호스트, url.포트)7https.use_ssl = true89요청 = 순::HTTP::Get.new(url)10요청["수락"] = "*/*"1112답변 = https.요청(요청)13응답을 반환합니다.read_body14