sui_getObject RPC Method
매개변수
object_id
문자열
필수
로딩 중...
ObjectDataOptions
객체
로딩 중...
showBcs
부울
로딩 중...
showContent
부울
로딩 중...
showDisplay
부울
로딩 중...
showOwner
부울
로딩 중...
showPreviousTransaction
부울
로딩 중...
showStorageRebate
부울
로딩 중...
showType
부울
로딩 중...
반품
결과
객체
로딩 중...
objectId
문자열
로딩 중...
버전
문자열
로딩 중...
요약
문자열
로딩 중...
유형
문자열
로딩 중...
소유자
객체
로딩 중...
공유됨
객체
로딩 중...
initial_shared_version
문자열
로딩 중...
previousTransaction
문자열
로딩 중...
저장 할인
문자열
로딩 중...
내용
객체
로딩 중...
dataType
문자열
로딩 중...
유형
문자열
로딩 중...
hasPublicTransfer
부울
로딩 중...
fields
객체
로딩 중...
id
객체
로딩 중...
id
문자열
로딩 중...
inner
객체
로딩 중...
유형
문자열
로딩 중...
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_getObject",7"params": [8"0x27c4fdb3b846aa3ae4a65ef5127a309aa3c1f466671471a806d8912a18b253e8",9{10"showType": true,11"showOwner": true,12"showPreviousTransaction": true,13"showDisplay": false,14"showContent": true,15"showBcs": false,16"showStorageRebate": true17}18]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_getObject",7"params": [8"0x27c4fdb3b846aa3ae4a65ef5127a309aa3c1f466671471a806d8912a18b253e8",9{10"showType": true,11"showOwner": true,12"showPreviousTransaction": true,13"showDisplay": false,14"showContent": true,15"showBcs": false,16"showStorageRebate": true17}18]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_getObject",8"params": [9"0x27c4fdb3b846aa3ae4a65ef5127a309aa3c1f466671471a806d8912a18b253e8",10{11"showType": true,12"showOwner": true,13"showPreviousTransaction": true,14"showDisplay": false,15"showContent": true,16"showBcs": false,17"showStorageRebate": true18}19]20});2122const requestOptions = {23메서드: "POST",24헤더: myHeaders,25본문: raw,26리디렉션: "follow"27};2829가져오기("https://docs-demo.sui-mainnet.quiknode.pro/", requestOptions)30.그런 다음((응답) => 응답.text())31.그런 다음((결과) => console.log(result))32.catchcatch ((오류) => 콘솔.오류(오류));
1const myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34const raw = JSON.stringify({5"jsonrpc": "2.0",6"id": 1,7"method": "sui_getObject",8"params": [9"0x27c4fdb3b846aa3ae4a65ef5127a309aa3c1f466671471a806d8912a18b253e8",10{11"showType": true,12"showOwner": true,13"showPreviousTransaction": true,14"showDisplay": false,15"showContent": true,16"showBcs": false,17"showStorageRebate": true18}19]20});2122const requestOptions = {23메서드: "POST",24헤더: myHeaders,25본문: raw,26리디렉션: "follow"27};2829가져오기("https://docs-demo.sui-mainnet.quiknode.pro/", requestOptions)30.그런 다음((응답) => 응답.text())31.그런 다음((결과) => console.log(result))32.catchcatch ((오류) => 콘솔.오류(오류));
1import 요청2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/"56페이로드 = json.dumps({7"jsonrpc": "2.0",8"id": 1,9"method": "sui_getObject",10"params": [11"0x27c4fdb3b846aa3ae4a65ef5127a309aa3c1f466671471a806d8912a18b253e8",12{13"showType": True,14"showOwner": True,15"showPreviousTransaction": True,16"showDisplay": False,17"showContent": True,18"showBcs": False,19"showStorageRebate": True20}21]22})23헤더 = {24'Content-Type': 'application/json'25}2627답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)2829인쇄(응답.text)30
1import 요청2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/"56페이로드 = json.dumps({7"jsonrpc": "2.0",8"id": 1,9"method": "sui_getObject",10"params": [11"0x27c4fdb3b846aa3ae4a65ef5127a309aa3c1f466671471a806d8912a18b253e8",12{13"showType": True,14"showOwner": True,15"showPreviousTransaction": True,16"showDisplay": False,17"showContent": True,18"showBcs": False,19"showStorageRebate": True20}21]22})23헤더 = {24'Content-Type': 'application/json'25}2627답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)2829인쇄(응답.text)30
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_getObject",16"params": [17"0x27c4fdb3b846aa3ae4a65ef5127a309aa3c1f466671471a806d8912a18b253e8",18{19"showType": true,20"showOwner": true,21"showPreviousTransaction": true,22"showDisplay": false,23"showContent": true,24"showBcs": false,25"showStorageRebate": true26}27]28})2930답변 = https.요청(요청)31응답을 넣습니다.read_body32
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_getObject",16"params": [17"0x27c4fdb3b846aa3ae4a65ef5127a309aa3c1f466671471a806d8912a18b253e8",18{19"showType": true,20"showOwner": true,21"showPreviousTransaction": true,22"showDisplay": false,23"showContent": true,24"showBcs": false,25"showStorageRebate": true26}27]28})2930답변 = https.요청(요청)31응답을 넣습니다.read_body32