cosmos{granter} REST APIEndpoint
路徑參數
授權人
字串
必填
載入中...
查詢參數
pagination.key
字串
載入中...
分頁偏移量
字串
載入中...
分頁.限額
字串
載入中...
分頁.總頁數
布林值
載入中...
pagination.reverse
布林值
載入中...
退貨
津貼
陣列
載入中...
授權人
字串
載入中...
受贈人
字串
載入中...
津貼
物件
載入中...
@type
字串
載入中...
spend_limit
陣列
載入中...
denom
字串
載入中...
金額
字串
載入中...
到期日
字串
載入中...
分頁
物件
載入中...
next_key
字串
載入中...
總計
字串
載入中...
請求
1curl --location 'https://docs-demo.ault-mainnet.quiknode.pro/cosmos/feegrant/v1beta1/issued/{GRANTER}'
1curl --location 'https://docs-demo.ault-mainnet.quiknode.pro/cosmos/feegrant/v1beta1/issued/{GRANTER}'
1套件 主函式23匯入 (4"上下文"5fg "cosmossdk.cosmos"6"fmt"7"google.golang.grpc"8"log"9)1011func main() {12endpoint := "您的 QuickNode 端點"13目標, opts := getGrpcOptions(endpoint)14grpcConn, err := grpc.撥號(目標, opts...)15如果 err != nil {16log.致命(錯誤)17}18defer grpcConn.關閉()1920feegrant := fg.NewQueryClient(grpcConn)21resp, err := feegrant.AllowancesByGranter(context.Background(), &fg.QueryAllowancesByGranterRequest{Granter: "GRANTER"})22如果 err != nil {23log.致命(錯誤)24}25for _, allowance := range resp.Allowances {26fmt.Println("津貼:", allowance.字串())27}28}29
1套件 主函式23匯入 (4"上下文"5fg "cosmossdk.cosmos"6"fmt"7"google.golang.grpc"8"log"9)1011func main() {12endpoint := "您的 QuickNode 端點"13目標, opts := getGrpcOptions(endpoint)14grpcConn, err := grpc.撥號(目標, opts...)15如果 err != nil {16log.致命(錯誤)17}18defer grpcConn.關閉()1920feegrant := fg.NewQueryClient(grpcConn)21resp, err := feegrant.AllowancesByGranter(context.Background(), &fg.QueryAllowancesByGranterRequest{Granter: "GRANTER"})22如果 err != nil {23log.致命(錯誤)24}25for _, allowance := range resp.Allowances {26fmt.Println("津貼:", allowance.字串())27}28}29
1const myHeaders = new Headers();2myHeaders.追加("Accept", "*/*");34const requestOptions = {5方法: "GET",6標題: myHeaders,7重定向: 「追蹤」8};910fetch("https://docs-demo.ault-mainnet.quiknode.pro/cosmos/feegrant/v1beta1/issued/{GRANTER}", requestOptions)11.接著((回應) => 回應.文字())12.接著((結果) => 控制台.log(結果))13.catch((錯誤) => 控制台.錯誤(錯誤));
1const myHeaders = new Headers();2myHeaders.追加("Accept", "*/*");34const requestOptions = {5方法: "GET",6標題: myHeaders,7重定向: 「追蹤」8};910fetch("https://docs-demo.ault-mainnet.quiknode.pro/cosmos/feegrant/v1beta1/issued/{GRANTER}", requestOptions)11.接著((回應) => 回應.文字())12.接著((結果) => 控制台.log(結果))13.catch((錯誤) => 控制台.錯誤(錯誤));
1匯入 請求23url = "https://docs-demo.ault-mainnet.quiknode.pro/cosmos/feegrant/v1beta1/issued/{GRANTER}"45有效載荷 = {}6標題 = {7「接受」: '*/*'8}910回應 = 請求.請求("GET", url, headers=headers, data=有效載荷)1112列印(回應.text)13
1匯入 請求23url = "https://docs-demo.ault-mainnet.quiknode.pro/cosmos/feegrant/v1beta1/issued/{GRANTER}"45有效載荷 = {}6標題 = {7「接受」: '*/*'8}910回應 = 請求.請求("GET", url, headers=headers, data=有效載荷)1112列印(回應.text)13
1需要 "uri"2需要 "net/http"34url = URI("https://docs-demo.ault-mainnet.quiknode.pro/cosmos/feegrant/v1beta1/issued/{GRANTER}")56https = 網::HTTP.new(url.主機, 網址.port)7https.use_ssl = true89請求 = 淨額::HTTP::Get.new(url)10請求[「接受」] = "*/*"1112回應 = https.請求(請求)13puts 回應。read_body14
1需要 "uri"2需要 "net/http"34url = URI("https://docs-demo.ault-mainnet.quiknode.pro/cosmos/feegrant/v1beta1/issued/{GRANTER}")56https = 網::HTTP.new(url.主機, 網址.port)7https.use_ssl = true89請求 = 淨額::HTTP::Get.new(url)10請求[「接受」] = "*/*"1112回應 = https.請求(請求)13puts 回應。read_body14