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--헤더 'Content-Type: application/json' \4--데이터 '{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--데이터 '{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리디렉션: "팔로우"17};1819fetch("https://docs-demo.sui-mainnet.quiknode.pro/graphql", requestOptions)20.그런 다음((응답) => 응답.text())21.그런 다음((결과) => console.log(result))22.catch((error) => console.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리디렉션: "팔로우"17};1819fetch("https://docs-demo.sui-mainnet.quiknode.pro/graphql", requestOptions)20.그런 다음((응답) => 응답.text())21.그런 다음((결과) => console.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 ($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, 헤더=헤더, 데이터=페이로드)1819인쇄(응답.text)20
1import 요청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, 헤더=헤더, 데이터=페이로드)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요청 = 순::HTTP::POST.새(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요청 = 순::HTTP::POST.새(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