listAddressMessages Query
パラメータ
住所
文字列
必須
読み込み中...
返します
データ
オブジェクト
読み込み中...
ブロック
オブジェクト
読み込み中...
金額
文字列
読み込み中...
sender
文字列
読み込み中...
recipient
文字列
読み込み中...
nonce
文字列
読み込み中...
データ
文字列
読み込み中...
リクエスト
1curl --location 'https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql' \2--header 'Accept: application/json' \3--ヘッダー 'Content-Type: application/json' \4--data '{5"query": "query MessageInfo($address: Address) { messages(owner: $address, first: 5) { nodes { amount sender recipient nonce data daHeight } } }",6"variables": {7"address": "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"8}9}'
1curl --location 'https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql' \2--header 'Accept: application/json' \3--ヘッダー 'Content-Type: application/json' \4--data '{5"query": "query MessageInfo($address: Address) { messages(owner: $address, first: 5) { nodes { amount sender recipient nonce data daHeight } } }",6"variables": {7"address": "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"8}9}'
1const MESSAGE_INFO_QUERY = `2query MessageInfo($address: Address) {3messages(owner: $address, first: 5) {4nodes {5金額6sender7recipient8nonce9データ10daHeight11}12}13}14`;1516const QUERY_VARIABLES = {17address: '0xce9f8d9367fc4671c0ececce7ab603f6f75d1e66082a82ad12ecdc219b308820',18};1920const fetchMessageInfo = async () => {21try {22const response = await fetch('https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql', {23method: 'POST',24headers: {25'Accept': 'application/json',26'Content-Type': 'application/json',27},28body: JSON.stringify({29query: MESSAGE_INFO_QUERY,30variables: QUERY_VARIABLES,31}),32});3334if (!response.ok) {35throw new Error(`HTTP error! status: ${response.status}`);36}3738const result = await response.json();39console.log('Messages:', result.data.messages.nodes);40} catch (error) {41console.error('Error fetching messages:', error);42}43};4445fetchMessageInfo();46
1const MESSAGE_INFO_QUERY = `2query MessageInfo($address: Address) {3messages(owner: $address, first: 5) {4nodes {5金額6sender7recipient8nonce9データ10daHeight11}12}13}14`;1516const QUERY_VARIABLES = {17address: '0xce9f8d9367fc4671c0ececce7ab603f6f75d1e66082a82ad12ecdc219b308820',18};1920const fetchMessageInfo = async () => {21try {22const response = await fetch('https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql', {23method: 'POST',24headers: {25'Accept': 'application/json',26'Content-Type': 'application/json',27},28body: JSON.stringify({29query: MESSAGE_INFO_QUERY,30variables: QUERY_VARIABLES,31}),32});3334if (!response.ok) {35throw new Error(`HTTP error! status: ${response.status}`);36}3738const result = await response.json();39console.log('Messages:', result.data.messages.nodes);40} catch (error) {41console.error('Error fetching messages:', error);42}43};4445fetchMessageInfo();46
1const myHeaders = new Headers();2myHeaders.append("Accept", "application/json");3myHeaders.append("Content-Type", "application/json");45const raw = JSON.stringify({6"query": "query MessageInfo($address: Address) { messages(owner: $address, first: 5) { nodes { amount sender recipient nonce data daHeight } } }",7"variables": {8"address": "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"9}10});1112const requestOptions = {13method: "POST",14ヘッダー: myHeaders,15本文: raw,16リダイレクト: "follow"17};1819fetch("https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql", requestOptions)20.その後((レスポンス) => レスポンス.text())21.その後((結果) => コンソール.log(result))22.catch((エラー) => コンソール.エラー(エラー));
1const myHeaders = new Headers();2myHeaders.append("Accept", "application/json");3myHeaders.append("Content-Type", "application/json");45const raw = JSON.stringify({6"query": "query MessageInfo($address: Address) { messages(owner: $address, first: 5) { nodes { amount sender recipient nonce data daHeight } } }",7"variables": {8"address": "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"9}10});1112const requestOptions = {13method: "POST",14ヘッダー: myHeaders,15本文: raw,16リダイレクト: "follow"17};1819fetch("https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql", requestOptions)20.その後((レスポンス) => レスポンス.text())21.その後((結果) => コンソール.log(result))22.catch((エラー) => コンソール.エラー(エラー));
1const { ApolloClient, InMemoryCache, gql } = require('@apollo/client/core');2const fetch = require('cross-fetch');34const client = new ApolloClient({5uri: 'https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql',6cache: new InMemoryCache(),7fetch: fetch,8headers: {9「承諾」: 'application/json',10「Content-Type」: 'application/json'11}12});1314const MESSAGE_INFO_QUERY = gql`15query MessageInfo($address: Address) {16messages(owner: $address, first: 5) {17nodes {18金額19sender20recipient21nonce22データ23daHeight24}25}26}27`;2829const variables = {30address: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"31};3233client.query({34query: MESSAGE_INFO_QUERY,35variables: variables36})37.then(result => {38console.log('Message Information:', JSON.stringify(result.data, null, 2));39})40.catch(error => console.error('Error:', error));
1const { ApolloClient, InMemoryCache, gql } = require('@apollo/client/core');2const fetch = require('cross-fetch');34const client = new ApolloClient({5uri: 'https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql',6cache: new InMemoryCache(),7fetch: fetch,8headers: {9「承諾」: 'application/json',10「Content-Type」: 'application/json'11}12});1314const MESSAGE_INFO_QUERY = gql`15query MessageInfo($address: Address) {16messages(owner: $address, first: 5) {17nodes {18金額19sender20recipient21nonce22データ23daHeight24}25}26}27`;2829const variables = {30address: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"31};3233client.query({34query: MESSAGE_INFO_QUERY,35variables: variables36})37.then(result => {38console.log('Message Information:', JSON.stringify(result.data, null, 2));39})40.catch(error => console.error('Error:', error));
1import リクエスト2import json34url = "https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql"56ペイロード = json.dumps({7"query": "query MessageInfo($address: Address) { messages(owner: $address, first: 5) { nodes { amount sender recipient nonce data daHeight } } }",8"variables": {9"address": "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"10}11})12ヘッダー = {13「承諾」: 'application/json',14「Content-Type」: 'application/json'15}1617回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)1819印刷(レスポンス.text)20
1import リクエスト2import json34url = "https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql"56ペイロード = json.dumps({7"query": "query MessageInfo($address: Address) { messages(owner: $address, first: 5) { nodes { amount sender recipient nonce data daHeight } } }",8"variables": {9"address": "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"10}11})12ヘッダー = {13「承諾」: 'application/json',14「Content-Type」: 'application/json'15}1617回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)1819印刷(レスポンス.text)20
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql")67https = ネット::HTTP.new(url.ホスト, url.ポート)8https.use_ssl = true910リクエスト = ネット::HTTP::POST.new(URL)11request["Accept"] = "application/json"12リクエスト["Content-Type"] = "application/json"13リクエスト.本文 = JSON.dump({14"query": "query MessageInfo(\$address: Address) { messages(owner: \$address, first: 5) { nodes { amount sender recipient nonce data daHeight } } }",15"variables": {16"address": "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"17}18})1920回答 = https.リクエスト(リクエスト)21レスポンスを格納する.read_body22
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql")67https = ネット::HTTP.new(url.ホスト, url.ポート)8https.use_ssl = true910リクエスト = ネット::HTTP::POST.new(URL)11request["Accept"] = "application/json"12リクエスト["Content-Type"] = "application/json"13リクエスト.本文 = JSON.dump({14"query": "query MessageInfo(\$address: Address) { messages(owner: \$address, first: 5) { nodes { amount sender recipient nonce data daHeight } } }",15"variables": {16"address": "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"17}18})1920回答 = https.リクエスト(リクエスト)21レスポンスを格納する.read_body22