/cosmos/authz/v1beta1/grants REST API Endpoint
クエリパラメータ
granter
文字列
必須
読み込み中...
grantee
文字列
必須
読み込み中...
msg_type_url
文字列
読み込み中...
pagination.key
文字列
読み込み中...
pagination.offset
文字列
読み込み中...
pagination.limit
文字列
読み込み中...
pagination.count_total
ブール値
読み込み中...
pagination.reverse
ブール値
読み込み中...
返品
grants
配列
読み込み中...
authorization
オブジェクト
読み込み中...
@type
文字列
読み込み中...
max_tokens
文字列
読み込み中...
allow_list
オブジェクト
読み込み中...
住所
配列
読み込み中...
authorization_type
文字列
読み込み中...
msg
文字列
読み込み中...
expiration
文字列
読み込み中...
pagination
オブジェクト
読み込み中...
next_key
文字列
読み込み中...
合計
文字列
読み込み中...
リクエスト
1curl --location 'https://docs-demo.celestia-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants?granter=celestia1c6q873ef2xlau9f7fmg5l3rq07w2ery80jjjal&grantee=celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025'
1curl --location 'https://docs-demo.celestia-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants?granter=celestia1c6q873ef2xlau9f7fmg5l3rq07w2ery80jjjal&grantee=celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025'
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.Grants(context.Background(), &authz.QueryGrantsRequest{Granter: "celestia1c6q873ef2xlau9f7fmg5l3rq07w2ery80jjjal", Grantee: "celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025"})22もし err != nil {23log.致命的な(err)24}25for _, grant := range resp.Grants {26fmt.Printf("granter %s, grantee %s, grants authorization: %s\n", grant.Granter, grant.Grantee, grant.Authorization.GetTypeUrl())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.Grants(context.Background(), &authz.QueryGrantsRequest{Granter: "celestia1c6q873ef2xlau9f7fmg5l3rq07w2ery80jjjal", Grantee: "celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025"})22もし err != nil {23log.致命的な(err)24}25for _, grant := range resp.Grants {26fmt.Printf("granter %s, grantee %s, grants authorization: %s\n", grant.Granter, grant.Grantee, grant.Authorization.GetTypeUrl())27}28}29
1const requestOptions = {2メソッド: "GET",3リダイレクト: "follow"4};56fetch("https://docs-demo.celestia-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants?granter=celestia1c6q873ef2xlau9f7fmg5l3rq07w2ery80jjjal&grantee=celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025", requestOptions)7.その後((レスポンス) => レスポンス.text())8.その後((結果) => コンソール.log(result))9.catch((エラー) => コンソール.エラー(エラー));
1const requestOptions = {2メソッド: "GET",3リダイレクト: "follow"4};56fetch("https://docs-demo.celestia-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants?granter=celestia1c6q873ef2xlau9f7fmg5l3rq07w2ery80jjjal&grantee=celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025", requestOptions)7.その後((レスポンス) => レスポンス.text())8.その後((結果) => コンソール.log(result))9.catch((エラー) => コンソール.エラー(エラー));
1import リクエスト23url = "https://docs-demo.celestia-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants?granter=celestia1c6q873ef2xlau9f7fmg5l3rq07w2ery80jjjal&grantee=celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025"45ペイロード = {}6ヘッダー = {}78回答 = リクエスト.リクエスト("GET", url, headers=headers, データ=ペイロード)910印刷(レスポンス.text)11
1import リクエスト23url = "https://docs-demo.celestia-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants?granter=celestia1c6q873ef2xlau9f7fmg5l3rq07w2ery80jjjal&grantee=celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025"45ペイロード = {}6ヘッダー = {}78回答 = リクエスト.リクエスト("GET", url, headers=headers, データ=ペイロード)910印刷(レスポンス.text)11
1require "uri"2require "net/http"34url = URI("https://docs-demo.celestia-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants?granter=celestia1c6q873ef2xlau9f7fmg5l3rq07w2ery80jjjal&grantee=celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025")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.celestia-mainnet.quiknode.pro/cosmos/authz/v1beta1/grants?granter=celestia1c6q873ef2xlau9f7fmg5l3rq07w2ery80jjjal&grantee=celestia1n6m4p3crzghhf45glt08x68tt5c646qwppx025")56https = ネット::HTTP.new(url.ホスト, url.ポート)7https.use_ssl = true89リクエスト = ネット::HTTP::Get.new(url)1011回答 = https.リクエスト(リクエスト)12レスポンスを格納する.read_body13