Get Checkpoints Backward
参数
before
字符串
正在加载...
退货
数据
对象
正在加载...
checkpoints
对象
正在加载...
pageInfo
对象
正在加载...
hasPreviousPage
布尔型
正在加载...
startCursor
字符串
正在加载...
nodes
数组
正在加载...
digest
字符串
正在加载...
时间戳
字符串
正在加载...
请求
1curl --location 'https://docs-demo.sui-mainnet.quiknode.pro/graphql' \2--header 'Accept: application/json' \3--header '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--header '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.append("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正文: raw,16重定向: "follow"17};1819fetch("https://docs-demo.sui-mainnet.quiknode.pro/graphql", requestOptions)20.然后((响应) => 响应.文本())21.然后((结果) => 控制台.log(result))22.catch((error) => 控制台.错误(error));23
1const myHeaders = new Headers();2myHeaders.append("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正文: raw,16重定向: "follow"17};1819fetch("https://docs-demo.sui-mainnet.quiknode.pro/graphql", requestOptions)20.然后((响应) => 响应.文本())21.然后((结果) => 控制台.log(result))22.catch((error) => 控制台.错误(error));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
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.sui-mainnet.quiknode.pro/graphql")67https = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::HTTP::POST.new(url)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
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.sui-mainnet.quiknode.pro/graphql")67https = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::HTTP::POST.new(url)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