Find Objects by Type
Parameters
This method does not accept any parameters
Returns
data
object
Loading...
objects
object
Loading...
nodes
array
Loading...
node
object
Loading...
address
string
Loading...
digest
string
Loading...
asMoveObject
object
Loading...
contents
object
Loading...
json
object
Loading...
id
string
Loading...
package
string
Loading...
module_name
string
Loading...
Request
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.append("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 = {10method: "POST",11headers: myHeaders,12body: raw,13redirect: "follow"14};1516fetch("https://docs-demo.sui-mainnet.quiknode.pro/graphql", requestOptions)17.then((response) => response.text())18.then((result) => console.log(result))19.catch((error) => console.error(error));20
1const myHeaders = new Headers();2myHeaders.append("Accept", "application/json");3myHeaders.append("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 = {10method: "POST",11headers: myHeaders,12body: raw,13redirect: "follow"14};1516fetch("https://docs-demo.sui-mainnet.quiknode.pro/graphql", requestOptions)17.then((response) => response.text())18.then((result) => console.log(result))19.catch((error) => console.error(error));20
1import requests2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/graphql"56payload = json.dumps({7"query": "query { objects(filter: { type: \"0x2::package::Publisher\" }) { nodes { address digest asMoveObject { contents { json } } } } }"8})9headers = {10'Accept': 'application/json',11'Content-Type': 'application/json'12}1314response = requests.request("POST", url, headers=headers, data=payload)1516print(response.text)17
1import requests2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/graphql"56payload = json.dumps({7"query": "query { objects(filter: { type: \"0x2::package::Publisher\" }) { nodes { address digest asMoveObject { contents { json } } } } }"8})9headers = {10'Accept': 'application/json',11'Content-Type': 'application/json'12}1314response = requests.request("POST", url, headers=headers, data=payload)1516print(response.text)17
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.sui-mainnet.quiknode.pro/graphql")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Accept"] = "application/json"12request["Content-Type"] = "application/json"13request.body = JSON.dump({14"query" => "query { objects(filter: { type: \"0x2::package::Publisher\" }) { nodes { address digest asMoveObject { contents { json } } } } }"15})1617response = https.request(request)18puts response.read_body19
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.sui-mainnet.quiknode.pro/graphql")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Accept"] = "application/json"12request["Content-Type"] = "application/json"13request.body = JSON.dump({14"query" => "query { objects(filter: { type: \"0x2::package::Publisher\" }) { nodes { address digest asMoveObject { contents { json } } } } }"15})1617response = https.request(request)18puts response.read_body19
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free