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--데이터 '{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--데이터 '{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.추가("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 = {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 ($after: String) { checkpoints(first: 5, after: $after) { pageInfo { hasNextPage endCursor } nodes { digest timestamp } } }",7"variables": {8"after": 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 ($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, 헤더=헤더, 데이터=페이로드)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, 헤더=헤더, 데이터=페이로드)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 ($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 = 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 ($after: String) { checkpoints(first: 5, after: $after) { pageInfo { hasNextPage endCursor } nodes { digest timestamp } } }",15"variables" => {16"after" => nil17}18})1920답변 = https.요청(요청)21응답을 반환합니다.read_body22