/walletsolidity/getblockbylimitnext REST API Endpoint
身体参数
startNum
整数
必填
正在加载...
endNum
整数
必填
正在加载...
退货
块
正在加载...
blockID
正在加载...
block_header
正在加载...
原始数据
正在加载...
数字
正在加载...
txTrieRoot
正在加载...
witness_address
正在加载...
parentHash
正在加载...
accountStateRoot
正在加载...
witness_id
正在加载...
版本
正在加载...
时间戳
正在加载...
witness_signature
正在加载...
请求
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getblockbylimitnext \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"startNum": 1,7"endNum": 58}9'
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getblockbylimitnext \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"startNum": 1,7"endNum": 58}9'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getblockbylimitnext';2const 头文件 = {3“接受”: 'application/json',4“Content-Type”: 'application/json'5};67const data = {8startNum: 1,9endNum: 510};1112fetch(url, {13方法: 'POST',14标题: 标题:,15body: JSON.stringify(data)16})17.然后(响应 => 响应.json())18.然后(结果 => {19控制台.日志(结果);20})21.catch(error => {22控制台.错误(错误);23});24
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getblockbylimitnext';2const 头文件 = {3“接受”: 'application/json',4“Content-Type”: 'application/json'5};67const data = {8startNum: 1,9endNum: 510};1112fetch(url, {13方法: 'POST',14标题: 标题:,15body: JSON.stringify(data)16})17.然后(响应 => 响应.json())18.然后(结果 => {19控制台.日志(结果);20})21.catch(error => {22控制台.错误(错误);23});24
1导入 请求23url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getblockbylimitnext'45标题 = {6“接受”: 'application/json',7“content-type”: 'application/json'8}910数据 = {11"startNum": 1,12"endNum": 513}1415response = requests.post(url, json=data, headers=headers)1617if response.status_code == 200:18print(response.json())19else:20print("Request failed with status code:", response.status_code)21
1导入 请求23url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getblockbylimitnext'45标题 = {6“接受”: 'application/json',7“content-type”: 'application/json'8}910数据 = {11"startNum": 1,12"endNum": 513}1415response = requests.post(url, json=data, headers=headers)1617if response.status_code == 200:18print(response.json())19else:20print("Request failed with status code:", response.status_code)21
1require 'net/http'2require 'json'3require 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getblockbylimitnext')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910标题 = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415数据 = {16startNum: 1,17endNum: 518}1920请求 = Net::HTTP::POST.new(url)21请求.请求体 = data.to_json22headers.each { |key, value| request[key] = value }2324回复 = http.请求(请求)2526if response.code.to_i == 20027result = JSON.parse(response.body)28puts result29else30puts "Request failed with status code: #{response.code}"31结束32
1require 'net/http'2require 'json'3require 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getblockbylimitnext')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910标题 = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415数据 = {16startNum: 1,17endNum: 518}1920请求 = Net::HTTP::POST.new(url)21请求.请求体 = data.to_json22headers.each { |key, value| request[key] = value }2324回复 = http.请求(请求)2526if response.code.to_i == 20027result = JSON.parse(response.body)28puts result29else30puts "Request failed with status code: #{response.code}"31结束32