cosmos REST API Endpoint
쿼리 매개변수
denom
문자열
필수
로딩 중...
반품
공급
배열
로딩 중...
denom
문자열
로딩 중...
금액
문자열
로딩 중...
페이지 나누기
객체
로딩 중...
next_key
문자열
로딩 중...
합계
문자열
로딩 중...
요청
1curl --location 'cosmos'
1curl --location 'cosmos'
1패키지 main23가져오기 (4"문맥"5은행 유형 "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.닫기()1920bankClient := banktypes.NewQueryClient(grpcConn)21denom := "usei"22req := &banktypes.QuerySupplyOfRequest{23Denom: denom,24}25답변, err := bankClient.SupplyOf(context.배경(), req)26만약 err != nil {27로그.치명적(err)28}29fmt.PrintlnPrintln("공급:", resp.수량.금액, resp.금액.분모)30}31
1패키지 main23가져오기 (4"문맥"5은행 유형 "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.닫기()1920bankClient := banktypes.NewQueryClient(grpcConn)21denom := "usei"22req := &banktypes.QuerySupplyOfRequest{23Denom: denom,24}25답변, err := bankClient.SupplyOf(context.배경(), req)26만약 err != nil {27로그.치명적(err)28}29fmt.PrintlnPrintln("공급:", resp.수량.금액, resp.금액.분모)30}31
1const requestOptions = {2메서드: "GET",3리디렉션: "팔로우"4};56가져오기("cosmos", requestOptions)7.그런 다음((응답) => 응답.text())8.그런 다음((결과) => console.log(result))9.catchcatch ((오류) => console.오류(오류));
1const requestOptions = {2메서드: "GET",3리디렉션: "팔로우"4};56가져오기("cosmos", requestOptions)7.그런 다음((응답) => 응답.text())8.그런 다음((결과) => console.log(result))9.catchcatch ((오류) => console.오류(오류));
1import 요청23url = "cosmos"45페이로드 = {}6헤더 = {}78답변 = 요청.요청("GET", url, 헤더=헤더, data=페이로드)910인쇄(응답.text)11
1import 요청23url = "cosmos"45페이로드 = {}6헤더 = {}78답변 = 요청.요청("GET", url, 헤더=헤더, data=페이로드)910인쇄(응답.text)11
1require "uri"2require "net/http"34url = URI("cosmos")56http = Net::HTTP.new(url.호스트, url.포트);7요청 = 순::HTTP::Get.new(url)89답변 = http.요청(요청)10응답을 반환합니다.read_body11
1require "uri"2require "net/http"34url = URI("cosmos")56http = Net::HTTP.new(url.호스트, url.포트);7요청 = 순::HTTP::Get.new(url)89답변 = http.요청(요청)10응답을 반환합니다.read_body11