/v1/tables/{table_handle}/raw_item REST API Endpoint
Please note that the get_raw_table_item requires only a serialized key comparing to the full move type information comparing to the get_table_item api, and can only return the query in the bcs format.
路徑參數
table_handle
字串
必填
載入中...
查詢參數
ledger_version
字串
必填
載入中...
身體參數
關鍵字
整數
必填
載入中...
退貨
結果
載入中...
請求
1curl --request POST \2--url https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/table_handle/raw_item \3--header 'Accept: application/json, application/x-bcs' \4--標頭 'Content-Type: application/json' \5--data '{6"key": "KEY_VALUE"7}'
1curl --request POST \2--url https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/table_handle/raw_item \3--header 'Accept: application/json, application/x-bcs' \4--標頭 'Content-Type: application/json' \5--data '{6"key": "KEY_VALUE"7}'
1var myHeaders = new Headers();2myHeaders.append("Accept", "application/json, application/x-bcs");3myHeaders.追加("Content-Type", "application/json");45var raw = JSON.stringify({6"key": "KEY_VALUE"7});89var requestOptions = {10方法: 'POST',11標題: myHeaders,12正文: 原始,13redirect: 'follow'14};1516fetch("https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/table_handle/raw_item", requestOptions)17.then(response => response.text())18.then(result => console.log(result))19.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.append("Accept", "application/json, application/x-bcs");3myHeaders.追加("Content-Type", "application/json");45var raw = JSON.stringify({6"key": "KEY_VALUE"7});89var requestOptions = {10方法: 'POST',11標題: myHeaders,12正文: 原始,13redirect: 'follow'14};1516fetch("https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/table_handle/raw_item", requestOptions)17.then(response => response.text())18.then(result => console.log(result))19.catch(error => console.log('error', error));
1匯入 請求2import json34url = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/table_handle/raw_item'56標題 = {7'Accept': 'application/json, application/x-bcs',8「Content-Type」: 'application/json'9}1011資料 = {12"key": "KEY_VALUE"13}1415response = requests.post(url, headers=headers, json=data)16print(response.json())17
1匯入 請求2import json34url = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/table_handle/raw_item'56標題 = {7'Accept': 'application/json, application/x-bcs',8「Content-Type」: 'application/json'9}1011資料 = {12"key": "KEY_VALUE"13}1415response = requests.post(url, headers=headers, json=data)16print(response.json())17
1需要 'net/http'2require 'json'34url = URI.parse('https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/table_handle/raw_item')5http = Net::HTTP.new(url.host, url.port)6http.use_ssl = true78標題 = {9'Accept' => 'application/json, application/x-bcs',10'Content-Type' => 'application/json'11}1213資料 = {14"key" => "KEY_VALUE"15}1617request = Net::HTTP::Post.new(url.path, headers)18請求。正文 = data.to_json1920回應 = http.請求(請求)21將回應。正文22
1需要 'net/http'2require 'json'34url = URI.parse('https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/table_handle/raw_item')5http = Net::HTTP.new(url.host, url.port)6http.use_ssl = true78標題 = {9'Accept' => 'application/json, application/x-bcs',10'Content-Type' => 'application/json'11}1213資料 = {14"key" => "KEY_VALUE"15}1617request = Net::HTTP::Post.new(url.path, headers)18請求。正文 = data.to_json1920回應 = http.請求(請求)21將回應。正文22