/v1/tables/{table_handle}/item REST API 端點
路徑參數
table_handle
字串
必填
載入中...
查詢參數
ledger_version
字串
載入中...
身體參數
key_type
字串
必填
載入中...
value_type
字串
必填
載入中...
關鍵字
字串
必填
載入中...
退貨
結果
載入中...
請求
1curl --request POST \2--url https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca/item \3--標頭 '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--標頭 '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 標頭 = {5「Content-Type」: 'application/json'6};7const data = JSON.stringify({8key_type: '地址',9value_type: 'u128',10關鍵字: '0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935'11});1213取得(url, {14方法: 'POST',15標題: 標頭:,16正文: 資料17})18.接著(回應 => response.json())19.接著(結果 => {20// Process the response21控制台.日誌(結果);22})23.catchcatch(錯誤 => {24// Handle the error25控制台.錯誤(錯誤);26});27
1const fetch = require('node-fetch');23const url = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca/item';4const 標頭 = {5「Content-Type」: 'application/json'6};7const data = JSON.stringify({8key_type: '地址',9value_type: 'u128',10關鍵字: '0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935'11});1213取得(url, {14方法: 'POST',15標題: 標頭:,16正文: 資料17})18.接著(回應 => response.json())19.接著(結果 => {20// Process the response21控制台.日誌(結果);22})23.catchcatch(錯誤 => {24// Handle the error25控制台.錯誤(錯誤);26});27
1匯入 請求2import json34網址 = "https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca/item"5headers = {'Content-Type': 'application/json'}67資料 = {8"key_type": "地址",9"value_type": "u128",10"key": "0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935"11}1213回應 = 請求.POST(url, 標頭=headers, data=json.dumps(data))14
1匯入 請求2import json34網址 = "https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca/item"5headers = {'Content-Type': 'application/json'}67資料 = {8"key_type": "地址",9"value_type": "u128",10"key": "0x0619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935"11}1213回應 = 請求.POST(url, 標頭=headers, data=json.dumps(data))14
1需要 'net/http'2需要 'uri'3require 'json'45uri = URI.解析(「https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/0x982be82410ddc6480dc8976e2866a2c7d162ee9d02d97ee842ac38b0b105086/item」)6頁首 = {'Content-Type' => 'application/json'}78資料 = {9"key" => {10「系列」 => 「Aptos Zero」,11「創作者」 => "0xabf3630d0532fef81dfe610dd4def095070d91e344d475051e1c49da5e6d51c3",12"名稱" => "Aptos Zero:1"13},14"key_type" => "0x3::token::TokenDataId",15"value_type" => "0x3::token::TokenData"16}1718http = 網::HTTP.new(uri.主機, uri.port)19http.use_ssl = true20請求 = 淨::HTTP::POST.new(URI.request_uri, header)21請求。正文 = data.to_json22回應 = http.請求(請求)23
1需要 'net/http'2需要 'uri'3require 'json'45uri = URI.解析(「https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/0x982be82410ddc6480dc8976e2866a2c7d162ee9d02d97ee842ac38b0b105086/item」)6頁首 = {'Content-Type' => 'application/json'}78資料 = {9"key" => {10「系列」 => 「Aptos Zero」,11「創作者」 => "0xabf3630d0532fef81dfe610dd4def095070d91e344d475051e1c49da5e6d51c3",12"名稱" => "Aptos Zero:1"13},14"key_type" => "0x3::token::TokenDataId",15"value_type" => "0x3::token::TokenData"16}1718http = 網::HTTP.new(uri.主機, uri.port)19http.use_ssl = true20請求 = 淨::HTTP::POST.new(URI.request_uri, header)21請求。正文 = data.to_json22回應 = http.請求(請求)23