/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
文字列
読み込み中...
値
文字列
読み込み中...
有効期限
文字列
読み込み中...
ページネーション
オブジェクト
読み込み中...
next_key
文字列
読み込み中...
total
文字列
読み込み中...
リクエスト
1curl --location 'https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/granter/cosmos1wqy2s6nwnxj57l0l5rdjxxr646p3al6ymmpycg'
1curl --location 'https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/granter/cosmos1wqy2s6nwnxj57l0l5rdjxxr646p3al6ymmpycg'
1パッケージ main23インポート (4「文脈」5authz "cosmossdk.io/api/cosmos/authz/v1beta1"6"fmt"7"google.golang.grpc"8「ログ」9)1011func main() {12endpoint := "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: "cosmos1wqy2s6nwnxj57l0l5rdjxxr646p3al6ymmpycg"})22もし err != nil {23log.致命的な(err)24}25for _, grant := range resp.Grants {26fmt.Println(grant.Grantee, grant.Granter)27}28}29
1パッケージ main23インポート (4「文脈」5authz "cosmossdk.io/api/cosmos/authz/v1beta1"6"fmt"7"google.golang.grpc"8「ログ」9)1011func main() {12endpoint := "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: "cosmos1wqy2s6nwnxj57l0l5rdjxxr646p3al6ymmpycg"})22もし err != nil {23log.致命的な(err)24}25for _, grant := range resp.Grants {26fmt.Println(grant.Grantee, grant.Granter)27}28}29
1const requestOptions = {2method: "GET",3redirect: "follow"4};56fetch("https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/granter/cosmos1wqy2s6nwnxj57l0l5rdjxxr646p3al6ymmpycg", requestOptions)7.then((response) => response.text())8.then((result) => console.log(result))9.catch((error) => console.error(error));
1const requestOptions = {2method: "GET",3redirect: "follow"4};56fetch("https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/granter/cosmos1wqy2s6nwnxj57l0l5rdjxxr646p3al6ymmpycg", requestOptions)7.then((response) => response.text())8.then((result) => console.log(result))9.catch((error) => console.error(error));
1import リクエスト23url = "https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/granter/cosmos1wqy2s6nwnxj57l0l5rdjxxr646p3al6ymmpycg"45ペイロード = {}6headers = {}78回答 = リクエスト.リクエスト("GET", url, headers=headers, データ=ペイロード)910印刷(レスポンス.text)11
1import リクエスト23url = "https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/granter/cosmos1wqy2s6nwnxj57l0l5rdjxxr646p3al6ymmpycg"45ペイロード = {}6headers = {}78回答 = リクエスト.リクエスト("GET", url, headers=headers, データ=ペイロード)910印刷(レスポンス.text)11
1require "uri"2require "net/http"34url = URI("https://docs-demo.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/granter/cosmos1wqy2s6nwnxj57l0l5rdjxxr646p3al6ymmpycg")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.cosmos-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants/granter/cosmos1wqy2s6nwnxj57l0l5rdjxxr646p3al6ymmpycg")56https = ネット::HTTP.new(url.ホスト, url.ポート)7https.use_ssl = true89リクエスト = ネット::HTTP::Get.new(url)1011回答 = https.リクエスト(リクエスト)12レスポンスを格納する.read_body13