sui_tryGetPastObject RPC Method
매개변수
object_id
문자열
필수
로딩 중...
버전
정수
필수
로딩 중...
ObjectDataOptions
객체
로딩 중...
showBcs
부울
로딩 중...
showContent
부울
로딩 중...
showDisplay
부울
로딩 중...
showOwner
부울
로딩 중...
showPreviousTransaction
부울
로딩 중...
showStorageRebate
부울
로딩 중...
showType
부울
로딩 중...
반품
결과
객체
로딩 중...
상태
문자열
로딩 중...
details
객체
로딩 중...
objectId
문자열
로딩 중...
버전
문자열
로딩 중...
요약
문자열
로딩 중...
유형
문자열
로딩 중...
소유자
객체
로딩 중...
주소 소유자
문자열
로딩 중...
previousTransaction
문자열
로딩 중...
저장 할인
문자열
로딩 중...
내용
객체
로딩 중...
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_tryGetPastObject",7"params": [8"0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627",939221891,10{11"showType": true,12"showOwner": true,13"showPreviousTransaction": true,14"showDisplay": false,15"showContent": true,16"showBcs": false,17"showStorageRebate": true18}19]20}'
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_tryGetPastObject",7"params": [8"0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627",939221891,10{11"showType": true,12"showOwner": true,13"showPreviousTransaction": true,14"showDisplay": false,15"showContent": true,16"showBcs": false,17"showStorageRebate": true18}19]20}'
1const myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34const raw = JSON.stringify({5"jsonrpc": "2.0",6"id": 1,7"method": "sui_tryGetPastObject",8"params": [9"0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627",1039221891,11{12"showType": true,13"showOwner": true,14"showPreviousTransaction": true,15"showDisplay": false,16"showContent": true,17"showBcs": false,18"showStorageRebate": true19}20]21});2223const requestOptions = {24메서드: "POST",25헤더: myHeaders,26본문: raw,27리디렉션: "follow"28};2930가져오기("https://docs-demo.sui-mainnet.quiknode.pro/", requestOptions)31.그런 다음((응답) => 응답.text())32.그런 다음((결과) => console.log(result))33.catchcatch ((오류) => 콘솔.오류(오류));
1const myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34const raw = JSON.stringify({5"jsonrpc": "2.0",6"id": 1,7"method": "sui_tryGetPastObject",8"params": [9"0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627",1039221891,11{12"showType": true,13"showOwner": true,14"showPreviousTransaction": true,15"showDisplay": false,16"showContent": true,17"showBcs": false,18"showStorageRebate": true19}20]21});2223const requestOptions = {24메서드: "POST",25헤더: myHeaders,26본문: raw,27리디렉션: "follow"28};2930가져오기("https://docs-demo.sui-mainnet.quiknode.pro/", requestOptions)31.그런 다음((응답) => 응답.text())32.그런 다음((결과) => console.log(result))33.catchcatch ((오류) => 콘솔.오류(오류));
1import 요청2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/"56페이로드 = json.dumps({7"jsonrpc": "2.0",8"id": 1,9"method": "sui_tryGetPastObject",10"params": [11"0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627",1239221891,13{14"showType": True,15"showOwner": True,16"showPreviousTransaction": True,17"showDisplay": False,18"showContent": True,19"showBcs": False,20"showStorageRebate": True21}22]23})24헤더 = {25'Content-Type': 'application/json'26}2728답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)2930인쇄(응답.text)31
1import 요청2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/"56페이로드 = json.dumps({7"jsonrpc": "2.0",8"id": 1,9"method": "sui_tryGetPastObject",10"params": [11"0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627",1239221891,13{14"showType": True,15"showOwner": True,16"showPreviousTransaction": True,17"showDisplay": False,18"showContent": True,19"showBcs": False,20"showStorageRebate": True21}22]23})24헤더 = {25'Content-Type': 'application/json'26}2728답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)2930인쇄(응답.text)31
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요청 = 순::HTTP::POST.새(URL)11요청["Content-Type"] = "application/json"12요청.본문 = JSON.dump({13"jsonrpc": "2.0",14"id": 1,15"method": "sui_tryGetPastObject",16"params": [17"0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627",1839221891,19{20"showType": true,21"showOwner": true,22"showPreviousTransaction": true,23"showDisplay": false,24"showContent": true,25"showBcs": false,26"showStorageRebate": true27}28]29})3031답변 = https.요청(요청)32응답을 넣습니다.read_body33
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요청 = 순::HTTP::POST.새(URL)11요청["Content-Type"] = "application/json"12요청.본문 = JSON.dump({13"jsonrpc": "2.0",14"id": 1,15"method": "sui_tryGetPastObject",16"params": [17"0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627",1839221891,19{20"showType": true,21"showOwner": true,22"showPreviousTransaction": true,23"showDisplay": false,24"showContent": true,25"showBcs": false,26"showStorageRebate": true27}28]29})3031답변 = https.요청(요청)32응답을 넣습니다.read_body33