/wallet/getaccountbalance REST API Endpoint
身体パラメータ
account_identifier
オブジェクト
必須
読み込み中...
住所
文字列
読み込み中...
block_identifier
オブジェクト
必須
読み込み中...
ハッシュ
文字列
読み込み中...
数
整数
読み込み中...
表示されている
ブール値
読み込み中...
返品
バランス
読み込み中...
block_identifier
読み込み中...
ハッシュ
読み込み中...
数
読み込み中...
リクエスト
1curl --location 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance' \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '{5"account_identifier": {6"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"7},8"block_identifier": {9"hash": "0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9",10"number": 6868211},12"visible": true13}'
1curl --location 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance' \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '{5"account_identifier": {6"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"7},8"block_identifier": {9"hash": "0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9",10"number": 6868211},12"visible": true13}'
1const myHeaders = new Headers();2myHeaders.append("accept", "application/json");3myHeaders.append("content-type", "application/json");45const raw = JSON.stringify({6"account_identifier": {7"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"8},9"block_identifier": {10"hash": "0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9",11"number": 6868212},13"visible": true14});1516const requestOptions = {17メソッド: "POST",18ヘッダー: myHeaders,19本文: raw,20リダイレクト: "follow"21};2223fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance", requestOptions)24.その後((レスポンス) => レスポンス.text())25.その後((結果) => コンソール.log(result))26.catchcatch((エラー) => コンソール.エラー(エラー));
1const myHeaders = new Headers();2myHeaders.append("accept", "application/json");3myHeaders.append("content-type", "application/json");45const raw = JSON.stringify({6"account_identifier": {7"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"8},9"block_identifier": {10"hash": "0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9",11"number": 6868212},13"visible": true14});1516const requestOptions = {17メソッド: "POST",18ヘッダー: myHeaders,19本文: raw,20リダイレクト: "follow"21};2223fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance", requestOptions)24.その後((レスポンス) => レスポンス.text())25.その後((結果) => コンソール.log(result))26.catchcatch((エラー) => コンソール.エラー(エラー));
1import リクエスト2import json34url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance"56ペイロード = json.dumps({7"account_identifier": {8"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"9},10"block_identifier": {11"hash": "0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9",12"number": 6868213},14"visible": True15})16ヘッダー = {17「accept」: 'application/json',18「content-type」: 'application/json'19}2021回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)2223印刷(レスポンス.text)24
1import リクエスト2import json34url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance"56ペイロード = json.dumps({7"account_identifier": {8"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"9},10"block_identifier": {11"hash": "0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9",12"number": 6868213},14"visible": True15})16ヘッダー = {17「accept」: 'application/json',18「content-type」: 'application/json'19}2021回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)2223印刷(レスポンス.text)24
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance")67https = ネット::HTTP.new(url.ホスト, url.ポート)8https.use_ssl = true910リクエスト = ネット::HTTP::POST.new(URL)11リクエスト["accept"] = "application/json"12リクエスト["content-type"] = "application/json"13リクエスト.本文 = JSON.dump({14"account_identifier": {15"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"16},17"block_identifier": {18"hash": "0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9",19"number": 6868220},21"visible": true22})2324回答 = https.リクエスト(リクエスト)25レスポンスを格納する.read_body26
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance")67https = ネット::HTTP.new(url.ホスト, url.ポート)8https.use_ssl = true910リクエスト = ネット::HTTP::POST.new(URL)11リクエスト["accept"] = "application/json"12リクエスト["content-type"] = "application/json"13リクエスト.本文 = JSON.dump({14"account_identifier": {15"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"16},17"block_identifier": {18"hash": "0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9",19"number": 6868220},21"visible": true22})2324回答 = https.リクエスト(リクエスト)25レスポンスを格納する.read_body26