# suix_getOwnedObjects

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

POST https://sui-mainnet.g.alchemy.com/v2/{apiKey}

Returns a paginated list of objects owned by the specified Sui address. Use filters and options to refine the returned data. For better pagination consistency, use `suix_queryObjects`.


Reference: https://www.alchemy.com/docs/chains/sui/sui-api-endpoints/suix-get-owned-objects

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| address | string | Yes | The owner's Sui address. |
| query | object | No | Optional filters and field selectors. |
| cursor | string | No | An optional paging cursor (ObjectID). |
| limit | integer | No | Max number of results to return. |

## Result

**result** (object): A page of objects owned by the address.

## Example

### Request

```json
{
  "jsonrpc": "2.0",
  "method": "suix_getOwnedObjects",
  "params": [
    "0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827",
    {
      "filter": {
        "MatchAll": [
          {
            "StructType": "0x2::coin::Coin<0x2::sui::SUI>"
          },
          {
            "AddressOwner": "0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827"
          },
          {
            "Version": "13488"
          }
        ]
      },
      "options": {
        "showType": true,
        "showOwner": true,
        "showPreviousTransaction": true,
        "showDisplay": false,
        "showContent": false,
        "showBcs": false,
        "showStorageRebate": false
      }
    },
    "0x0cd4bb4d4f520fe9bbf0cf1cebe3f2549412826c3c9261bff9786c240123749f",
    3
  ],
  "id": 1
}
```

### Response

```json
{
  "jsonrpc": "2.0",
  "result": {
    "data": [
      {
        "data": {
          "objectId": "0x0b37a91692359a98496738a58c17a9334aeacc435c70ab9635e47a277d8f8dd9",
          "version": "13488",
          "digest": "FZzfCnKCSRW2jN9AwkiarjYQapViUQAh799aiRMZ4YC2",
          "type": "0x2::coin::Coin<0x2::sui::SUI>",
          "owner": {
            "AddressOwner": "0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827"
          },
          "previousTransaction": "AJhAseKLEndWYT45FbvYGgCJQTqZP537xqNnthY9FqSa",
          "storageRebate": "100"
        }
      },
      {
        "data": {
          "objectId": "0xd4feace07fc863a2eef286c3e95ed48e2c181bb65db5beaf7ea664b4ca6b744c",
          "version": "13488",
          "digest": "3cxBDcfnkVgtXWhnMnKKkMGtZdiEorUhb1vdp2DkVyfi",
          "type": "0x2::coin::Coin<0x2::sui::SUI>",
          "owner": {
            "AddressOwner": "0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827"
          },
          "previousTransaction": "8qCvxDHh5LtDfF95Ci9G7vvQN2P6y4v55S9xoKBYp7FM",
          "storageRebate": "100"
        }
      },
      {
        "data": {
          "objectId": "0xe26860fac6839ce2d7ed7e6f29d276a1b4c23f2d9a9b6f0d8b2c17beace292b7",
          "version": "13488",
          "digest": "3tX9sgYC4A6nVKGjKEE5xxW6t4zkvDL9BwjuaxMg8arP",
          "type": "0x2::coin::Coin<0x2::sui::SUI>",
          "owner": {
            "AddressOwner": "0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827"
          },
          "previousTransaction": "5Ka3vDaDy9h5UYk3Maz3vssWHrhbcGXQgwg8fL2ygyTi",
          "storageRebate": "100"
        }
      }
    ],
    "nextCursor": "0xe26860fac6839ce2d7ed7e6f29d276a1b4c23f2d9a9b6f0d8b2c17beace292b7",
    "hasNextPage": true
  },
  "id": 1
}
```

## Code Examples

### cURL

```bash
curl --request POST \
  --url https://sui-mainnet.g.alchemy.com/v2/docs-demo \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "suix_getOwnedObjects",
  "params": [
    "0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827",
    {
      "filter": {
        "MatchAll": [
          {
            "StructType": "0x2::coin::Coin<0x2::sui::SUI>"
          },
          {
            "AddressOwner": "0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827"
          },
          {
            "Version": "13488"
          }
        ]
      },
      "options": {
        "showType": true,
        "showOwner": true,
        "showPreviousTransaction": true,
        "showDisplay": false,
        "showContent": false,
        "showBcs": false,
        "showStorageRebate": false
      }
    },
    "0x0cd4bb4d4f520fe9bbf0cf1cebe3f2549412826c3c9261bff9786c240123749f",
    3
  ]
}'
```

