/cosmos/gov/v1beta1/params/{params_type} REST API Endpoint
パスパラメータ
param_type
文字列
必須
読み込み中...
返品
voting_params
オブジェクト
読み込み中...
voting_period
文字列
読み込み中...
expedited_voting_period
文字列
読み込み中...
deposit_params
オブジェクト
読み込み中...
min_deposit
文字列
読み込み中...
max_deposit_period
文字列
読み込み中...
min_expedited_deposit
配列
読み込み中...
tally_params
オブジェクト
読み込み中...
quorum
文字列
読み込み中...
threshold
文字列
読み込み中...
veto_threshold
文字列
読み込み中...
expedited_quorum
文字列
読み込み中...
expedited_threshold
文字列
読み込み中...
リクエスト
1curl --location 'https://docs-demo.sei-pacific.quiknode.pro/cosmos/gov/v1beta1/params/voting'
1curl --location 'https://docs-demo.sei-pacific.quiknode.pro/cosmos/gov/v1beta1/params/voting'
1パッケージ main23import (4「文脈」5gov "cosmossdk.io/api/cosmos/gov/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.閉じる()1920governance := gov.NewQueryClient(grpcConn)21resp, err := governance.Params(context.Background(), &gov.QueryParamsRequest{ParamsType: "voting"})22もし err != nil {23log.致命的な(err)24}25fmt.Println(resp.String())26}27
1パッケージ main23import (4「文脈」5gov "cosmossdk.io/api/cosmos/gov/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.閉じる()1920governance := gov.NewQueryClient(grpcConn)21resp, err := governance.Params(context.Background(), &gov.QueryParamsRequest{ParamsType: "voting"})22もし err != nil {23log.致命的な(err)24}25fmt.Println(resp.String())26}27
1const myHeaders = new Headers();2myHeaders.append("Accept", "*/*");34const requestOptions = {5メソッド: "GET",6ヘッダー: myHeaders,7リダイレクト: "follow"8};910fetch("https://docs-demo.sei-pacific.quiknode.pro/cosmos/gov/v1beta1/params/voting", requestOptions)11.その後((レスポンス) => レスポンス.text())12.その後((結果) => コンソール.log(result))13.catchcatch((エラー) => コンソール.エラー(エラー));
1const myHeaders = new Headers();2myHeaders.append("Accept", "*/*");34const requestOptions = {5メソッド: "GET",6ヘッダー: myHeaders,7リダイレクト: "follow"8};910fetch("https://docs-demo.sei-pacific.quiknode.pro/cosmos/gov/v1beta1/params/voting", requestOptions)11.その後((レスポンス) => レスポンス.text())12.その後((結果) => コンソール.log(result))13.catchcatch((エラー) => コンソール.エラー(エラー));
1import リクエスト23url = "https://docs-demo.sei-pacific.quiknode.pro/cosmos/gov/v1beta1/params/voting"45ペイロード = {}6ヘッダー = {7'Accept': '*/*'8}910回答 = リクエスト.リクエスト("GET", url, headers=headers, データ=ペイロード)1112印刷(レスポンス.text)13
1import リクエスト23url = "https://docs-demo.sei-pacific.quiknode.pro/cosmos/gov/v1beta1/params/voting"45ペイロード = {}6ヘッダー = {7'Accept': '*/*'8}910回答 = リクエスト.リクエスト("GET", url, headers=headers, データ=ペイロード)1112印刷(レスポンス.text)13
1require "uri"2require "net/http"34url = URI("https://docs-demo.sei-pacific.quiknode.pro/cosmos/gov/v1beta1/params/voting")56https = ネット::HTTP.new(url.ホスト, url.ポート)7https.use_ssl = true89リクエスト = ネット::HTTP::Get.new(url)10request["Accept"] = "*/*"1112回答 = https.リクエスト(リクエスト)13レスポンスを格納する.read_body14
1require "uri"2require "net/http"34url = URI("https://docs-demo.sei-pacific.quiknode.pro/cosmos/gov/v1beta1/params/voting")56https = ネット::HTTP.new(url.ホスト, url.ポート)7https.use_ssl = true89リクエスト = ネット::HTTP::Get.new(url)10request["Accept"] = "*/*"1112回答 = https.リクエスト(リクエスト)13レスポンスを格納する.read_body14