/cosmos/slashing/v1beta1/signing_infos REST API Endpoint
パラメータ
このメソッドはパラメータを受け付けません
返品
情報
配列
読み込み中...
住所
文字列
読み込み中...
start_height
文字列
読み込み中...
index_offset
文字列
読み込み中...
jailed_until
文字列
読み込み中...
tombstoned
ブール値
読み込み中...
missed_blocks_counter
文字列
読み込み中...
pagination
オブジェクト
読み込み中...
next_key
文字列
読み込み中...
合計
文字列
読み込み中...
リクエスト
1curl --location 'https://docs-demo.injective-testnet.quiknode.pro/cosmos/slashing/v1beta1/signing_infos'
1curl --location 'https://docs-demo.injective-testnet.quiknode.pro/cosmos/slashing/v1beta1/signing_infos'
1パッケージ main23import (4「文脈」5slash "cosmossdk.io/api/cosmos/slashing/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.閉じる()1920slashing := slash.NewQueryClient(grpcConn)21resp, err := slashing.SigningInfos(context.Background(), &slash.QuerySigningInfosRequest{})22もし err != nil {23log.致命的な(err)24}25for _, info := range resp.Info {26fmt.Printf("Address: %s, Missed: %d\n", info.Address, info.GetMissedBlocksCounter())27}28}29
1パッケージ main23import (4「文脈」5slash "cosmossdk.io/api/cosmos/slashing/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.閉じる()1920slashing := slash.NewQueryClient(grpcConn)21resp, err := slashing.SigningInfos(context.Background(), &slash.QuerySigningInfosRequest{})22もし err != nil {23log.致命的な(err)24}25for _, info := range resp.Info {26fmt.Printf("Address: %s, Missed: %d\n", info.Address, info.GetMissedBlocksCounter())27}28}29
1const requestOptions = {2メソッド: "GET",3リダイレクト: "follow"4};56fetch("https://docs-demo.injective-testnet.quiknode.pro/cosmos/slashing/v1beta1/signing_infos", requestOptions)7.その後((レスポンス) => レスポンス.text())8.その後((結果) => コンソール.log(result))9.catch((エラー) => コンソール.エラー(エラー));
1const requestOptions = {2メソッド: "GET",3リダイレクト: "follow"4};56fetch("https://docs-demo.injective-testnet.quiknode.pro/cosmos/slashing/v1beta1/signing_infos", requestOptions)7.その後((レスポンス) => レスポンス.text())8.その後((結果) => コンソール.log(result))9.catch((エラー) => コンソール.エラー(エラー));
1import リクエスト23url = "https://docs-demo.injective-testnet.quiknode.pro/cosmos/slashing/v1beta1/signing_infos"45ペイロード = {}6ヘッダー = {}78回答 = リクエスト.リクエスト("GET", url, headers=headers, データ=ペイロード)910印刷(レスポンス.text)11
1import リクエスト23url = "https://docs-demo.injective-testnet.quiknode.pro/cosmos/slashing/v1beta1/signing_infos"45ペイロード = {}6ヘッダー = {}78回答 = リクエスト.リクエスト("GET", url, headers=headers, データ=ペイロード)910印刷(レスポンス.text)11
1require "uri"2require "net/http"34url = URI("https://docs-demo.injective-testnet.quiknode.pro/cosmos/slashing/v1beta1/signing_infos")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.injective-testnet.quiknode.pro/cosmos/slashing/v1beta1/signing_infos")56https = ネット::HTTP.new(url.ホスト, url.ポート)7https.use_ssl = true89リクエスト = ネット::HTTP::Get.new(url)1011回答 = https.リクエスト(リクエスト)12レスポンスを格納する.read_body13