Get Checkpoints Forward
パラメータ
after
文字列
読み込み中...
返します
データ
オブジェクト
読み込み中...
checkpoints
オブジェクト
読み込み中...
pageInfo
オブジェクト
読み込み中...
hasNextPage
ブール値
読み込み中...
endCursor
文字列
読み込み中...
nodes
配列
読み込み中...
digest
文字列
読み込み中...
タイムスタンプ
文字列
読み込み中...
リクエスト
1curl --location 'https://docs-demo.sui-mainnet.quiknode.pro/graphql' \2--header 'Accept: application/json' \3--ヘッダー 'Content-Type: application/json' \4--data '{5"query": "query ($after: String) { checkpoints(first: 5, after: $after) { pageInfo { hasNextPage endCursor } nodes { digest timestamp } } }",6"variables": {7"after": null8}9}'10
1curl --location 'https://docs-demo.sui-mainnet.quiknode.pro/graphql' \2--header 'Accept: application/json' \3--ヘッダー 'Content-Type: application/json' \4--data '{5"query": "query ($after: String) { checkpoints(first: 5, after: $after) { pageInfo { hasNextPage endCursor } nodes { digest timestamp } } }",6"variables": {7"after": null8}9}'10
1const myHeaders = new Headers();2myHeaders.append("Accept", "application/json");3myHeaders.append("Content-Type", "application/json");45const raw = JSON.stringify({6"query": "query ($after: String) { checkpoints(first: 5, after: $after) { pageInfo { hasNextPage endCursor } nodes { digest timestamp } } }",7"variables": {8"after": null9}10});1112const requestOptions = {13method: "POST",14ヘッダー: myHeaders,15本文: raw,16リダイレクト: "follow"17};1819fetch("https://docs-demo.sui-mainnet.quiknode.pro/graphql", requestOptions)20.その後((レスポンス) => レスポンス.text())21.その後((結果) => コンソール.log(result))22.catch((error) => console.error(error));23
1const myHeaders = new Headers();2myHeaders.append("Accept", "application/json");3myHeaders.append("Content-Type", "application/json");45const raw = JSON.stringify({6"query": "query ($after: String) { checkpoints(first: 5, after: $after) { pageInfo { hasNextPage endCursor } nodes { digest timestamp } } }",7"variables": {8"after": null9}10});1112const requestOptions = {13method: "POST",14ヘッダー: myHeaders,15本文: raw,16リダイレクト: "follow"17};1819fetch("https://docs-demo.sui-mainnet.quiknode.pro/graphql", requestOptions)20.その後((レスポンス) => レスポンス.text())21.その後((結果) => コンソール.log(result))22.catch((error) => console.error(error));23
1import リクエスト2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/graphql"56ペイロード = json.dumps({7"query": "query ($after: String) { checkpoints(first: 5, after: $after) { pageInfo { hasNextPage endCursor } nodes { digest timestamp } } }",8"variables": {9"after": None10}11})12ヘッダー = {13「承諾」: 'application/json',14「Content-Type」: 'application/json'15}1617回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)1819印刷(レスポンス.text)20
1import リクエスト2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/graphql"56ペイロード = json.dumps({7"query": "query ($after: String) { checkpoints(first: 5, after: $after) { pageInfo { hasNextPage endCursor } nodes { digest timestamp } } }",8"variables": {9"after": None10}11})12ヘッダー = {13「承諾」: 'application/json',14「Content-Type」: 'application/json'15}1617回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)1819印刷(レスポンス.text)20
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.sui-mainnet.quiknode.pro/graphql")67https = ネット::HTTP.new(url.ホスト, url.ポート)8https.use_ssl = true910リクエスト = ネット::HTTP::POST.new(URL)11request["Accept"] = "application/json"12リクエスト["Content-Type"] = "application/json"13リクエスト.本文 = JSON.dump({14"query" => "query ($after: String) { checkpoints(first: 5, after: $after) { pageInfo { hasNextPage endCursor } nodes { digest timestamp } } }",15"variables" => {16"after" => nil17}18})1920回答 = https.リクエスト(リクエスト)21レスポンスを格納する.read_body22
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.sui-mainnet.quiknode.pro/graphql")67https = ネット::HTTP.new(url.ホスト, url.ポート)8https.use_ssl = true910リクエスト = ネット::HTTP::POST.new(URL)11request["Accept"] = "application/json"12リクエスト["Content-Type"] = "application/json"13リクエスト.本文 = JSON.dump({14"query" => "query ($after: String) { checkpoints(first: 5, after: $after) { pageInfo { hasNextPage endCursor } nodes { digest timestamp } } }",15"variables" => {16"after" => nil17}18})1920回答 = https.リクエスト(リクエスト)21レスポンスを格納する.read_body22