sui_multiGetObjects RPC Method
參數
object_id
陣列
必填
載入中...
ObjectDataOptions
物件
載入中...
showBcs
布林值
載入中...
showContent
布林值
載入中...
showDisplay
布林值
載入中...
showOwner
布林值
載入中...
showPreviousTransaction
布林值
載入中...
showStorageRebate
布林值
載入中...
showType
布林值
載入中...
退貨
結果
陣列
載入中...
資料
物件
載入中...
objectId
字串
載入中...
版本
字串
載入中...
digest
字串
載入中...
類型
字串
載入中...
所有者
物件
載入中...
AddressOwner
字串
載入中...
previousTransaction
字串
載入中...
storageRebate
字串
載入中...
content
物件
載入中...
dataType
字串
載入中...
類型
字串
載入中...
hasPublicTransfer
布林值
載入中...
fields
物件
載入中...
id
物件
載入中...
id
字串
載入中...
所有者
字串
載入中...
請求
1curl --location 'https://docs-demo.sui-mainnet.quiknode.pro/' \2--標頭 'Content-Type: application/json' \3--data '{4"jsonrpc": "2.0",5"id": 1,6"method": "sui_multiGetObjects",7"params": [8[9"0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627"10],11{12"showType": true,13"showOwner": true,14"showPreviousTransaction": true,15"showDisplay": false,16"showContent": true,17"showBcs": false,18"showStorageRebate": true19}20]21}22'
1curl --location 'https://docs-demo.sui-mainnet.quiknode.pro/' \2--標頭 'Content-Type: application/json' \3--data '{4"jsonrpc": "2.0",5"id": 1,6"method": "sui_multiGetObjects",7"params": [8[9"0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627"10],11{12"showType": true,13"showOwner": true,14"showPreviousTransaction": true,15"showDisplay": false,16"showContent": true,17"showBcs": false,18"showStorageRebate": true19}20]21}22'
1const myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34const raw = JSON.stringify({5"jsonrpc": "2.0",6"id": 1,7"method": "sui_multiGetObjects",8"params": [9[10"0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627"11],12{13"showType": true,14"showOwner": true,15"showPreviousTransaction": true,16"showDisplay": false,17"showContent": true,18"showBcs": false,19"showStorageRebate": true20}21]22});2324const requestOptions = {25方法: 「POST」,26標題: myHeaders,27正文: 原始,28重定向: 「追蹤」29};3031fetch("https://docs-demo.sui-mainnet.quiknode.pro/", requestOptions)32.接著((回應) => 回應.文字())33.接著((結果) => 控制台.log(結果))34.catch((錯誤) => 控制台.錯誤(錯誤));
1const myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34const raw = JSON.stringify({5"jsonrpc": "2.0",6"id": 1,7"method": "sui_multiGetObjects",8"params": [9[10"0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627"11],12{13"showType": true,14"showOwner": true,15"showPreviousTransaction": true,16"showDisplay": false,17"showContent": true,18"showBcs": false,19"showStorageRebate": true20}21]22});2324const requestOptions = {25方法: 「POST」,26標題: myHeaders,27正文: 原始,28重定向: 「追蹤」29};3031fetch("https://docs-demo.sui-mainnet.quiknode.pro/", requestOptions)32.接著((回應) => 回應.文字())33.接著((結果) => 控制台.log(結果))34.catch((錯誤) => 控制台.錯誤(錯誤));
1匯入 請求2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/"56有效載荷 = json.dumps({7"jsonrpc": "2.0",8"id": 1,9"method": "sui_multiGetObjects",10"params": [11[12"0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627"13],14{15"showType": True,16"showOwner": True,17"showPreviousTransaction": True,18"showDisplay": False,19"showContent": True,20"showBcs": False,21"showStorageRebate": True22}23]24})25標題 = {26「Content-Type」: 'application/json'27}2829回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)3031列印(回應.text)32
1匯入 請求2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/"56有效載荷 = json.dumps({7"jsonrpc": "2.0",8"id": 1,9"method": "sui_multiGetObjects",10"params": [11[12"0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627"13],14{15"showType": True,16"showOwner": True,17"showPreviousTransaction": True,18"showDisplay": False,19"showContent": True,20"showBcs": False,21"showStorageRebate": True22}23]24})25標題 = {26「Content-Type」: 'application/json'27}2829回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)3031列印(回應.text)32
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.sui-mainnet.quiknode.pro/")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["Content-Type"] = "application/json"12請求。正文 = JSON.dump({13"jsonrpc": "2.0",14"id": 1,15"method": "sui_multiGetObjects",16"params": [17[18"0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627"19],20{21"showType": true,22"showOwner": true,23"showPreviousTransaction": true,24"showDisplay": false,25"showContent": true,26"showBcs": false,27"showStorageRebate": true28}29]30})3132回應 = https.請求(請求)33將回應。read_body34
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.sui-mainnet.quiknode.pro/")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["Content-Type"] = "application/json"12請求。正文 = JSON.dump({13"jsonrpc": "2.0",14"id": 1,15"method": "sui_multiGetObjects",16"params": [17[18"0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627"19],20{21"showType": true,22"showOwner": true,23"showPreviousTransaction": true,24"showDisplay": false,25"showContent": true,26"showBcs": false,27"showStorageRebate": true28}29]30})3132回應 = https.請求(請求)33將回應。read_body34