Find Objects by Type
参数
该方法不接受任何参数
退货
数据
对象
正在加载...
objects
对象
正在加载...
nodes
数组
正在加载...
node
对象
正在加载...
地址
字符串
正在加载...
digest
字符串
正在加载...
asMoveObject
对象
正在加载...
contents
对象
正在加载...
json
对象
正在加载...
id
字符串
正在加载...
package
字符串
正在加载...
module_name
字符串
正在加载...
请求
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 { objects(filter: { type: \"0x2::package::Publisher\" }) { nodes { address digest asMoveObject { contents { json } } } } }"6}'7
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 { objects(filter: { type: \"0x2::package::Publisher\" }) { nodes { address digest asMoveObject { contents { json } } } } }"6}'7
1const myHeaders = new Headers();2myHeaders.append("Accept", "application/json");3myHeaders.追加("Content-Type", "application/json");45const raw = JSON.stringify({6"query": "query { objects(filter: { type: \"0x2::package::Publisher\" }) { nodes { address digest asMoveObject { contents { json } } } } }"7});89const requestOptions = {10方法: "POST",11标题: myHeaders,12正文: raw,13重定向: "follow"14};1516fetch("https://docs-demo.sui-mainnet.quiknode.pro/graphql", requestOptions)17.然后((响应) => 响应.文本())18.然后((结果) => 控制台.log(result))19.catch((error) => 控制台.错误(error));20
1const myHeaders = new Headers();2myHeaders.append("Accept", "application/json");3myHeaders.追加("Content-Type", "application/json");45const raw = JSON.stringify({6"query": "query { objects(filter: { type: \"0x2::package::Publisher\" }) { nodes { address digest asMoveObject { contents { json } } } } }"7});89const requestOptions = {10方法: "POST",11标题: myHeaders,12正文: raw,13重定向: "follow"14};1516fetch("https://docs-demo.sui-mainnet.quiknode.pro/graphql", requestOptions)17.然后((响应) => 响应.文本())18.然后((结果) => 控制台.log(result))19.catch((error) => 控制台.错误(error));20
1导入 请求2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/graphql"56有效载荷 = json.dumps({7"query": "query { objects(filter: { type: \"0x2::package::Publisher\" }) { nodes { address digest asMoveObject { contents { json } } } } }"8})9标题 = {10“接受”: 'application/json',11“Content-Type”: 'application/json'12}1314回复 = 请求.请求("POST", url, headers=headers, data=有效载荷)1516打印(响应.text)17
1导入 请求2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/graphql"56有效载荷 = json.dumps({7"query": "query { objects(filter: { type: \"0x2::package::Publisher\" }) { nodes { address digest asMoveObject { contents { json } } } } }"8})9标题 = {10“接受”: 'application/json',11“Content-Type”: 'application/json'12}1314回复 = 请求.请求("POST", url, headers=headers, data=有效载荷)1516打印(响应.text)17
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 { objects(filter: { type: \"0x2::package::Publisher\" }) { nodes { address digest asMoveObject { contents { json } } } } }"15})1617回复 = https.请求(请求)18返回响应.read_body19
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 { objects(filter: { type: \"0x2::package::Publisher\" }) { nodes { address digest asMoveObject { contents { json } } } } }"15})1617回复 = https.请求(请求)18返回响应.read_body19