/cosmos/authz/v1beta1/grants/granter/{granter} REST API Endpoint
パスパラメータ
granter
文字列
必須
読み込み中...
クエリパラメータ
pagination.key
文字列
読み込み中...
pagination.offset
文字列
読み込み中...
pagination.limit
文字列
読み込み中...
pagination.count_total
ブール値
読み込み中...
pagination.reverse
ブール値
読み込み中...
返品
grants
配列
読み込み中...
granter
文字列
読み込み中...
grantee
文字列
読み込み中...
authorization
オブジェクト
読み込み中...
type_url
文字列
読み込み中...
値
文字列
読み込み中...
expiration
文字列
読み込み中...
pagination
オブジェクト
読み込み中...
next_key
文字列
読み込み中...
合計
文字列
読み込み中...
リクエスト
1curl --location 'https://docs-demo.sei-pacific.quiknode.pro/cosmos/authz/v1beta1/grants/granter/sei1pysh9kv5syprf90fxqlv8hc894cpm7z5280gd4'
1curl --location 'https://docs-demo.sei-pacific.quiknode.pro/cosmos/authz/v1beta1/grants/granter/sei1pysh9kv5syprf90fxqlv8hc894cpm7z5280gd4'
1パッケージ main23import (4「文脈」5authz "cosmossdk.io/api/cosmos/authz/v1beta1"6"fmt"7"google.golang.org/grpc"8「log」9)1011func main() {12エンドポイント := "YOUR_QUICKNODE_ENDPOINT"13target, opts := getGrpcOptions(endpoint)14grpcConn, err := grpc.Dial(target, opts...)15もし err != nil {16log.致命的な(err)17}18defer grpcConn.閉じる()1920authzClient := authz.NewQueryClient(grpcConn)21resp, err := authzClient.GranterGrants(context.Background(), &authz.QueryGranterGrantsRequest{Granter: "sei1pysh9kv5syprf90fxqlv8hc894cpm7z5280gd4"})22もし err != nil {23log.致命的な(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「log」9)1011func main() {12エンドポイント := "YOUR_QUICKNODE_ENDPOINT"13target, opts := getGrpcOptions(endpoint)14grpcConn, err := grpc.Dial(target, opts...)15もし err != nil {16log.致命的な(err)17}18defer grpcConn.閉じる()1920authzClient := authz.NewQueryClient(grpcConn)21resp, err := authzClient.GranterGrants(context.Background(), &authz.QueryGranterGrantsRequest{Granter: "sei1pysh9kv5syprf90fxqlv8hc894cpm7z5280gd4"})22もし err != nil {23log.致命的な(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.sei-pacific.quiknode.pro/cosmos/authz/v1beta1/grants/granter/sei1pysh9kv5syprf90fxqlv8hc894cpm7z5280gd4", requestOptions)7.その後((レスポンス) => レスポンス.text())8.その後((結果) => コンソール.log(result))9.catch((エラー) => コンソール.エラー(エラー));
1const requestOptions = {2メソッド: "GET",3リダイレクト: "follow"4};56fetch("https://docs-demo.sei-pacific.quiknode.pro/cosmos/authz/v1beta1/grants/granter/sei1pysh9kv5syprf90fxqlv8hc894cpm7z5280gd4", requestOptions)7.その後((レスポンス) => レスポンス.text())8.その後((結果) => コンソール.log(result))9.catch((エラー) => コンソール.エラー(エラー));
1import リクエスト23url = "https://docs-demo.sei-pacific.quiknode.pro/cosmos/authz/v1beta1/grants/granter/sei1pysh9kv5syprf90fxqlv8hc894cpm7z5280gd4"45ペイロード = {}6ヘッダー = {}78回答 = リクエスト.リクエスト("GET", url, headers=headers, データ=ペイロード)910印刷(レスポンス.text)11
1import リクエスト23url = "https://docs-demo.sei-pacific.quiknode.pro/cosmos/authz/v1beta1/grants/granter/sei1pysh9kv5syprf90fxqlv8hc894cpm7z5280gd4"45ペイロード = {}6ヘッダー = {}78回答 = リクエスト.リクエスト("GET", url, headers=headers, データ=ペイロード)910印刷(レスポンス.text)11
1require "uri"2require "net/http"34url = URI("https://docs-demo.sei-pacific.quiknode.pro/cosmos/authz/v1beta1/grants/granter/sei1pysh9kv5syprf90fxqlv8hc894cpm7z5280gd4")56https = ネット::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.sei-pacific.quiknode.pro/cosmos/authz/v1beta1/grants/granter/sei1pysh9kv5syprf90fxqlv8hc894cpm7z5280gd4")56https = ネット::HTTP.new(url.ホスト, url.ポート)7https.use_ssl = true89リクエスト = ネット::HTTP::Get.new(url)1011回答 = https.リクエスト(リクエスト)12レスポンスを格納する.read_body13