### JavaScript

```javascript
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({
    jsonrpc: '2.0',
    id: 1,
    method: 'suix_getOwnedObjects',
    params: [
      '0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827',
      {
        filter: {
          MatchAll: [
            {StructType: '0x2::coin::Coin<0x2::sui::SUI>'},
            {
              AddressOwner: '0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827'
            },
            {Version: '13488'}
          ]
        },
        options: {
          showType: true,
          showOwner: true,
          showPreviousTransaction: true,
          showDisplay: false,
          showContent: false,
          showBcs: false,
          showStorageRebate: false
        }
      },
      '0x0cd4bb4d4f520fe9bbf0cf1cebe3f2549412826c3c9261bff9786c240123749f',
      3
    ]
  })
};

fetch('https://sui-mainnet.g.alchemy.com/v2/docs-demo', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://sui-mainnet.g.alchemy.com/v2/docs-demo"

payload = {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "suix_getOwnedObjects",
    "params": [
        "0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827",
        {
            "filter": { "MatchAll": [{ "StructType": "0x2::coin::Coin<0x2::sui::SUI>" }, { "AddressOwner": "0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827" }, { "Version": "13488" }] },
            "options": {
                "showType": True,
                "showOwner": True,
                "showPreviousTransaction": True,
                "showDisplay": False,
                "showContent": False,
                "showBcs": False,
                "showStorageRebate": False
            }
        },
        "0x0cd4bb4d4f520fe9bbf0cf1cebe3f2549412826c3c9261bff9786c240123749f",
        3
    ]
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

### Go

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://sui-mainnet.g.alchemy.com/v2/docs-demo"

	payload := strings.NewReader("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"suix_getOwnedObjects\",\n  \"params\": [\n    \"0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827\",\n    {\n      \"filter\": {\n        \"MatchAll\": [\n          {\n            \"StructType\": \"0x2::coin::Coin<0x2::sui::SUI>\"\n          },\n          {\n            \"AddressOwner\": \"0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827\"\n          },\n          {\n            \"Version\": \"13488\"\n          }\n        ]\n      },\n      \"options\": {\n        \"showType\": true,\n        \"showOwner\": true,\n        \"showPreviousTransaction\": true,\n        \"showDisplay\": false,\n        \"showContent\": false,\n        \"showBcs\": false,\n        \"showStorageRebate\": false\n      }\n    },\n    \"0x0cd4bb4d4f520fe9bbf0cf1cebe3f2549412826c3c9261bff9786c240123749f\",\n    3\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
```

### Java

```java
HttpResponse<String> response = Unirest.post("https://sui-mainnet.g.alchemy.com/v2/docs-demo")
  .header("Content-Type", "application/json")
  .body("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"suix_getOwnedObjects\",\n  \"params\": [\n    \"0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827\",\n    {\n      \"filter\": {\n        \"MatchAll\": [\n          {\n            \"StructType\": \"0x2::coin::Coin<0x2::sui::SUI>\"\n          },\n          {\n            \"AddressOwner\": \"0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827\"\n          },\n          {\n            \"Version\": \"13488\"\n          }\n        ]\n      },\n      \"options\": {\n        \"showType\": true,\n        \"showOwner\": true,\n        \"showPreviousTransaction\": true,\n        \"showDisplay\": false,\n        \"showContent\": false,\n        \"showBcs\": false,\n        \"showStorageRebate\": false\n      }\n    },\n    \"0x0cd4bb4d4f520fe9bbf0cf1cebe3f2549412826c3c9261bff9786c240123749f\",\n    3\n  ]\n}")
  .asString();
```

### C#

