/walletsolidity/getblock REST API Endpoint
शरीर के मापदंड
id_or_num
पूर्णांक
आवश्यक
लोड हो रहा है...
विवरण
बूलियन
लोड हो रहा है...
रिटर्न
blockID
लोड हो रहा है...
block_header
लोड हो रहा है...
raw_data
लोड हो रहा है...
number
लोड हो रहा है...
txTrieRoot
लोड हो रहा है...
witness_address
लोड हो रहा है...
parentHash
लोड हो रहा है...
accountStateRoot
लोड हो रहा है...
witness_id
लोड हो रहा है...
version
लोड हो रहा है...
TIMESTAMP
लोड हो रहा है...
witness_signature
लोड हो रहा है...
अनुरोध
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/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/walletsolidity/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/walletsolidity/getblock', {2तरीका : 'डाक' ,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. कैच ( त्रुटि => {18// Handle any errors19कंसोल.त्रुटि ( त्रुटि ) ;20} ) ;21
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getblock', {2तरीका : 'डाक' ,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. कैच ( त्रुटि => {18// Handle any errors19कंसोल.त्रुटि ( त्रुटि ) ;20} ) ;21
1आयात अनुरोध2आयात करें json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getblock'5हेडर = {6'Accept': 'application/json',7'Content-Type': 'application/json'8}9डेटा = {10'id_or_num': '1000000',11'detail': False12}1314प्रतिक्रिया = अनुरोध.पोस्ट ( यूआरएल , हेडर = हेडर , डेटा = JSON . डंप ( डेटा ) )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
1आयात अनुरोध2आयात करें json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getblock'5हेडर = {6'Accept': 'application/json',7'Content-Type': 'application/json'8}9डेटा = {10'id_or_num': '1000000',11'detail': False12}1314प्रतिक्रिया = अनुरोध.पोस्ट ( यूआरएल , हेडर = हेडर , डेटा = JSON . डंप ( डेटा ) )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
1ज़रूरत होना 'नेट/http'2ज़रूरत होना 'जेसन'3ज़रूरत होना 'यूआरआई'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
1ज़रूरत होना 'नेट/http'2ज़रूरत होना 'जेसन'3ज़रूरत होना 'यूआरआई'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
अब तक कोई खाता नहीं है?
कुछ ही सेकंड में अपना क्विकनोड एंडपॉइंट बनाएं और निर्माण शुरू करें।
मुफ़्त में शुरुआत करें