listAddressTransactions クエリ
パラメータ
住所
文字列
必須
読み込み中...
返品
データ
オブジェクト
読み込み中...
所有者ごとの取引数
オブジェクト
読み込み中...
ノード
配列
読み込み中...
id
文字列
読み込み中...
入力
配列
読み込み中...
__typename
文字列
読み込み中...
所有者
文字列
読み込み中...
utxoId
文字列
読み込み中...
金額
文字列
読み込み中...
assetId
文字列
読み込み中...
出力
配列
読み込み中...
__typename
文字列
読み込み中...
~へ
文字列
読み込み中...
金額
文字列
読み込み中...
assetId
文字列
読み込み中...
ステータス
オブジェクト
読み込み中...
__typename
文字列
読み込み中...
リクエスト
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 Transactions($address: Address) { transactionsByOwner(owner: $address, first: 5) { nodes { id inputs { __typename ... on InputCoin { owner utxoId amount assetId } ... on InputContract { utxoId contractId } ... on InputMessage { sender recipient amount data } } outputs { __typename ... on CoinOutput { to amount assetId } ... on ContractOutput { inputIndex balanceRoot stateRoot } ... on ChangeOutput { to amount assetId } ... on VariableOutput { to amount assetId } ... on ContractCreated { contract stateRoot } } status { __typename ... on FailureStatus { reason programState { returnType } } } } } }",6"variables": {7"address": "0xf65d6448a273b531ee942c133bb91a6f904c7d7f3104cdaf6b9f7f50d3518871"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 Transactions($address: Address) { transactionsByOwner(owner: $address, first: 5) { nodes { id inputs { __typename ... on InputCoin { owner utxoId amount assetId } ... on InputContract { utxoId contractId } ... on InputMessage { sender recipient amount data } } outputs { __typename ... on CoinOutput { to amount assetId } ... on ContractOutput { inputIndex balanceRoot stateRoot } ... on ChangeOutput { to amount assetId } ... on VariableOutput { to amount assetId } ... on ContractCreated { contract stateRoot } } status { __typename ... on FailureStatus { reason programState { returnType } } } } } }",6"variables": {7"address": "0xf65d6448a273b531ee942c133bb91a6f904c7d7f3104cdaf6b9f7f50d3518871"8}9}'
1const TRANSACTIONS_QUERY = `2query Transactions($address: Address) {3transactionsByOwner(owner: $address, first: 5) {4nodes {5id6inputs {7__typename8... InputCoin において {9所有者10utxoId11金額12assetId13}14... InputContract について {15utxoId16contractId17}18... InputMessage が発生したとき {19送信者20受取人21金額22データ23}24}25outputs {26__typename27... CoinOutput において {28~へ29金額30assetId31}32... ContractOutput において {33inputIndex34balanceRoot35stateRoot36}37... ChangeOutput において {38~へ39金額40assetId41}42... VariableOutput について {43~へ44金額45assetId46}47... ContractCreated イベントで {48契約49stateRoot50}51}52status {53__typename54... FailureStatus について {55理由56programState {57戻り値の型58}59}60}61}62}63}64`;6566const TRANSACTIONS_VARS = {67住所: '0xf65d6448a273b531ee942c133bb91a6f904c7d7f3104cdaf6b9f7f50d3518871',68};6970const fetchTransactions = async () => {71試す {72const response = await fetch('https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql', {73メソッド: 'POST',74headers: {75「承諾」: 'application/json',76「Content-Type」: 'application/json',77},78body: JSON.stringify({79クエリ: TRANSACTIONS_QUERY,80変数: TRANSACTIONS_VARS,81}),82});8384もし (!レスポンス.ok) {85throw new Error(`HTTP error! status: ${response.status}`);86}8788const result = await response.json();89コンソール.log('トランザクション:', result.data.所有者ごとの取引数.ノード);90} catch (エラー) {91コンソール.エラー('トランザクションの取得中にエラーが発生しました:', エラー);92}93};9495fetchTransactions();96
1const TRANSACTIONS_QUERY = `2query Transactions($address: Address) {3transactionsByOwner(owner: $address, first: 5) {4nodes {5id6inputs {7__typename8... InputCoin において {9所有者10utxoId11金額12assetId13}14... InputContract について {15utxoId16contractId17}18... InputMessage が発生したとき {19送信者20受取人21金額22データ23}24}25outputs {26__typename27... CoinOutput において {28~へ29金額30assetId31}32... ContractOutput において {33inputIndex34balanceRoot35stateRoot36}37... ChangeOutput において {38~へ39金額40assetId41}42... VariableOutput について {43~へ44金額45assetId46}47... ContractCreated イベントで {48契約49stateRoot50}51}52status {53__typename54... FailureStatus について {55理由56programState {57戻り値の型58}59}60}61}62}63}64`;6566const TRANSACTIONS_VARS = {67住所: '0xf65d6448a273b531ee942c133bb91a6f904c7d7f3104cdaf6b9f7f50d3518871',68};6970const fetchTransactions = async () => {71試す {72const response = await fetch('https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql', {73メソッド: 'POST',74headers: {75「承諾」: 'application/json',76「Content-Type」: 'application/json',77},78body: JSON.stringify({79クエリ: TRANSACTIONS_QUERY,80変数: TRANSACTIONS_VARS,81}),82});8384もし (!レスポンス.ok) {85throw new Error(`HTTP error! status: ${response.status}`);86}8788const result = await response.json();89コンソール.log('トランザクション:', result.data.所有者ごとの取引数.ノード);90} catch (エラー) {91コンソール.エラー('トランザクションの取得中にエラーが発生しました:', エラー);92}93};9495fetchTransactions();96
1const myHeaders = new Headers();2myHeaders.append("Accept", "application/json");3myHeaders.append("Content-Type", "application/json");45const raw = JSON.stringify({6"query": "query Transactions($address: Address) { transactionsByOwner(owner: $address, first: 5) { nodes { id inputs { __typename ... on InputCoin { owner utxoId amount assetId } ... on InputContract { utxoId contractId } ... on InputMessage { sender recipient amount data } } outputs { __typename ... on CoinOutput { to amount assetId } ... on ContractOutput { inputIndex balanceRoot stateRoot } ... on ChangeOutput { to amount assetId } ... on VariableOutput { to amount assetId } ... on ContractCreated { contract stateRoot } } status { __typename ... on FailureStatus { reason programState { returnType } } } } } }",7"variables": {8「住所」: "0xf65d6448a273b531ee942c133bb91a6f904c7d7f3104cdaf6b9f7f50d3518871"9}10});1112const requestOptions = {13メソッド: "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.catchcatch((エラー) => コンソール.エラー(エラー));
1const myHeaders = new Headers();2myHeaders.append("Accept", "application/json");3myHeaders.append("Content-Type", "application/json");45const raw = JSON.stringify({6"query": "query Transactions($address: Address) { transactionsByOwner(owner: $address, first: 5) { nodes { id inputs { __typename ... on InputCoin { owner utxoId amount assetId } ... on InputContract { utxoId contractId } ... on InputMessage { sender recipient amount data } } outputs { __typename ... on CoinOutput { to amount assetId } ... on ContractOutput { inputIndex balanceRoot stateRoot } ... on ChangeOutput { to amount assetId } ... on VariableOutput { to amount assetId } ... on ContractCreated { contract stateRoot } } status { __typename ... on FailureStatus { reason programState { returnType } } } } } }",7"variables": {8「住所」: "0xf65d6448a273b531ee942c133bb91a6f904c7d7f3104cdaf6b9f7f50d3518871"9}10});1112const requestOptions = {13メソッド: "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.catchcatch((エラー) => コンソール.エラー(エラー));
1const { ApolloClient, InMemoryCache, gql } = require('@apollo/client/core');2const fetch = require('cross-fetch');34const クライアント = new ApolloClient({5uri: 『https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql』,6キャッシュ: new InMemoryCache:(),7fetch: fetch,8headers: {9「承諾」: 'application/json',10「Content-Type」: 'application/json'11}12});1314const 所有者別トランザクション照会 = gql`15query Transactions($address: Address) {16transactionsByOwner(owner: $address, first: 5) {17ノード {18id19入力 {20__typename21... on InputCoin {22所有者23utxoId24金額25assetId26}27... on InputContract {28utxoId29contractId30}31... on InputMessage {32送信者33受取人34金額35データ36}37}38出力 {39__typename40... on CoinOutput {41~へ42金額43assetId44}45... on ContractOutput {46inputIndex47balanceRoot48stateRoot49}50... on ChangeOutput {51~へ52金額53assetId54}55... on VariableOutput {56~へ57金額58assetId59}60... 作成日 ContractCreated {61契約62stateRoot63}64}65ステータス {66__typename67... on FailureStatus {68理由69programState {70戻り値の型71}72}73}74}75}76}77`;7879const 変数 = {80住所: "0xf65d6448a273b531ee942c133bb91a6f904c7d7f3104cdaf6b9f7f50d3518871"81};8283クライアント.クエリ({84クエリ: 所有者別トランザクション照会,85変数: 変数86})87.その後(結果 => {88コンソール.log('所有者別の取引:', JSON.stringify(result.data, null, 2));89})90.catchcatch(エラー => console.error('エラー:', エラー));
1const { ApolloClient, InMemoryCache, gql } = require('@apollo/client/core');2const fetch = require('cross-fetch');34const クライアント = new ApolloClient({5uri: 『https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql』,6キャッシュ: new InMemoryCache:(),7fetch: fetch,8headers: {9「承諾」: 'application/json',10「Content-Type」: 'application/json'11}12});1314const 所有者別トランザクション照会 = gql`15query Transactions($address: Address) {16transactionsByOwner(owner: $address, first: 5) {17ノード {18id19入力 {20__typename21... on InputCoin {22所有者23utxoId24金額25assetId26}27... on InputContract {28utxoId29contractId30}31... on InputMessage {32送信者33受取人34金額35データ36}37}38出力 {39__typename40... on CoinOutput {41~へ42金額43assetId44}45... on ContractOutput {46inputIndex47balanceRoot48stateRoot49}50... on ChangeOutput {51~へ52金額53assetId54}55... on VariableOutput {56~へ57金額58assetId59}60... 作成日 ContractCreated {61契約62stateRoot63}64}65ステータス {66__typename67... on FailureStatus {68理由69programState {70戻り値の型71}72}73}74}75}76}77`;7879const 変数 = {80住所: "0xf65d6448a273b531ee942c133bb91a6f904c7d7f3104cdaf6b9f7f50d3518871"81};8283クライアント.クエリ({84クエリ: 所有者別トランザクション照会,85変数: 変数86})87.その後(結果 => {88コンソール.log('所有者別の取引:', JSON.stringify(result.data, null, 2));89})90.catchcatch(エラー => console.error('エラー:', エラー));
1import リクエスト2import json34url = "https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql"56ペイロード = json.dumps({7"query": "query Transactions($address: Address) { transactionsByOwner(owner: $address, first: 5) { nodes { id inputs { __typename ... on InputCoin { owner utxoId amount assetId } ... on InputContract { utxoId contractId } ... on InputMessage { sender recipient amount data } } outputs { __typename ... on CoinOutput { to amount assetId } ... on ContractOutput { inputIndex balanceRoot stateRoot } ... on ChangeOutput { to amount assetId } ... on VariableOutput { to amount assetId } ... on ContractCreated { contract stateRoot } } status { __typename ... on FailureStatus { reason programState { returnType } } } } } }",8"variables": {9「住所」: "0xf65d6448a273b531ee942c133bb91a6f904c7d7f3104cdaf6b9f7f50d3518871"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 Transactions($address: Address) { transactionsByOwner(owner: $address, first: 5) { nodes { id inputs { __typename ... on InputCoin { owner utxoId amount assetId } ... on InputContract { utxoId contractId } ... on InputMessage { sender recipient amount data } } outputs { __typename ... on CoinOutput { to amount assetId } ... on ContractOutput { inputIndex balanceRoot stateRoot } ... on ChangeOutput { to amount assetId } ... on VariableOutput { to amount assetId } ... on ContractCreated { contract stateRoot } } status { __typename ... on FailureStatus { reason programState { returnType } } } } } }",8"variables": {9「住所」: "0xf65d6448a273b531ee942c133bb91a6f904c7d7f3104cdaf6b9f7f50d3518871"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)11リクエスト[「承諾」] = "application/json"12リクエスト["Content-Type"] = "application/json"13リクエスト.本文 = JSON.dump({14"query": "query Transactions(\$address: Address) { transactionsByOwner(owner: \$address, first: 5) { nodes { id inputs { __typename ... on InputCoin { owner utxoId amount assetId } ... on InputContract { utxoId contractId } ... on InputMessage { sender recipient amount data } } outputs { __typename ... on CoinOutput { to amount assetId } ... on ContractOutput { inputIndex balanceRoot stateRoot } ... on ChangeOutput { to amount assetId } ... on VariableOutput { to amount assetId } ... on ContractCreated { contract stateRoot } } status { __typename ... on FailureStatus { reason programState { returnType } } } } } }",15"variables": {16「住所」: "0xf65d6448a273b531ee942c133bb91a6f904c7d7f3104cdaf6b9f7f50d3518871"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)11リクエスト[「承諾」] = "application/json"12リクエスト["Content-Type"] = "application/json"13リクエスト.本文 = JSON.dump({14"query": "query Transactions(\$address: Address) { transactionsByOwner(owner: \$address, first: 5) { nodes { id inputs { __typename ... on InputCoin { owner utxoId amount assetId } ... on InputContract { utxoId contractId } ... on InputMessage { sender recipient amount data } } outputs { __typename ... on CoinOutput { to amount assetId } ... on ContractOutput { inputIndex balanceRoot stateRoot } ... on ChangeOutput { to amount assetId } ... on VariableOutput { to amount assetId } ... on ContractCreated { contract stateRoot } } status { __typename ... on FailureStatus { reason programState { returnType } } } } } }",15"variables": {16「住所」: "0xf65d6448a273b531ee942c133bb91a6f904c7d7f3104cdaf6b9f7f50d3518871"17}18})1920回答 = https.リクエスト(リクエスト)21レスポンスを格納する.read_body22