/wallet/getblock REST API Endpoint
신체 매개변수
id_or_num
정수
필수
로딩 중...
상세 정보
부울
로딩 중...
반품
blockID
로딩 중...
block_header
로딩 중...
raw_data
로딩 중...
숫자
로딩 중...
txTrieRoot
로딩 중...
witness_address
로딩 중...
parentHash
로딩 중...
accountStateRoot
로딩 중...
witness_id
로딩 중...
버전
로딩 중...
타임스탬프
로딩 중...
witness_signature
로딩 중...
요청
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblock \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"id_or_num": "1000000",7"detail": false8}9'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblock \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"id_or_num": "1000000",7"detail": false8}9'
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblock', {2메서드: 'POST',3headers: {4'Accept': 'application/json',5'Content-Type': 'application/json'6},7body: JSON.stringify({8id_or_num: '1000000',9detail: false10})11})12.그런 다음(응답 => 응답.json())13.then(data => {14// Handle the response data15console.log(data);16})17.catchcatch (error => {18// Handle any errors19콘솔.오류(오류);20});21
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblock', {2메서드: 'POST',3headers: {4'Accept': 'application/json',5'Content-Type': 'application/json'6},7body: JSON.stringify({8id_or_num: '1000000',9detail: false10})11})12.그런 다음(응답 => 응답.json())13.then(data => {14// Handle the response data15console.log(data);16})17.catchcatch (error => {18// Handle any errors19콘솔.오류(오류);20});21
1import 요청2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblock'5헤더 = {6'Accept': 'application/json',7'Content-Type': 'application/json'8}9데이터 = {10'id_or_num': '1000000',11'detail': False12}1314답변 = 요청.post(url, 헤더=헤더, data=json.dumps(data))15if response.status_code == 200:16result = response.json()17# Handle the response data18print(result)19else:20# Handle any errors21print('Request failed with status code', response.status_code)22print(response.text)23
1import 요청2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblock'5헤더 = {6'Accept': 'application/json',7'Content-Type': 'application/json'8}9데이터 = {10'id_or_num': '1000000',11'detail': False12}1314답변 = 요청.post(url, 헤더=헤더, data=json.dumps(data))15if response.status_code == 200:16result = response.json()17# Handle the response data18print(result)19else:20# Handle any errors21print('Request failed with status code', response.status_code)22print(response.text)23
1require 'net/http'2require 'json'3필수 'uri'45url = URI.parse('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblock')6http = Net::HTTP.new(url.host, url.port)78request = Net::HTTP::Post.new(url.path, { 'Content-Type' => 'application/json', 'Accept' => 'application/json' })9request.body = { id_or_num: '1000000', detail: false }.to_json1011답변 = http.요청(요청)1213if response.code.to_i == 20014result = JSON.parse(response.body)15# Handle the response data16puts result17else18# Handle any errors19puts 'Request failed with status code ' + response.code20puts response.body21끝22
1require 'net/http'2require 'json'3필수 'uri'45url = URI.parse('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getblock')6http = Net::HTTP.new(url.host, url.port)78request = Net::HTTP::Post.new(url.path, { 'Content-Type' => 'application/json', 'Accept' => 'application/json' })9request.body = { id_or_num: '1000000', detail: false }.to_json1011답변 = http.요청(요청)1213if response.code.to_i == 20014result = JSON.parse(response.body)15# Handle the response data16puts result17else18# Handle any errors19puts 'Request failed with status code ' + response.code20puts response.body21끝22