```csharp
using RestSharp;


var options = new RestClientOptions("https://sui-mainnet.g.alchemy.com/v2/docs-demo");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"suix_getOwnedObjects\",\n  \"params\": [\n    \"0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827\",\n    {\n      \"filter\": {\n        \"MatchAll\": [\n          {\n            \"StructType\": \"0x2::coin::Coin<0x2::sui::SUI>\"\n          },\n          {\n            \"AddressOwner\": \"0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827\"\n          },\n          {\n            \"Version\": \"13488\"\n          }\n        ]\n      },\n      \"options\": {\n        \"showType\": true,\n        \"showOwner\": true,\n        \"showPreviousTransaction\": true,\n        \"showDisplay\": false,\n        \"showContent\": false,\n        \"showBcs\": false,\n        \"showStorageRebate\": false\n      }\n    },\n    \"0x0cd4bb4d4f520fe9bbf0cf1cebe3f2549412826c3c9261bff9786c240123749f\",\n    3\n  ]\n}", false);
var response = await client.PostAsync(request);

Console.WriteLine("{0}", response.Content);

```


## OpenRPC Method Specification

```yaml
name: suix_getOwnedObjects
summary: Get owned objects by address
description: |
  Returns a paginated list of objects owned by the specified Sui address. Use filters and options to refine the returned data. For better pagination consistency, use `suix_queryObjects`.
params:
  - name: address
    required: true
    description: The owner's Sui address.
    schema:
      type: string
      description: A 32-byte hexadecimal Sui address (e.g., 0x...).
  - name: query
    required: false
    description: Optional filters and field selectors.
    schema:
      type: object
  - name: cursor
    required: false
    description: An optional paging cursor (ObjectID).
    schema:
      type: string
  - name: limit
    required: false
    description: Max number of results to return.
    schema:
      type: integer
result:
  name: result
  description: A page of objects owned by the address.
  schema:
    type: object
    required:
      - data
      - nextCursor
      - hasNextPage
    properties:
      data:
        type: array
        description: A list of results.
        items:
          type: object
      nextCursor:
        description: Cursor for fetching the next page.
        type: string
        nullable: true
      hasNextPage:
        type: boolean
examples:
  - name: Get SUI coins owned by address
    params:
      - name: address
        value: '0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827'
      - name: query
        value:
          filter:
            MatchAll:
              - StructType: 0x2::coin::Coin<0x2::sui::SUI>
              - AddressOwner: '0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827'
              - Version: '13488'
          options:
            showType: true
            showOwner: true
            showPreviousTransaction: true
            showDisplay: false
            showContent: false
            showBcs: false
            showStorageRebate: false
      - name: cursor
        value: '0x0cd4bb4d4f520fe9bbf0cf1cebe3f2549412826c3c9261bff9786c240123749f'
      - name: limit
        value: 3
    result:
      name: result
      value:
        data:
          - data:
              objectId: '0x0b37a91692359a98496738a58c17a9334aeacc435c70ab9635e47a277d8f8dd9'
              version: '13488'
              digest: FZzfCnKCSRW2jN9AwkiarjYQapViUQAh799aiRMZ4YC2
              type: 0x2::coin::Coin<0x2::sui::SUI>
              owner:
                AddressOwner: '0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827'
              previousTransaction: AJhAseKLEndWYT45FbvYGgCJQTqZP537xqNnthY9FqSa
              storageRebate: '100'
          - data:
              objectId: '0xd4feace07fc863a2eef286c3e95ed48e2c181bb65db5beaf7ea664b4ca6b744c'
              version: '13488'
              digest: 3cxBDcfnkVgtXWhnMnKKkMGtZdiEorUhb1vdp2DkVyfi
              type: 0x2::coin::Coin<0x2::sui::SUI>
              owner:
                AddressOwner: '0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827'
              previousTransaction: 8qCvxDHh5LtDfF95Ci9G7vvQN2P6y4v55S9xoKBYp7FM
              storageRebate: '100'
          - data:
              objectId: '0xe26860fac6839ce2d7ed7e6f29d276a1b4c23f2d9a9b6f0d8b2c17beace292b7'
              version: '13488'
              digest: 3tX9sgYC4A6nVKGjKEE5xxW6t4zkvDL9BwjuaxMg8arP
              type: 0x2::coin::Coin<0x2::sui::SUI>
              owner:
                AddressOwner: '0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827'
              previousTransaction: 5Ka3vDaDy9h5UYk3Maz3vssWHrhbcGXQgwg8fL2ygyTi
              storageRebate: '100'
        nextCursor: '0xe26860fac6839ce2d7ed7e6f29d276a1b4c23f2d9a9b6f0d8b2c17beace292b7'
        hasNextPage: true
```
