Get All Dynamic Fields
Paramètres
ID
chaîne de caractères
OBLIGATOIRE
Chargement...
Renvoie
données
objet
Chargement...
adresse
objet
Chargement...
dynamicFields
objet
Chargement...
nodes
tableau
Chargement...
nom
objet
Chargement...
type
objet
Chargement...
repr
chaîne de caractères
Chargement...
json
chaîne de caractères
Chargement...
valeur
objet
Chargement...
__typename
chaîne de caractères
Chargement...
type
objet
Chargement...
repr
chaîne de caractères
Chargement...
json
objet
Chargement...
Requête
1curl --location 'https://docs-demo.sui-mainnet.quiknode.pro/graphql' \2--en-tête 'Accept: application/json' \3--header 'Content-Type: application/json' \4--data '{5"query": "query ($id: SuiAddress!) { address(address: $id) { dynamicFields { nodes { name { ...Value } value { __typename ... on MoveValue { ...Value } ... on MoveObject { contents { ...Value } } } } } } } fragment Value on MoveValue { type { repr } json }",6"variables": {7"id": "0x27c4fdb3b846aa3ae4a65ef5127a309aa3c1f466671471a806d8912a18b253e8"8}9}'10
1curl --location 'https://docs-demo.sui-mainnet.quiknode.pro/graphql' \2--en-tête 'Accept: application/json' \3--header 'Content-Type: application/json' \4--data '{5"query": "query ($id: SuiAddress!) { address(address: $id) { dynamicFields { nodes { name { ...Value } value { __typename ... on MoveValue { ...Value } ... on MoveObject { contents { ...Value } } } } } } } fragment Value on MoveValue { type { repr } json }",6"variables": {7"id": "0x27c4fdb3b846aa3ae4a65ef5127a309aa3c1f466671471a806d8912a18b253e8"8}9}'10
1const myHeaders = new Headers();2myHeaders.append("Accept", "application/json");3mesEnTêtes.ajouter("Content-Type", "application/json");45const brut = JSON.stringify({6"query": "query ($id: SuiAddress!) { address(address: $id) { dynamicFields { nodes { name { ...Value } value { __typename ... on MoveValue { ...Value } ... on MoveObject { contents { ...Value } } } } } } } fragment Value on MoveValue { type { repr } json }",7"variables": {8"id": "0x27c4fdb3b846aa3ae4a65ef5127a309aa3c1f466671471a806d8912a18b253e8"9}10});1112const requestOptions = {13méthode: « POST »,14headers: myHeaders,15body: raw,16redirect: "follow"17};1819fetch("https://docs-demo.sui-mainnet.quiknode.pro/graphql", requestOptions)20.then((response) => response.text())21.then((result) => console.log(result))22.catch((erreur) => console.erreur(erreur));23
1const myHeaders = new Headers();2myHeaders.append("Accept", "application/json");3mesEnTêtes.ajouter("Content-Type", "application/json");45const brut = JSON.stringify({6"query": "query ($id: SuiAddress!) { address(address: $id) { dynamicFields { nodes { name { ...Value } value { __typename ... on MoveValue { ...Value } ... on MoveObject { contents { ...Value } } } } } } } fragment Value on MoveValue { type { repr } json }",7"variables": {8"id": "0x27c4fdb3b846aa3ae4a65ef5127a309aa3c1f466671471a806d8912a18b253e8"9}10});1112const requestOptions = {13méthode: « POST »,14headers: myHeaders,15body: raw,16redirect: "follow"17};1819fetch("https://docs-demo.sui-mainnet.quiknode.pro/graphql", requestOptions)20.then((response) => response.text())21.then((result) => console.log(result))22.catch((erreur) => console.erreur(erreur));23
1import requests2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/graphql"56payload = json.dumps({7"query": "query ($id: SuiAddress!) { address(address: $id) { dynamicFields { nodes { name { ...Value } value { __typename ... on MoveValue { ...Value } ... on MoveObject { contents { ...Value } } } } } } } fragment Value on MoveValue { type { repr } json }",8"variables": {9"id": "0x27c4fdb3b846aa3ae4a65ef5127a309aa3c1f466671471a806d8912a18b253e8"10}11})12headers = {13'Accept': 'application/json',14'Content-Type': 'application/json'15}1617response = requests.request("POST", url, headers=headers, data=payload)1819print(response.text)20
1import requests2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/graphql"56payload = json.dumps({7"query": "query ($id: SuiAddress!) { address(address: $id) { dynamicFields { nodes { name { ...Value } value { __typename ... on MoveValue { ...Value } ... on MoveObject { contents { ...Value } } } } } } } fragment Value on MoveValue { type { repr } json }",8"variables": {9"id": "0x27c4fdb3b846aa3ae4a65ef5127a309aa3c1f466671471a806d8912a18b253e8"10}11})12headers = {13'Accept': 'application/json',14'Content-Type': 'application/json'15}1617response = requests.request("POST", url, headers=headers, data=payload)1819print(response.text)20
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 ($id: SuiAddress!) { address(address: $id) { dynamicFields { nodes { name { ...Value } value { __typename ... on MoveValue { ...Value } ... on MoveObject { contents { ...Value } } } } } } } fragment Value on MoveValue { type { repr } json }",15"variables" => {16"id" => "0x27c4fdb3b846aa3ae4a65ef5127a309aa3c1f466671471a806d8912a18b253e8"17}18})1920response = https.request(request)21puts response.read_body22
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 ($id: SuiAddress!) { address(address: $id) { dynamicFields { nodes { name { ...Value } value { __typename ... on MoveValue { ...Value } ... on MoveObject { contents { ...Value } } } } } } } fragment Value on MoveValue { type { repr } json }",15"variables" => {16"id" => "0x27c4fdb3b846aa3ae4a65ef5127a309aa3c1f466671471a806d8912a18b253e8"17}18})1920response = https.request(request)21puts response.read_body22
Vous n'avez pas encore de compte ?
Créez votre endpoint Quicknode en quelques secondes et commencez à développer
Commencez gratuitement