suix_getOwnedObjects RPC Method
Parameters
address
string
REQUIRED
Loading...
query
object
REQUIRED
Loading...
cursor
string
Loading...
limit
integer
Loading...
Returns
result
object
Loading...
data
array
Loading...
data
object
Loading...
objectId
string
Loading...
version
string
Loading...
digest
string
Loading...
type
string
Loading...
owner
object
Loading...
AddressOwner
string
Loading...
previousTransaction
string
Loading...
storageRebate
string
Loading...
nextCursor
string
Loading...
hasNextPage
boolean
Loading...
Request
curl --location 'https://docs-demo.sui-mainnet.quiknode.pro/' \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "id": 1, "method": "suix_getOwnedObjects", "params": [ "0x00878369f475a454939af7b84cdd981515b1329f159a1aeb9bf0f8899e00083a", { "filter": { "MatchAll": [ { "StructType": "0x2::coin::Coin<0x2::sui::SUI>" }, { "AddressOwner": "0x0cd4bb4d4f520fe9bbf0cf1cebe3f2549412826c3c9261bff9786c240123749f" }, { "Version": "13488" } ] }, "options": { "showType": true, "showOwner": true, "showPreviousTransaction": true, "showDisplay": false, "showContent": false, "showBcs": false, "showStorageRebate": false } } ] }'
const myHeaders = new Headers(); myHeaders.append("Content-Type", "application/json"); const raw = JSON.stringify({ "jsonrpc": "2.0", "id": 1, "method": "suix_getOwnedObjects", "params": [ "0x00878369f475a454939af7b84cdd981515b1329f159a1aeb9bf0f8899e00083a", { "filter": { "MatchAll": [ { "StructType": "0x2::coin::Coin<0x2::sui::SUI>" }, { "AddressOwner": "0x0cd4bb4d4f520fe9bbf0cf1cebe3f2549412826c3c9261bff9786c240123749f" }, { "Version": "13488" } ] }, "options": { "showType": true, "showOwner": true, "showPreviousTransaction": true, "showDisplay": false, "showContent": false, "showBcs": false, "showStorageRebate": false } } ] }); const requestOptions = { method: "POST", headers: myHeaders, body: raw, redirect: "follow" }; fetch("https://docs-demo.sui-mainnet.quiknode.pro/", requestOptions) .then((response) => response.text()) .then((result) => console.log(result)) .catch((error) => console.error(error));
import requests import json url = "https://docs-demo.sui-mainnet.quiknode.pro/" payload = json.dumps({ "jsonrpc": "2.0", "id": 1, "method": "suix_getOwnedObjects", "params": [ "0x00878369f475a454939af7b84cdd981515b1329f159a1aeb9bf0f8899e00083a", { "filter": { "MatchAll": [ { "StructType": "0x2::coin::Coin<0x2::sui::SUI>" }, { "AddressOwner": "0x0cd4bb4d4f520fe9bbf0cf1cebe3f2549412826c3c9261bff9786c240123749f" }, { "Version": "13488" } ] }, "options": { "showType": True, "showOwner": True, "showPreviousTransaction": True, "showDisplay": False, "showContent": False, "showBcs": False, "showStorageRebate": False } } ] }) headers = { 'Content-Type': 'application/json' } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)
require "uri" require "json" require "net/http" url = URI("https://docs-demo.sui-mainnet.quiknode.pro/") https = Net::HTTP.new(url.host, url.port) https.use_ssl = true request = Net::HTTP::Post.new(url) request["Content-Type"] = "application/json" request.body = JSON.dump({ "jsonrpc": "2.0", "id": 1, "method": "suix_getOwnedObjects", "params": [ "0x00878369f475a454939af7b84cdd981515b1329f159a1aeb9bf0f8899e00083a", { "filter": { "MatchAll": [ { "StructType": "0x2::coin::Coin<0x2::sui::SUI>" }, { "AddressOwner": "0x0cd4bb4d4f520fe9bbf0cf1cebe3f2549412826c3c9261bff9786c240123749f" }, { "Version": "13488" } ] }, "options": { "showType": true, "showOwner": true, "showPreviousTransaction": true, "showDisplay": false, "showContent": false, "showBcs": false, "showStorageRebate": false } } ] }) response = https.request(request) puts response.read_body
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free