/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.
Path Parameters
table_handle
string
REQUIRED
Loading...
Query Parameters
ledger_version
string
REQUIRED
Loading...
Body Parameters
key
integer
REQUIRED
Loading...
Returns
result
Loading...
Request
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--header '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--header 'Content-Type: application/json' \5--data '{6"key": "KEY_VALUE"7}'
1var myHeaders = new Headers();2myHeaders.append("Accept", "application/json, application/x-bcs");3myHeaders.append("Content-Type", "application/json");45var raw = JSON.stringify({6"key": "KEY_VALUE"7});89var requestOptions = {10method: 'POST',11headers: myHeaders,12body: raw,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.append("Content-Type", "application/json");45var raw = JSON.stringify({6"key": "KEY_VALUE"7});89var requestOptions = {10method: 'POST',11headers: myHeaders,12body: raw,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));
1import requests2import json34url = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/table_handle/raw_item'56headers = {7'Accept': 'application/json, application/x-bcs',8'Content-Type': 'application/json'9}1011data = {12"key": "KEY_VALUE"13}1415response = requests.post(url, headers=headers, json=data)16print(response.json())17
1import requests2import json34url = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/table_handle/raw_item'56headers = {7'Accept': 'application/json, application/x-bcs',8'Content-Type': 'application/json'9}1011data = {12"key": "KEY_VALUE"13}1415response = requests.post(url, headers=headers, json=data)16print(response.json())17
1require '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 = true78headers = {9'Accept' => 'application/json, application/x-bcs',10'Content-Type' => 'application/json'11}1213data = {14"key" => "KEY_VALUE"15}1617request = Net::HTTP::Post.new(url.path, headers)18request.body = data.to_json1920response = http.request(request)21puts response.body22
1require '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 = true78headers = {9'Accept' => 'application/json, application/x-bcs',10'Content-Type' => 'application/json'11}1213data = {14"key" => "KEY_VALUE"15}1617request = Net::HTTP::Post.new(url.path, headers)18request.body = data.to_json1920response = http.request(request)21puts response.body22
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free