Get Checkpoints Backward
參數
之前
字串
載入中...
退貨
資料
物件
載入中...
checkpoints
物件
載入中...
pageInfo
物件
載入中...
hasPreviousPage
布林值
載入中...
startCursor
字串
載入中...
節點
陣列
載入中...
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 ($before: String) { checkpoints(last: 5, before: $before) { pageInfo { hasPreviousPage startCursor } nodes { digest timestamp } } }",6"variables": {7"before": 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 ($before: String) { checkpoints(last: 5, before: $before) { pageInfo { hasPreviousPage startCursor } nodes { digest timestamp } } }",6"variables": {7"before": null8}9}'10
1const myHeaders = new Headers();2myHeaders.追加("Accept", "application/json");3myHeaders.追加("Content-Type", "application/json");45const raw = JSON.stringify({6"query": "query ($before: String) { checkpoints(last: 5, before: $before) { pageInfo { hasPreviousPage startCursor } nodes { digest timestamp } } }",7"variables": {8"before": null9}10});1112const requestOptions = {13方法: 「POST」,14標題: myHeaders,15正文: 原始,16重定向: 「追蹤」17};1819fetch("https://docs-demo.sui-mainnet.quiknode.pro/graphql", requestOptions)20.接著((回應) => 回應.文字())21.接著((結果) => 控制台.log(結果))22.catch((錯誤) => 控制台.錯誤(錯誤));23
1const myHeaders = new Headers();2myHeaders.追加("Accept", "application/json");3myHeaders.追加("Content-Type", "application/json");45const raw = JSON.stringify({6"query": "query ($before: String) { checkpoints(last: 5, before: $before) { pageInfo { hasPreviousPage startCursor } nodes { digest timestamp } } }",7"variables": {8"before": null9}10});1112const requestOptions = {13方法: 「POST」,14標題: myHeaders,15正文: 原始,16重定向: 「追蹤」17};1819fetch("https://docs-demo.sui-mainnet.quiknode.pro/graphql", requestOptions)20.接著((回應) => 回應.文字())21.接著((結果) => 控制台.log(結果))22.catch((錯誤) => 控制台.錯誤(錯誤));23
1匯入 請求2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/graphql"56有效載荷 = json.dumps({7"query": "query ($before: String) { checkpoints(last: 5, before: $before) { pageInfo { hasPreviousPage startCursor } nodes { digest timestamp } } }",8"variables": {9"before": None10}11})12標題 = {13「接受」: 'application/json',14「Content-Type」: 'application/json'15}1617回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1819列印(回應.text)20
1匯入 請求2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/graphql"56有效載荷 = json.dumps({7"query": "query ($before: String) { checkpoints(last: 5, before: $before) { pageInfo { hasPreviousPage startCursor } nodes { digest timestamp } } }",8"variables": {9"before": None10}11})12標題 = {13「接受」: 'application/json',14「Content-Type」: 'application/json'15}1617回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1819列印(回應.text)20
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.sui-mainnet.quiknode.pro/graphql")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求[「接受」] = "application/json"12請求["Content-Type"] = "application/json"13請求。正文 = JSON.dump({14"query" => "query ($before: String) { checkpoints(last: 5, before: $before) { pageInfo { hasPreviousPage startCursor } nodes { digest timestamp } } }",15"variables" => {16"before" => nil17}18})1920回應 = https.請求(請求)21將回應。read_body22
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.sui-mainnet.quiknode.pro/graphql")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求[「接受」] = "application/json"12請求["Content-Type"] = "application/json"13請求。正文 = JSON.dump({14"query" => "query ($before: String) { checkpoints(last: 5, before: $before) { pageInfo { hasPreviousPage startCursor } nodes { digest timestamp } } }",15"variables" => {16"before" => nil17}18})1920回應 = https.請求(請求)21將回應。read_body22