Get All Dynamic Fields
Parâmetros
id
cadeia de caracteres
OBRIGATÓRIO
Carregando...
Devoluções
dados
objeto
Carregando...
morada
objeto
Carregando...
dynamicFields
objeto
Carregando...
nodes
matriz
Carregando...
nome
objeto
Carregando...
tipo
objeto
Carregando...
repr
cadeia de caracteres
Carregando...
json
cadeia de caracteres
Carregando...
valor
objeto
Carregando...
__typename
cadeia de caracteres
Carregando...
tipo
objeto
Carregando...
repr
cadeia de caracteres
Carregando...
json
objeto
Carregando...
Pedido
1curl --location 'https://docs-demo.sui-mainnet.quiknode.pro/graphql' \2--header 'Accept: application/json' \3--cabeçalho 'Content-Type: application/json' \4--dados '{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--header 'Accept: application/json' \3--cabeçalho 'Content-Type: application/json' \4--dados '{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");3myHeaders.acrescentar("Content-Type", "application/json");45const raw = 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 = {13method: "POST",14cabeçalhos: myHeaders,15body: raw,16redirecionar: "seguir"17};1819fetch("https://docs-demo.sui-mainnet.quiknode.pro/graphql", requestOptions)20.então((resposta) => resposta.texto())21.então((resultado) => console.log(resultado))22.catch((error) => console.error(error));23
1const myHeaders = new Headers();2myHeaders.append("Accept", "application/json");3myHeaders.acrescentar("Content-Type", "application/json");45const raw = 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 = {13method: "POST",14cabeçalhos: myHeaders,15body: raw,16redirecionar: "seguir"17};1819fetch("https://docs-demo.sui-mainnet.quiknode.pro/graphql", requestOptions)20.então((resposta) => resposta.texto())21.então((resultado) => console.log(resultado))22.catch((error) => console.error(error));23
1importar pedidos2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/graphql"56carga útil = 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})12cabeçalhos = {13«Aceitar»: 'application/json',14'Content-Type': 'application/json'15}1617resposta = pedidos.pedido("POST", url, headers=headers, dados=carga útil)1819imprimir(resposta.texto)20
1importar pedidos2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/graphql"56carga útil = 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})12cabeçalhos = {13«Aceitar»: 'application/json',14'Content-Type': 'application/json'15}1617resposta = pedidos.pedido("POST", url, headers=headers, dados=carga útil)1819imprimir(resposta.texto)20
1exigir "uri"2require "json"3necessita de "net/http"45url = URI("https://docs-demo.sui-mainnet.quiknode.pro/graphql")67https = Net::HTTP.novo(url.host, url.porta)8https.use_ssl = true910pedido = Líquido::HTTP::POST.novo(url)11pedido[«Aceitar»] = "application/json"12pedido["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})1920resposta = https.pedido(pedido)21insere a resposta.read_body22
1exigir "uri"2require "json"3necessita de "net/http"45url = URI("https://docs-demo.sui-mainnet.quiknode.pro/graphql")67https = Net::HTTP.novo(url.host, url.porta)8https.use_ssl = true910pedido = Líquido::HTTP::POST.novo(url)11pedido[«Aceitar»] = "application/json"12pedido["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})1920resposta = https.pedido(pedido)21insere a resposta.read_body22
Ainda não tem uma conta?
Crieendpoint seuendpoint Quicknode endpoint segundos e comece a desenvolver
Comece gratuitamente