/v1/tables/{table_handle}/item REST API Endpoint
Path Parameters
table_handle
string
REQUIRED
Loading...
Query Parameters
ledger_version
string
Loading...
Body Parameters
key_type
string
REQUIRED
Loading...
value_type
string
REQUIRED
Loading...
key
string
REQUIRED
Loading...
Returns
result
Loading...
Request
1curl --request POST \2--url https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca/item \3--header 'Content-Type: application/json' \4--data '{5"key_type": "address",6"value_type": "u128",7"key": "0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935"8}'9
1curl --request POST \2--url https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca/item \3--header 'Content-Type: application/json' \4--data '{5"key_type": "address",6"value_type": "u128",7"key": "0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935"8}'9
1const fetch = require('node-fetch');23const url = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca/item';4const headers = {5'Content-Type': 'application/json'6};7const data = JSON.stringify({8key_type: 'address',9value_type: 'u128',10key: '0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935'11});1213fetch(url, {14method: 'POST',15headers: headers,16body: data17})18.then(response => response.json())19.then(result => {20// Process the response21console.log(result);22})23.catch(error => {24// Handle the error25console.error(error);26});27
1const fetch = require('node-fetch');23const url = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca/item';4const headers = {5'Content-Type': 'application/json'6};7const data = JSON.stringify({8key_type: 'address',9value_type: 'u128',10key: '0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935'11});1213fetch(url, {14method: 'POST',15headers: headers,16body: data17})18.then(response => response.json())19.then(result => {20// Process the response21console.log(result);22})23.catch(error => {24// Handle the error25console.error(error);26});27
1import requests2import json34url = "https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca/item"5headers = {'Content-Type': 'application/json'}67data = {8"key_type": "address",9"value_type": "u128",10"key": "0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935"11}1213response = requests.post(url, headers=headers, data=json.dumps(data))14
1import requests2import json34url = "https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca/item"5headers = {'Content-Type': 'application/json'}67data = {8"key_type": "address",9"value_type": "u128",10"key": "0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935"11}1213response = requests.post(url, headers=headers, data=json.dumps(data))14
1require 'net/http'2require 'uri'3require 'json'45uri = URI.parse("https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/0x982be82410ddc6480dc8976e2866a2c7d162ee9d02d97ee842ac38b0b105086/item")6header = {'Content-Type' => 'application/json'}78data = {9"key" => {10"collection" => "Aptos Zero",11"creator" => "0xabf3630d0532fef81dfe610dd4def095070d91e344d475051e1c49da5e6d51c3",12"name" => "Aptos Zero: 1"13},14"key_type" => "0x3::token::TokenDataId",15"value_type" => "0x3::token::TokenData"16}1718http = Net::HTTP.new(uri.host, uri.port)19http.use_ssl = true20request = Net::HTTP::Post.new(uri.request_uri, header)21request.body = data.to_json22response = http.request(request)23
1require 'net/http'2require 'uri'3require 'json'45uri = URI.parse("https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/0x982be82410ddc6480dc8976e2866a2c7d162ee9d02d97ee842ac38b0b105086/item")6header = {'Content-Type' => 'application/json'}78data = {9"key" => {10"collection" => "Aptos Zero",11"creator" => "0xabf3630d0532fef81dfe610dd4def095070d91e344d475051e1c49da5e6d51c3",12"name" => "Aptos Zero: 1"13},14"key_type" => "0x3::token::TokenDataId",15"value_type" => "0x3::token::TokenData"16}1718http = Net::HTTP.new(uri.host, uri.port)19http.use_ssl = true20request = Net::HTTP::Post.new(uri.request_uri, header)21request.body = data.to_json22response = http.request(request)23
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free