sui_tryMultiGetPastObjects RPC Method
参数
object_id
字符串
必填
正在加载...
版本
整数
必填
正在加载...
ObjectDataOptions
对象
正在加载...
showBcs
布尔型
正在加载...
showContent
布尔型
正在加载...
showDisplay
布尔型
正在加载...
showOwner
布尔型
正在加载...
showPreviousTransaction
布尔型
正在加载...
showStorageRebate
布尔型
正在加载...
showType
布尔型
正在加载...
退货
结果
对象
正在加载...
状态
字符串
正在加载...
details
对象
正在加载...
objectId
字符串
正在加载...
版本
字符串
正在加载...
digest
字符串
正在加载...
类型
字符串
正在加载...
owner
对象
正在加载...
AddressOwner
字符串
正在加载...
previousTransaction
字符串
正在加载...
storageRebate
字符串
正在加载...
content
对象
正在加载...
dataType
字符串
正在加载...
类型
字符串
正在加载...
hasPublicTransfer
布尔型
正在加载...
fields
对象
正在加载...
id
对象
正在加载...
id
字符串
正在加载...
owner
字符串
正在加载...
请求
1curl --location 'https://docs-demo.sui-mainnet.quiknode.pro/' \2--header 'Content-Type: application/json' \3--data '{4"jsonrpc": "2.0",5"id": 1,6"method": "sui_tryMultiGetPastObjects",7"params": [8[9{10"objectId": "0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627",11"version": "39221891"12}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}'
1curl --location 'https://docs-demo.sui-mainnet.quiknode.pro/' \2--header 'Content-Type: application/json' \3--data '{4"jsonrpc": "2.0",5"id": 1,6"method": "sui_tryMultiGetPastObjects",7"params": [8[9{10"objectId": "0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627",11"version": "39221891"12}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}'
1const myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34const raw = JSON.stringify({5“jsonrpc”: "2.0",6"id": 1,7"method": "sui_tryMultiGetPastObjects",8“params”: [9[10{11"objectId": "0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627",12"version": "39221891"13}14],15{16"showType": true,17"showOwner": true,18"showPreviousTransaction": true,19"showDisplay": false,20"showContent": true,21"showBcs": false,22"showStorageRebate": true23}24]25});2627const requestOptions = {28方法: "POST",29标题: myHeaders,30正文: raw,31重定向: "follow"32};3334fetch(“https://docs-demo.sui-mainnet.quiknode.pro/”, requestOptions)35.然后((响应) => 响应.文本())36.然后((结果) => 控制台.log(result))37.catch((error) => 控制台.错误(error));
1const myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34const raw = JSON.stringify({5“jsonrpc”: "2.0",6"id": 1,7"method": "sui_tryMultiGetPastObjects",8“params”: [9[10{11"objectId": "0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627",12"version": "39221891"13}14],15{16"showType": true,17"showOwner": true,18"showPreviousTransaction": true,19"showDisplay": false,20"showContent": true,21"showBcs": false,22"showStorageRebate": true23}24]25});2627const requestOptions = {28方法: "POST",29标题: myHeaders,30正文: raw,31重定向: "follow"32};3334fetch(“https://docs-demo.sui-mainnet.quiknode.pro/”, requestOptions)35.然后((响应) => 响应.文本())36.然后((结果) => 控制台.log(result))37.catch((error) => 控制台.错误(error));
1导入 请求2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/"56有效载荷 = json.dumps({7“jsonrpc”: "2.0",8"id": 1,9"method": "sui_tryMultiGetPastObjects",10“params”: [11[12{13"objectId": "0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627",14"version": "39221891"15}16],17{18"showType": True,19"showOwner": True,20"showPreviousTransaction": True,21"showDisplay": False,22"showContent": True,23"showBcs": False,24"showStorageRebate": True25}26]27})28标题 = {29“Content-Type”: 'application/json'30}3132回复 = 请求.请求("POST", url, headers=headers, data=有效载荷)3334打印(响应.text)35
1导入 请求2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/"56有效载荷 = json.dumps({7“jsonrpc”: "2.0",8"id": 1,9"method": "sui_tryMultiGetPastObjects",10“params”: [11[12{13"objectId": "0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627",14"version": "39221891"15}16],17{18"showType": True,19"showOwner": True,20"showPreviousTransaction": True,21"showDisplay": False,22"showContent": True,23"showBcs": False,24"showStorageRebate": True25}26]27})28标题 = {29“Content-Type”: 'application/json'30}3132回复 = 请求.请求("POST", url, headers=headers, data=有效载荷)3334打印(响应.text)35
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.sui-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::HTTP::POST.new(url)11请求["Content-Type"] = "application/json"12请求.请求体 = JSON.dump({13“jsonrpc”: "2.0",14"id": 1,15"method": "sui_tryMultiGetPastObjects",16“params”: [17[18{19"objectId": "0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627",20"version": "39221891"21}22],23{24"showType": true,25"showOwner": true,26"showPreviousTransaction": true,27"showDisplay": false,28"showContent": true,29"showBcs": false,30"showStorageRebate": true31}32]33})3435回复 = https.请求(请求)36返回响应.read_body37
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.sui-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::HTTP::POST.new(url)11请求["Content-Type"] = "application/json"12请求.请求体 = JSON.dump({13“jsonrpc”: "2.0",14"id": 1,15"method": "sui_tryMultiGetPastObjects",16“params”: [17[18{19"objectId": "0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627",20"version": "39221891"21}22],23{24"showType": true,25"showOwner": true,26"showPreviousTransaction": true,27"showDisplay": false,28"showContent": true,29"showBcs": false,30"showStorageRebate": true31}32]33})3435回复 = https.请求(请求)36返回响应.read_body37