/wallet/getaccountbalance REST API Endpoint
신체 매개변수
account_identifier
객체
필수
로딩 중...
주소
문자열
로딩 중...
block_identifier
객체
필수
로딩 중...
해시
문자열
로딩 중...
숫자
정수
로딩 중...
visible
부울
로딩 중...
반품
균형
로딩 중...
block_identifier
로딩 중...
해시
로딩 중...
숫자
로딩 중...
요청
1curl --location 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance' \2--header 'accept: application/json' \3--헤더 '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--헤더 '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.추가("accept", "application/json");3myHeaders.추가("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.그런 다음((결과) => console.log(result))26.catchcatch ((오류) => 콘솔.오류(오류));
1const myHeaders = new Headers();2myHeaders.추가("accept", "application/json");3myHeaders.추가("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.그런 다음((결과) => console.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'수락': 'application/json',18'content-type': 'application/json'19}2021답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)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'수락': 'application/json',18'content-type': 'application/json'19}2021답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)2223인쇄(응답.text)24
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance")67https = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(URL)11요청["수락"] = "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 = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(URL)11요청["수락"] = "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